only destroy queued inputs while conductor is stopped (#224)

This commit is contained in:
minenice55 2023-01-22 16:50:48 -05:00 committed by GitHub
parent 97f775fd25
commit da827e33d2

View file

@ -140,7 +140,10 @@ namespace HeavenStudio.Games
void OnDestroy() void OnDestroy()
{ {
if (queuedInputs.Count > 0) queuedInputs.Clear(); if (!Conductor.instance.isPlaying || Conductor.instance.isPaused)
{
if (queuedInputs.Count > 0) queuedInputs.Clear();
}
} }
void Update() void Update()