Beispiel #1
0
    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]);
        }
    }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         SceneHandeler.ReloadScene();
     }
 }
Beispiel #3
0
 private void UpdateTimerZombieMode()
 {
     timerText.text = second.ToString();
     if (second == 0)
     {
         Globals.RESULT = Result.ZombieSurvive;
         SceneHandeler.GoToScene(2);
     }
 }
Beispiel #4
0
    private void Update()
    {
        if (life <= 0)
        {
            Globals.RESULT = Result.ZombieEat;
            SceneHandeler.GoToScene(2);
        }

        lifeText.text = "Life:" + life.ToString();
    }
Beispiel #5
0
 public void ParkingSucces()
 {
     Globals.RESULT = Result.Parking;
     SceneHandeler.GoToScene(2);
 }