Browse Source

Shouldn't add event listeners on quit -_-

pull/46/head
Anairkoen Schno 6 years ago
parent
commit
641c02baea
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      IllusionInjector/PluginComponent.cs

+ 3
- 3
IllusionInjector/PluginComponent.cs View File

@ -64,9 +64,9 @@ namespace IllusionInjector
void OnApplicationQuit()
{
SceneManager.activeSceneChanged += OnActiveSceneChanged;
SceneManager.sceneLoaded += OnSceneLoaded;
SceneManager.sceneUnloaded += OnSceneUnloaded;
SceneManager.activeSceneChanged -= OnActiveSceneChanged;
SceneManager.sceneLoaded -= OnSceneLoaded;
SceneManager.sceneUnloaded -= OnSceneUnloaded;
bsPlugins.OnApplicationQuit();
ipaPlugins.OnApplicationQuit();


Loading…
Cancel
Save