예제 #1
0
        IEnumerator DelayStartGame(float delay = 0.5f)
        {
            yield return(null);

            FactionManager.SetupFaction();
            GridManager.SetupGridForFogOfWar();
            yield return(null);

            PerkManager.InitPerkProgress();             //initiate prepurchase perk and so on

            if (delay > 0)
            {
                yield return(new WaitForSeconds(delay));
            }

            gamePhase = _GamePhase.Play;
            TurnControl.StartGame();                    //this will initiate unit selection and start the game
            yield return(null);

            //if(onGameStartE!=null) onGameStartE();
            TBTK.OnGameStart();
        }