コード例 #1
0
 /// <summary>
 /// Resets the car
 /// </summary>
 public void Reset()
 {
     collisionCount        = 0;
     transform.position    = spawnPoint.position;
     transform.rotation    = spawnPoint.rotation;
     rigid.velocity        = Vector3.zero;
     rigid.angularVelocity = Vector3.zero;
     controller.ApplyBrakes();
     carRenderer.material.color = defaultColor;
 }
コード例 #2
0
 public void Execute()
 {
     controller.ApplyBrakes();
 }
コード例 #3
0
 public void Execute()
 {
     controller.ApplyMotorTorque(1);
     controller.ApplyBrakes();
 }