private void SwitchWeaponCheck() { if (Input.GetKeyDown(KeyCode.Q)) { SwitchWeaponDown?.Invoke(); } else if (Input.GetKeyUp(KeyCode.E)) { SwitchWeaponUp?.Invoke(); } }
private void OnEnable() { playerSwipeButton.SwipeLeft += () => SwitchWeaponDown?.Invoke(); playerSwipeButton.SwipeRight += () => SwitchWeaponUp?.Invoke(); }