mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
only destroy queued inputs while conductor is stopped (#224)
This commit is contained in:
parent
97f775fd25
commit
da827e33d2
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