コード例 #1
0
 // Initializes a new wave of zombies.
 public void initNewLevel()
 {
     Debug.Log("StartGame");
     currentLevel++;
     addWaveText();
     player = GameObject.FindGameObjectWithTag("ThePlayer").GetComponent <PlayerScript>();
     popUpTextScript.newLevelStartedText(currentLevel);
     newLevelSound.Play();
     // Zombies spawn after 2 seconds
     Invoke("SpawnZombies", 2f);
 }