mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
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:
commit
51c4e01889
1 changed files with 31 additions and 28 deletions
|
@ -47,6 +47,8 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||||
{
|
{
|
||||||
ForkLifterPlayer.instance.Stab(this);
|
ForkLifterPlayer.instance.Stab(this);
|
||||||
|
|
||||||
|
if (ForkLifterPlayer.instance.currentPerfectPeasOnFork < 4)
|
||||||
|
{
|
||||||
GameObject pea = new GameObject();
|
GameObject pea = new GameObject();
|
||||||
|
|
||||||
pea.transform.parent = ForkLifterPlayer.instance.perfect.transform;
|
pea.transform.parent = ForkLifterPlayer.instance.perfect.transform;
|
||||||
|
@ -78,6 +80,7 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||||
psprite.sortingOrder = 102;
|
psprite.sortingOrder = 102;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GameObject hitFXo = new GameObject();
|
GameObject hitFXo = new GameObject();
|
||||||
hitFXo.transform.localPosition = new Vector3(1.9969f, -3.7026f);
|
hitFXo.transform.localPosition = new Vector3(1.9969f, -3.7026f);
|
||||||
|
|
Loading…
Reference in a new issue