// Start is called before the first frame update void Awake() { if (m_Instance != null) { Debug.LogError("Cannot have more than 1 SoundEffectControllers in scene."); } m_Instance = this; }
private void ShowEndGameScreen() { ClientSpawnSystem.RemoveAllClients(); ClientSpawnSystem.PauseSpawn(); StatisticsSystem statistics = StatisticsSystem.Instance; m_EndGameCardView.Setup(statistics.TotalYearsCollected, statistics.TotalDeaths, statistics.Passed); m_EndGameCardView.Show(); }