Ejemplo n.º 1
0
 public void RestartFromCheckpoint()
 {
     if (nextWave >= 4 && nextWave <= 6)
     {
         nextWave = 3;
     }
     if (nextWave >= 7 && nextWave <= 13)
     {
         nextWave = 6;
     }
     if (nextWave >= 14)
     {
         nextWave = 13;
     }
     _playerDied = true;
     _player.SetActive(true);
     _player.transform.position = new Vector3(-20, 0, 0);
     _playerHP.PlayerRespawn();
     _bgColor.FinalBossNotActive();
     DestroyAllObjects();
     WaveCompleted();
 }