Games that override ondestroy now destroy their inputs when they are destroyed (#449)

This commit is contained in:
Rapandrasmus
2023-06-04 01:30:17 +02:00
committed by GitHub
parent 761ae362e1
commit bb6559fe58
27 changed files with 111 additions and 1 deletions

View File

@ -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()