mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-30 11:31:13 +00:00
only destroy queued inputs while conductor is stopped (#224)
This commit is contained in:
parent
cff0842084
commit
299d898a15
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue