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

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