void OnDisable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            EventBus.Unsubscribe(this);
            HotkeyHelper.Unbind(HOTKEY_FOR_TOGGLE_ATTACK_INDICATOR, HandleToggleAttackIndicator);
        }
Пример #2
0
        public void HandleModDisable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            EventBus.Unsubscribe(this);
            HotkeyHelper.Unbind(HOTKEY_FOR_TOGGLE_HUD, HandleToggleHUD);
            HotkeyHelper.Unbind(HOTKEY_FOR_TOGGLE_STEALTH, HandleToggleStealth);
            HotkeyHelper.Unbind(HOTKEY_FOR_TOGGLE_AI, HandleToggleAI);
        }
        void OnDisable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            HotkeyHelper.Unbind(HOTKEY_FOR_END_TURN, HandleClickEndTurn);
            HotkeyHelper.Unbind(HOTKEY_FOR_DELAY, HandleClickDelay);
            HotkeyHelper.Unbind(HOTKEY_FOR_FIVE_FOOT_STEP, HandleClickFiveFootStep);
            HotkeyHelper.Unbind(HOTKEY_FOR_FULL_ATTACK, HandleClickFullAttack);

            ClearUnits();
            HoveringUnit = null;

            _canvasGroup.DOKill();
            _body.DOKill();
        }
Пример #4
0
        void OnDisable()
        {
            Mod.Debug(MethodBase.GetCurrentMethod());

            HotkeyHelper.Unbind(HOTKEY_FOR_TOGGLE_MOVEMENT_INDICATOR, HandleToggleMovementIndicator);
        }