Example #1
0
 public void SetPause()
 {
     _isPaused = !_isPaused;
     ground.SetPause(_isPaused);
     background.SetPause(_isPaused);
     backgroundMusic.Stop();
     _players.ForEach(delegate(PlayerMoviment script) {
         script.SetPause(_isPaused);
     });
     _powerUpController.SetPause(_isPaused);
     _memoryController.SetPause(_isPaused);
 }