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

@ -164,6 +164,10 @@ namespace HeavenStudio.Games
{
if (queuedPoses.Count > 0) queuedPoses.Clear();
Jukebox.KillLoop(kidsLaugh, 2f);
foreach (var evt in scheduledInputs)
{
evt.Disable();
}
}
public override void OnTimeChange()