fixed mr game and watch being slow boy

This commit is contained in:
Rapandrasmus 2023-12-17 18:38:31 +01:00
parent df446d3336
commit a274b65e9d

View file

@ -367,9 +367,12 @@ namespace HeavenStudio.Games
} }
} }
}), }),
new BeatAction.Action(beat, delegate
{
if (gandwHasEntered && !bgDisabled) gandwAnim.Play("MrGameAndWatchLeverDown", 0, 0);
}),
new BeatAction.Action(beat + 1, delegate new BeatAction.Action(beat + 1, delegate
{ {
if (gandwHasEntered && !bgDisabled) gandwAnim.Play("MrGameAndWatchLeverDown", 0, 0);
if (beat + 1 > GetLastIntervalBeforeBeat(beat + 1).beat + GetLastIntervalBeforeBeat(beat + 1).length) if (beat + 1 > GetLastIntervalBeforeBeat(beat + 1).beat + GetLastIntervalBeforeBeat(beat + 1).length)
{ {
ballTransporterLeftNPC.GetComponent<Animator>().Play("BallTransporterLeftClose", 0, 0); ballTransporterLeftNPC.GetComponent<Animator>().Play("BallTransporterLeftClose", 0, 0);