Beispiel #1
0
        public override void LeaveState(StatesNames newState)
        {
            isChangingMain = false;
            isChangingAlt  = false;
            changingButton = "";

            OnChangingButtonFinished?.Invoke();
            SwitchStateObject(false);
        }
Beispiel #2
0
        public void ChangeAltButton(string buttonName, KeyCode newKey)
        {
            if (IsButtonReserved(newKey))
            {
                return;
            }
            GameInput.ChangeButtonAltKey(buttonName, newKey);
            isChangingAlt  = false;
            changingButton = buttonName;

            OnChangingButtonFinished?.Invoke();
        }