Exemplo n.º 1
0
        // =========================================================================================
        protected virtual void InputAction(Character character, CharacterState state)
        {
            // Buffer
            if (bufferNormalActive == true)
            {
                if (character.CanAct() == true)
                {
                    NormalAttack(character);
                    return;
                }
            }

            // Input
            if (Input.GetButtonDown(controllerX))
            {
                bufferNormalActive = true;
                StartBuffer();
                if (character.CanAct() == true)
                {
                    NormalAttack(character);
                }
            }
        }