From c9accfa52d87a475fc3e033ee47bfe5db31ef166 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:07:13 +0200 Subject: [PATCH] Fixed small balls not working in working dough --- Assets/Scripts/Games/WorkingDough/PlayerEnterDoughBall.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/WorkingDough/PlayerEnterDoughBall.cs b/Assets/Scripts/Games/WorkingDough/PlayerEnterDoughBall.cs index f216a18f8..dd1f6c298 100644 --- a/Assets/Scripts/Games/WorkingDough/PlayerEnterDoughBall.cs +++ b/Assets/Scripts/Games/WorkingDough/PlayerEnterDoughBall.cs @@ -147,7 +147,8 @@ namespace HeavenStudio.Games.Scripts_WorkingDough SoundByte.PlayOneShotGame("workingDough/hitSmallPlayer"); game.doughDudesPlayer.GetComponent().Play("SmallDoughJump", 0, 0); } - bool hasGandw = gandw.activeSelf; + bool hasGandw = false; + if (gandw != null) hasGandw = gandw.activeSelf; BeatAction.New(game.gameObject, new List() { new BeatAction.Action(beat + 0.9f, delegate { game.arrowSRRightPlayer.sprite = game.redArrowSprite; }),