protected virtual void Dispose(bool disposing) { if (Disposed) { return; } if (disposing) { Renderer.Dispose(); AutoUsage.Dispose(); WithoutFail.Dispose(); UpdateMode.Dispose(); AutoDisable.Dispose(); AutoCombo.Dispose(); SkywrathMagePlus.Context.Orbwalker.UnregisterMode(Mode); Mode.Deactivate(); SpamMode.Dispose(); SkywrathMagePlus.Context.Particle.Dispose(); ComboKeyItem.Item.ValueChanged -= HotkeyChanged; Factory.Dispose(); } Disposed = true; }
protected virtual void Dispose(bool disposing) { if (Disposed) { return; } if (disposing) { Factory.Dispose(); Renderer.Dispose(); UpdateMode.Dispose(); FamiliarsFollow.Dispose(); FamiliarsLastHit.Dispose(); AutoUsage.Dispose(); FamiliarsLowHP.Dispose(); VisagePlus.Context.Orbwalker.UnregisterMode(Mode); Mode.Deactivate(); VisagePlus.Context.Particle.Dispose(); ComboKeyItem.Item.ValueChanged -= HotkeyChanged; } Disposed = true; }