Tweezers: Functioning gameplay loop + Editor implementation.

This commit is contained in:
Jenny Crowe
2022-02-09 03:29:09 -07:00
parent a0c1070b93
commit 7fbb02d7cc
17 changed files with 874 additions and 40 deletions

View File

@ -35,9 +35,17 @@ namespace RhythmHeavenMania.Games.RhythmTweezers
if (ace)
{
RhythmTweezers.instance.Vegetable.GetComponent<Animator>().Play("Hop", 0, 0);
var game = RhythmTweezers.instance;
Jukebox.PlayOneShotGame($"rhythmTweezers/shortPluck{Random.Range(1, 21)}");
Destroy(hair.gameObject);
game.hairsLeft--;
if (game.hairsLeft <= 0)
vegetableAnim.Play("HopFinal", 0, 0);
else
vegetableAnim.Play("Hop", 0, 0);
}
}
}