/// <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; }
public void Execute() { controller.ApplyBrakes(); }
public void Execute() { controller.ApplyMotorTorque(1); controller.ApplyBrakes(); }