Esempio n. 1
0
 public void PlayerGotKill()
 {
     wallOfDeath.StopWall();
     myCamera.SetFollowPlayer(false);
     backgroundScroller.DisableScrolling();
     stopGeneratingFloor = true;
     StartCoroutine("RestartLevel");
 }
Esempio n. 2
0
 public void GameOver()
 {
     level      = 0;
     isGameOver = true;
     spawn.StopSpawing();
     spawn.StopMoving();
     ui.ShowGameOver();
     BackgroundScroller.DisableScrolling();
     foreach (BuildingMover building in buildings)
     {
         building.DisableMovement();
     }
     pc.DisableMovement();
     pc.DisableCollsion();
     pc.gameObject.SetActive(false);
 }