mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
DJ School: Cue elegibility tweaks (autoplay should work correctly now)
This commit is contained in:
parent
be791c55eb
commit
7a37e3ae04
1 changed files with 11 additions and 12 deletions
|
@ -113,17 +113,13 @@ namespace RhythmHeavenMania.Games.DJSchool
|
|||
BeatAction.New(djYellow, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(beat, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); }),
|
||||
new BeatAction.Action(beat + 1f, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); }),
|
||||
new BeatAction.Action(beat + 1f, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); SetupCue(beat, false); }),
|
||||
new BeatAction.Action(beat + 2f, delegate
|
||||
{
|
||||
djYellow.GetComponent<Animator>().Play("Hold", 0, 0);
|
||||
djYellowHolding = true;
|
||||
}),
|
||||
});
|
||||
|
||||
student.holdBeat = beat;
|
||||
student.eligible = true;
|
||||
student.ResetState();
|
||||
}
|
||||
|
||||
public void AndStop(float beat)
|
||||
|
@ -139,17 +135,13 @@ namespace RhythmHeavenMania.Games.DJSchool
|
|||
|
||||
BeatAction.New(djYellow, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(beat + 0.5f, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); }),
|
||||
new BeatAction.Action(beat + 0.5f, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); SetupCue(beat - 0.5f, false); }),
|
||||
new BeatAction.Action(beat + 1.5f, delegate
|
||||
{
|
||||
djYellow.GetComponent<Animator>().Play("Hold", 0, 0);
|
||||
djYellowHolding = true;
|
||||
}),
|
||||
});
|
||||
|
||||
student.holdBeat = beat - 0.5f;
|
||||
student.eligible = true;
|
||||
student.ResetState();
|
||||
}
|
||||
|
||||
public void ScratchoHey(float beat, int type)
|
||||
|
@ -181,15 +173,22 @@ namespace RhythmHeavenMania.Games.DJSchool
|
|||
BeatAction.New(djYellow, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(beat, delegate { djYellow.GetComponent<Animator>().Play("Scratcho", 0, 0); }),
|
||||
new BeatAction.Action(beat + 1f, delegate { djYellow.GetComponent<Animator>().Play("Scratcho2", 0, 0); }),
|
||||
new BeatAction.Action(beat + 1f, delegate { djYellow.GetComponent<Animator>().Play("Scratcho2", 0, 0); SetupCue(beat, true); }),
|
||||
new BeatAction.Action(beat + 2.05f, delegate
|
||||
{
|
||||
djYellow.GetComponent<Animator>().Play("Hey", 0, 0);
|
||||
djYellowHolding = false;
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
student.swipeBeat = beat;
|
||||
void SetupCue(float beat, bool swipe)
|
||||
{
|
||||
if (swipe)
|
||||
student.swipeBeat = beat;
|
||||
else
|
||||
student.holdBeat = beat;
|
||||
|
||||
student.eligible = true;
|
||||
student.ResetState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue