mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 17:47:39 +02:00
a lot
* munchy monk input + mustache fixes * fork lifter and pajama party bopping * meat grinder miss bop fix * cloud monkey Real * marching orders Go! was broken * force march doesn't break when it's too early from a game switch * you can use the March! block without the marching now
This commit is contained in:
@ -13,24 +13,21 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
public static ForkLifterPlayer instance { get; set; }
|
||||
|
||||
[Header("Objects")]
|
||||
public GameObject fork;
|
||||
public Sprite peaSprite;
|
||||
public Sprite hitFX;
|
||||
public Sprite hitFXG;
|
||||
public Sprite hitFXMiss;
|
||||
public Sprite hitFX2;
|
||||
public Transform early, perfect, late;
|
||||
|
||||
[SerializeField]
|
||||
private BoxCollider2D col;
|
||||
|
||||
private Animator anim;
|
||||
|
||||
private int currentHitInList = 0;
|
||||
|
||||
public bool shouldBop;
|
||||
public int currentEarlyPeasOnFork;
|
||||
public int currentPerfectPeasOnFork;
|
||||
public int currentLatePeasOnFork;
|
||||
private float lastReportedBeat;
|
||||
|
||||
private bool isEating = false;
|
||||
|
||||
@ -57,6 +54,11 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
{
|
||||
currentHitInList = 0;
|
||||
}
|
||||
|
||||
if (Conductor.instance.ReportBeat(ref lastReportedBeat) && anim.IsAnimationNotPlaying() && shouldBop)
|
||||
{
|
||||
anim.DoScaledAnimationAsync("Player_Bop", 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
public void Eat()
|
||||
@ -68,6 +70,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
}
|
||||
}
|
||||
|
||||
// used in an animation event
|
||||
public void EatConfirm()
|
||||
{
|
||||
if (topbun && middleburger && bottombun)
|
||||
|
Reference in New Issue
Block a user