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