Beispiel #1
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();
        }
Beispiel #2
0
 private void ToggleMainMenuVisible()
 {
     if (mainMenu_ != null)
     {
         CleanupMainMenu();
         BattleCamera.SetDepthOfFieldEnabled(false);
     }
     else
     {
         CreateMainMenu();
         BattleCamera.SetDepthOfFieldEnabled(true);
     }
 }
Beispiel #3
0
        protected override void OnStateEntered()
        {
            dynamicGroup_.Enabled = true;

                        #if DEMO
            PHASERBEAKDebug.ResetAllThings();
                        #endif

            BattleCamera.SetDepthOfFieldEnabled(true);
            InGameConstants.BattlePlayerPartsFade = true;
            RegisteredPlayers.Clear();

            ArenaManager.Instance.AnimateLoadRandomArena(() => {
                RegisteredPlayersUtil.RegisterAIPlayers(4);
                PlayerSpawner.ShouldRespawn = true;
                PlayerSpawner.SpawnAllPlayers();
            });

            CreateMainMenu();
        }