mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 17:57:39 +02:00
First PlayerActionEvent Pass (#202)
* update blue bear to use PlayerActionEvent * update built to scale DS to use PlayerActionEvent * update clappy trio to use PlayerActionEvent * update crop stomp to use PlayerActionEvent * update drumming practice to use PlayerActionEvent * update fork lifter to use PlayerActionEvent * update minigame icons * update wizard waltz' icon
This commit is contained in:
@ -34,8 +34,6 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
private bool isEating = false;
|
||||
|
||||
public int hitOnFrame;
|
||||
|
||||
// Burger shit
|
||||
|
||||
public bool topbun, middleburger, bottombun;
|
||||
@ -50,14 +48,11 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
if (PlayerInput.Pressed())
|
||||
if (PlayerInput.Pressed() && !ForkLifter.instance.IsExpectingInputNow(InputType.STANDARD_DOWN))
|
||||
{
|
||||
hitOnFrame = 0;
|
||||
Stab(null);
|
||||
}
|
||||
|
||||
// print(hitOnFrame);
|
||||
|
||||
if (ForkLifter.instance.EligibleHits.Count == 0)
|
||||
{
|
||||
currentHitInList = 0;
|
||||
@ -119,7 +114,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
public void Stab(Pea p)
|
||||
{
|
||||
if (isEating || hitOnFrame > 0) return;
|
||||
if (isEating) return;
|
||||
|
||||
if (p == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user