Merge pull request #23 from CarsonKompon/fix-fork-lifter-maximum-peas-on-fork

Fork now only holds up to 4 peas in Fork Lifter
This commit is contained in:
Jenny Crowe 2022-02-28 14:11:29 -07:00 committed by GitHub
commit c234a7165e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);