示例#1
0
 // Update is called once per frame
 void Update()
 {
     playerInput.GetInput(ref currentInfo, ref controllerDeadZone);
     if (debug)
     {
         currentInfo.moveSpeed     = moveSpeed;
         currentInfo.rotationSpeed = rotationSpeed;
         //
         currentInfo.controllerDeadZone = controllerDeadZone;
     }
     playerMotor.Action(currentInfo.actionWasPressed);
 }