Browse Source

Shouldn't add event listeners on quit -_-

refactor
Anairkoen Schno 6 years ago
parent
commit
818b37f67e
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() void OnApplicationQuit()
{ {
SceneManager.activeSceneChanged += OnActiveSceneChanged;
SceneManager.sceneLoaded += OnSceneLoaded;
SceneManager.sceneUnloaded += OnSceneUnloaded;
SceneManager.activeSceneChanged -= OnActiveSceneChanged;
SceneManager.sceneLoaded -= OnSceneLoaded;
SceneManager.sceneUnloaded -= OnSceneUnloaded;
bsPlugins.OnApplicationQuit(); bsPlugins.OnApplicationQuit();
ipaPlugins.OnApplicationQuit(); ipaPlugins.OnApplicationQuit();


Loading…
Cancel
Save