Example #1
0
    void Start()
    {
        _swordController = GetComponentInChildren <SwordController>();

        _inputActions = new PlayerInputAction();
        _inputActions.Enable();

        // attack
        _inputActions.Player.Attack.performed += _ => _swordController.SwingSword();
    }