Ejemplo n.º 1
0
 public void StartGame()
 {
     Firebase.Analytics.FirebaseAnalytics.LogEvent("start_game");
     Spawner.ClearSpawnedObjects();
     player.CheckBonusGames();
     main_menu.HideMainMenu();
     exit_game.Disable();
     player_controller.EnableController();
     spawner.StartSpawner();
     playerScore.StartPlayerScore();
     pauseGame.Enable();
     gameMenuCanvas.SetActive(true);
     gameLevelCanvas.SetActive(true);
     player.ResetPlayer();
     player.ShowPlayerLiveContainers();
     gameOverCanvas.SetActive(false);
     bgm.PlayRandomGameMusic();
     skybox.ReloadSkybox();
     bottomBanner.HideBanner();
     gameOverInterstitial.PrepareBanner();
     player.RemoveLifeBonus();
     player.RemoveAutoShieldBonus();
     playerGun.RemoveDoubleFireBonus();
     playerBonusStatus.EnablePlayerBonusStatus();
 }