protected override void OnDeactivate() { _MenuManager.Value.DeregisterMenu(Core.Config._Menu); _Input.MouseClick -= MouseRegionCatch.Input_MouseClick; _Input.MouseMove -= MouseRegionCatch.OnMouseMove; Core.Config._Renderer.Draw -= Drawings.Info.OnDraw; Core.Config._Renderer.Draw -= Drawings.SpellConfigPanel.OnDraw; Core.Config._Renderer.Draw -= Drawings.StealConfigPanel.OnDraw; UpdateManager.Unsubscribe(Core.Logics.CastWatherLogic.OnUpdate); UpdateManager.Unsubscribe(LinkenSaveLogic.OnUpdate); UpdateManager.Unsubscribe(GlimmerSaveLogic.OnUpdate); UpdateManager.Unsubscribe(Core.Logics.ModWatcherLogic.OnUpdate); UpdateManager.Unsubscribe(Core.Logics.ParticleRemover.OnUpdate); UpdateManager.Unsubscribe(EnemyUpdater.OnUpdate); _InventoryManager.Detach(Core.Config._Items); Entity.OnAnimationChanged -= OnAnimationChanged; //foreach (var _BS in Core.Config._BombStacks) //{ // Core.Config._ParticleManager.Remove(_BS.Id.ToString()); //} _InventoryManager.Detach(Core.Config._Items); }
protected override void OnDeactivate() { _MenuManager.Value.DeregisterMenu(Config._Menu); _Input.KeyDown -= Input_KeyDown; _Input.MouseClick -= Input_MouseClick; Config._Renderer.Draw -= Info.OnDraw; UpdateManager.Unsubscribe(MainLogic.OnUpdate); UpdateManager.Unsubscribe(LinkenSaveLogic.OnUpdate); UpdateManager.Unsubscribe(GlimmerSaveLogic.OnUpdate); UpdateManager.Unsubscribe(LotusSaveLogic.OnUpdate); UpdateManager.Unsubscribe(GlimmerCUltLogic.OnUpdate); _InventoryManager.Detach(Core.Config._Items); }
public void Dispose() { inventory?.Detach(this); }
public void uninstall() { _inventoryManager.Detach(this); }