private void UpdateTimerParkingMode() { timerText.text = second.ToString(); if (second == 60) { //Instructor.instance?.PlaySound(timerSound[0]); } else if (second == 30) { Instructor.instance?.PlaySound(timerSound[1]); } else if (second == 10) { Instructor.instance?.PlaySound(timerSound[2]); } else if (second == 5) { Instructor.instance?.PlaySound(timerSound[3]); } else if (second == 0) { Globals.RESULT = Result.TooLongPark; SceneHandeler.GoToScene(2); Instructor.instance?.PlaySound(timerSound[4]); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { SceneHandeler.ReloadScene(); } }
private void UpdateTimerZombieMode() { timerText.text = second.ToString(); if (second == 0) { Globals.RESULT = Result.ZombieSurvive; SceneHandeler.GoToScene(2); } }
private void Update() { if (life <= 0) { Globals.RESULT = Result.ZombieEat; SceneHandeler.GoToScene(2); } lifeText.text = "Life:" + life.ToString(); }
public void ParkingSucces() { Globals.RESULT = Result.Parking; SceneHandeler.GoToScene(2); }