Ejemplo n.º 1
0
 public static float GetShoot()
 {
     if (inputType == InputType.Controller)
     {
         return(ControllerInputManager.GetRightTrigger());
     }
     else if (inputType == InputType.KeyboardMouse)
     {
         return(Input.GetMouseButton(0) ? 1 : 0);
     }
     else
     {
         return(0);
     }
 }