From 3d19e75e1a42eb1580f9769e84d6afa8a9332f61 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 f216a18f..dd1f6c29 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; }),