From 2f595824608fad4fd3cc69818b5da590aeea7534 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Tue, 13 Jun 2023 19:24:13 +0200 Subject: [PATCH] Fixed weird curve stuff on game switch in working dough --- Assets/Scripts/Games/WorkingDough/WorkingDough.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs index 99d0a321..05a2b76e 100644 --- a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs +++ b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs @@ -498,7 +498,13 @@ namespace HeavenStudio.Games ballTransporterRightNPC.GetComponent().Play("BallTransporterRightOpened", 0, 0); if (gandwHasEntered && !bgDisabled) gandwAnim.Play("GANDWLeverUp", 0, 0); } - if (ball.beat > beat - 1) SpawnBall(ball.beat - 1, ball.isBig, ball.hasGandw); + if (ball.beat > beat - 1) + { + BeatAction.New(instance.gameObject, new List() + { + new BeatAction.Action(ball.beat - 1, delegate { SpawnBall(ball.beat - 1, ball.isBig, ball.hasGandw); }) + }); + } } queuedBalls.Clear();