Beispiel #1
0
        protected override void OnStateExited()
        {
            if (view_ != null)
            {
                ObjectPoolManager.Recycle(view_);
                view_ = null;
            }

            PlayerScores.Clear();
            StatsManager.ClearAllStats();
        }
Beispiel #2
0
        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();
        }