From 335d2680c4a53fbc15681d4ebbfb25842779b6f3 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Mon, 16 Jan 2023 21:36:19 +0100 Subject: [PATCH] Tiny fix --- Assets/Scripts/Games/WorkingDough/WorkingDough.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs index 045348b92..eb83eb0b8 100644 --- a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs +++ b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs @@ -422,6 +422,9 @@ namespace HeavenStudio.Games void JustSmall(PlayerActionEvent caller, float state) { + GameObject currentBall = currentBalls[0]; + currentBalls.Remove(currentBall); + GameObject.Destroy(currentBall); if (state >= 1f || state <= -1f) { return; @@ -431,6 +434,9 @@ namespace HeavenStudio.Games void JustBig(PlayerActionEvent caller, float state) { + GameObject currentBall = currentBalls[0]; + currentBalls.Remove(currentBall); + GameObject.Destroy(currentBall); if (state >= 1f || state <= -1f) { return;