mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 14:57:39 +02:00
You can no longer stab multiple peas at once (Fork Lifter)
This commit is contained in:
@ -34,6 +34,8 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||
|
||||
private bool isEating = false;
|
||||
|
||||
public int hitOnFrame;
|
||||
|
||||
// Burger shit
|
||||
|
||||
public bool topbun, middleburger, bottombun;
|
||||
@ -50,13 +52,16 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||
anim = GetComponent<Animator>();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
private void LateUpdate()
|
||||
{
|
||||
if (PlayerInput.Pressed())
|
||||
{
|
||||
hitOnFrame = 0;
|
||||
Stab(null);
|
||||
}
|
||||
|
||||
print(hitOnFrame);
|
||||
|
||||
if (ForkLifter.instance.EligibleHits.Count == 0)
|
||||
{
|
||||
currentHitInList = 0;
|
||||
@ -118,7 +123,7 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||
|
||||
public void Stab(Pea p)
|
||||
{
|
||||
if (isEating) return;
|
||||
if (isEating || hitOnFrame > 0) return;
|
||||
|
||||
if (p == null)
|
||||
{
|
||||
|
@ -180,7 +180,7 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||
|
||||
StateCheck(normalizedBeat);
|
||||
|
||||
if (PlayerInput.Pressed())
|
||||
if (PlayerInput.Pressed() && ForkLifterPlayer.instance.hitOnFrame == 0)
|
||||
{
|
||||
if (state.perfect)
|
||||
{
|
||||
@ -194,6 +194,8 @@ namespace RhythmHeavenMania.Games.ForkLifter
|
||||
{
|
||||
Late();
|
||||
}
|
||||
|
||||
ForkLifterPlayer.instance.hitOnFrame++;
|
||||
}
|
||||
|
||||
if (normalizedBeat > 1.35f)
|
||||
|
Reference in New Issue
Block a user