mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 17:37:38 +02:00
Auto Bop Internal Rework + Bug Fixes (#589)
* fixed blue bear * fixed tap trial bug * see saw fix * Auto bop rework
This commit is contained in:
@ -70,23 +70,21 @@ namespace HeavenStudio.Games
|
||||
public Animator CloseCrane;
|
||||
public Animator FarCrane;
|
||||
public GameObject Player;
|
||||
private bool shouldBop = true;
|
||||
private bool missed;
|
||||
private bool hasSlurped;
|
||||
|
||||
public GameEvent bop = new GameEvent();
|
||||
|
||||
public static RhythmSomen instance;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Awake()
|
||||
{
|
||||
instance = this;
|
||||
SetupBopRegion("rhythmSomen", "bop", "toggle");
|
||||
}
|
||||
|
||||
public override void OnBeatPulse(double beat)
|
||||
{
|
||||
if (shouldBop) SomenPlayer.DoScaledAnimationAsync("HeadBob", 0.5f);
|
||||
if (BeatIsInBopRegion(beat)) SomenPlayer.DoScaledAnimationAsync("HeadBob", 0.5f);
|
||||
}
|
||||
|
||||
void Update()
|
||||
@ -125,7 +123,6 @@ namespace HeavenStudio.Games
|
||||
|
||||
public void ToggleBop(double beat, float length, bool bopOrNah, bool autoBop)
|
||||
{
|
||||
shouldBop = autoBop;
|
||||
if (bopOrNah)
|
||||
{
|
||||
for (int i = 0; i < length; i++)
|
||||
|
Reference in New Issue
Block a user