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 cff0842084
commit 299d898a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()
{ {