コード例 #1
0
 public static float GetAim()
 {
     if (inputType == InputType.Controller)
     {
         return(ControllerInputManager.GetLeftTrigger());
     }
     else if (inputType == InputType.KeyboardMouse)
     {
         return(Input.GetMouseButton(1) ? 1 : 0);
     }
     else
     {
         return(0);
     }
 }