mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:47:38 +02:00
Games that override ondestroy now destroy their inputs when they are destroyed (#449)
This commit is contained in:
@ -132,6 +132,10 @@ namespace HeavenStudio.Games
|
||||
void OnDestroy()
|
||||
{
|
||||
if (queuedFireworks.Count > 0) queuedFireworks.Clear();
|
||||
foreach (var evt in scheduledInputs)
|
||||
{
|
||||
evt.Disable();
|
||||
}
|
||||
}
|
||||
|
||||
void Awake()
|
||||
|
Reference in New Issue
Block a user