Exemplo n.º 1
0
 public void GoToMenu()
 {
     car.transform.position = carRestartPos;
     Pause(false);
     StopAllCoroutines();
     StartCoroutine(ChangeCarPos());
     StartCoroutine(MoveCameraToDef(cameraStartPosition, false));
     spawn.DeleteTraffic();
     mainUi.ReloadMenu();
 }