Beispiel #1
0
 private void StartGame()
 {
     if (_player != null)
     {
         _player.Release();
         Destroy(_player.gameObject);
     }
     _player             = Instantiate(Player, PositonPlayer);
     _player.LifeUpdate += OnPlayerLifeUpdate;
     EnemiesController.Release();
     EnemiesController.StartGame(_currentLevel);
     LevelProgress.StartGame();
     UIController.ShowPlay(_player);
 }