Browse Source

- Forgot to unregister the Event Handlers for SceneManager

refactor 3.5.2
artman41 6 years ago
parent
commit
d2bd2285ae
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      IllusionInjector/PluginComponent.cs

+ 4
- 0
IllusionInjector/PluginComponent.cs View File

@ -58,6 +58,10 @@ namespace IllusionInjector
void OnApplicationQuit()
{
SceneManager.activeSceneChanged += OnActiveSceneChanged;
SceneManager.sceneLoaded += OnSceneLoaded;
SceneManager.sceneUnloaded += OnSceneUnloaded;
plugins.OnApplicationQuit();
quitting = true;


Loading…
Cancel
Save