From da827e33d27fb542f820bc004f1ec5b8071251ab Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sun, 22 Jan 2023 16:50:48 -0500 Subject: [PATCH] only destroy queued inputs while conductor is stopped (#224) --- Assets/Scripts/Games/Tambourine/Tambourine.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/Tambourine/Tambourine.cs b/Assets/Scripts/Games/Tambourine/Tambourine.cs index 3839459c..f0b165a9 100644 --- a/Assets/Scripts/Games/Tambourine/Tambourine.cs +++ b/Assets/Scripts/Games/Tambourine/Tambourine.cs @@ -140,7 +140,10 @@ namespace HeavenStudio.Games void OnDestroy() { - if (queuedInputs.Count > 0) queuedInputs.Clear(); + if (!Conductor.instance.isPlaying || Conductor.instance.isPaused) + { + if (queuedInputs.Count > 0) queuedInputs.Clear(); + } } void Update()