public void OnDestroy() { try { HookCenter.TextTranslation -= OnTextTranslation; HookCenter.ArcTextureTranslation -= OnArcTextureTranslation; HookCenter.ArcTextureLoaded -= OnArcTextureLoaded; HookCenter.SpriteTextureTranslation -= OnSpriteTextureTranslation; HookCenter.UITextureTranslation -= OnUITextureTranslation; SceneManager.sceneLoaded -= OnSceneLoaded; Dumper.Dispose(); Logger.Log(LogLevel.Debug, $"Plugin destroyed."); } catch (Exception ex) { Logger.Log(LogLevel.Error, ex); throw; } }