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