mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:37:37 +02:00
Games that override ondestroy now destroy their inputs when they are destroyed (#449)
This commit is contained in:
@ -185,6 +185,10 @@ namespace HeavenStudio.Games
|
||||
if (!Conductor.instance.isPlaying || Conductor.instance.isPaused) {
|
||||
if (queuedThrows.Count > 0) queuedThrows.Clear();
|
||||
}
|
||||
foreach (var evt in scheduledInputs)
|
||||
{
|
||||
evt.Disable();
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
Reference in New Issue
Block a user