Ejemplo n.º 1
0
 public void StartGame()
 {
     music_source.Stop();
     music_source.Play();
     win              = false;
     lose             = false;
     waiting_to_start = false;
     spawn_manager.CleanUpUnits();
     spawn_manager.StartWaves();
     spawn_manager.enabled = true;
     button_start_game.gameObject.SetActive(false);
     player.live        = 100;
     player.currentAmmo = player.maxAmmo;
     death_hostages     = 0;
     text_amount_death_hostages.text = death_hostages.ToString();
     hostages_die_before             = death_hostages;
     power_up.Reset_Kills();
 }