Пример #1
0
 public void WaitGameOver()
 {
     if (PlayerLife > 0)
     {
         PlayerLife--;
         ui.SetPlayerLife(PlayerLife);
         player.transform.position = Vector3.zero;
         player.gameObject.SetActive(true);
         hazardRoutine = StartCoroutine(Hazards());
     }
     else
     {
         for (int i = 0; i < BGs.Length; i++)
         {
             BGs[i].StopScroll();
         }
         ui.SetGameOver();
         IsGameOver = true;
     }
 }