Exemplo n.º 1
0
 private void ResetGame()
 {
     player.gameObject.SetActive(false);
     playerInput.RestoreHealth();
     player.transform.position = Vector3.zero;
     enemySpawner.enabled      = false;
     enemySpawner.DestroyAll();
     waveNumber  = 0;
     playerKills = 0;
     menuController.UpdateWave(waveNumber);
     menuController.UpdateScore(playerKills);
     Time.timeScale = 1;
 }