Fork now only holds up to 4 peas in Fork Lifter

The commit looks a lot larger than it is. I just wrapped it all in an if statement
This commit is contained in:
Carson Kompon 2022-02-28 12:32:08 -05:00
parent 77af919722
commit d07dabf1c5

View file

@ -47,6 +47,8 @@ namespace RhythmHeavenMania.Games.ForkLifter
{
ForkLifterPlayer.instance.Stab(this);
if (ForkLifterPlayer.instance.currentPerfectPeasOnFork < 4)
{
GameObject pea = new GameObject();
pea.transform.parent = ForkLifterPlayer.instance.perfect.transform;
@ -78,6 +80,7 @@ namespace RhythmHeavenMania.Games.ForkLifter
psprite.sortingOrder = 102;
break;
}
}
GameObject hitFXo = new GameObject();
hitFXo.transform.localPosition = new Vector3(1.9969f, -3.7026f);