Esempio n. 1
0
        public void OnDirectionAttackButton(InputAction.CallbackContext context)
        {
            var direction = Gamepad.current.leftStick.ReadValue().normalized;

            DirectionalAttack?.Invoke(direction);
        }
Esempio n. 2
0
        public void OnDirectionalAttack(InputAction.CallbackContext context)
        {
            var direction = context.ReadValue <Vector2>().normalized;

            DirectionalAttack?.Invoke(direction);
        }