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

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