mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 05:35:08 +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()
|
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()
|
||||||
|
|
Loading…
Reference in a new issue