예제 #1
0
 public void Fire(InputAction.CallbackContext context)
 {
     if (context.started)
     {
         currentWeapon.BeginFire();
     }
     else if (context.canceled || context.performed)
     {
         currentWeapon.EndFire();
     }
 }