protected override void OnStateExited() { if (view_ != null) { ObjectPoolManager.Recycle(view_); view_ = null; } PlayerScores.Clear(); StatsManager.ClearAllStats(); }
protected override void OnStateExited() { dynamicGroup_.Enabled = false; BattleCamera.SetDepthOfFieldEnabled(false, animate: true); InGameConstants.BattlePlayerPartsFade = false; PlayerScores.Clear(); RegisteredPlayers.Clear(); PlayerSpawner.ShouldRespawn = false; PlayerSpawner.CleanupAllPlayers(); CleanupMainMenu(); }