Rhythm Rally: Whistle separated from "toss ball" event and added to "whistle" event

This commit is contained in:
Jenny Crowe 2022-02-22 20:34:11 -07:00
parent 889a74107e
commit a64cb476e0
2 changed files with 6 additions and 1 deletions

View file

@ -306,7 +306,6 @@ namespace RhythmHeavenMania.Games.RhythmRally
if (firstToss)
{
opponentAnim.Play("Ready1");
Jukebox.PlayOneShotGame("rhythmRally/Whistle");
}
StartCoroutine(TossTrailCo());
@ -329,6 +328,11 @@ namespace RhythmHeavenMania.Games.RhythmRally
ball.transform.position = tossCurve.GetPoint(Mathf.Clamp(tossPosition, 0, 1));
}
public void PlayWhistle()
{
Jukebox.PlayOneShotGame("rhythmRally/Whistle");
}
public void Pose()
{
playerAnim.Play("Pose", 0, 0);

View file

@ -231,6 +231,7 @@ namespace RhythmHeavenMania
new Minigame("rhythmRally", "Rhythm Rally \n<color=#eb5454>[WIP don't use]</color>", "FFFFFF", true, false, new List<GameAction>()
{
new GameAction("bop", delegate { RhythmRally.instance.Bop(eventCaller.currentEntity.beat, eventCaller.currentEntity.length); }, 0.5f, true),
new GameAction("whistle", delegate { RhythmRally.instance.PlayWhistle(); }, 0.5f),
new GameAction("toss ball", delegate { RhythmRally.instance.Toss(eventCaller.currentEntity.beat, eventCaller.currentEntity.length, 6f, true); }, 2f),
new GameAction("rally", delegate { RhythmRally.instance.Serve(eventCaller.currentEntity.beat, RhythmRally.RallySpeed.Normal); }, 4f, true),
new GameAction("slow rally", delegate { RhythmRally.instance.Serve(eventCaller.currentEntity.beat, RhythmRally.RallySpeed.Slow); }, 8f, true),