private void Start() { if (!AudioManager.Instance.IsPlaying("Menu Theme")) { AudioManager.Instance.FadeInSound("Menu Theme", 1f); } ActivePlayers.Reset(); }
public void Reset() { List <GameObject> players = GetComponentsInChildren <PlayerInput>().Select(p => p.gameObject).ToList(); players.ForEach(p => DestroyPlayer(p)); ActivePlayers.Reset(); _players.Clear(); _playersToRespawn.Clear(); }