public void End() { characterSpawner.DestroyCharacter(); characterSpawner = null; npcManager.DespawnNPCs(); npcManager = null; GameObject.Destroy(pauseOverlay); // OrbManager is used in the parasite tutorial to manage the static // orbs that are part of the level if (orbManager != null) { orbManager.DestroyOrbs(); orbManager = null; } foreach (TriggerZone zone in triggerZones) { zone.Reset(); } foreach (InfoScreen screen in infoScreens) { screen.Reset(); } }
public void EndRound() { npcManager.DespawnNPCs(); objectManager.OnRoundEnd(); PhotonNetwork.Destroy(photonView); }