Browse Source

- Forgot to unregister the Event Handlers for SceneManager

pull/46/head
artman41 6 years ago
parent
commit
5125b14a8a
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