예제 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
                Renderer.Dispose();

                Main.Context.Orbwalker.UnregisterMode(Mode);
                Menu.ComboKeyItem.Item.ValueChanged -= ComboKeyChanged;

                AutoAbility.Dispose();
                WithoutFail.Dispose();
                AutoDisable.Dispose();
                SpamMode.Dispose();
                AutoCombo.Dispose();
                AutoKillSteal.Dispose();
                DamageCalculation.Dispose();
                UpdateMode.Dispose();

                Main.Context.Particle.Dispose();

                Menu.Dispose();
            }

            Disposed = true;
        }
예제 #2
0
        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;
        }