void Start() { _swordController = GetComponentInChildren <SwordController>(); _inputActions = new PlayerInputAction(); _inputActions.Enable(); // attack _inputActions.Player.Attack.performed += _ => _swordController.SwingSword(); }
void Start() { _swordController = GetComponentInChildren <SwordController>(); _inputActions = new PlayerInputAction(); _inputActions.Enable(); // attack _inputActions.Player.Attack.performed += _ => _swordController.SwingSword(); }