Esempio n. 1
0
    //a short cut function derives from OnEndTurn() which actually end the current turn
    public static void MoveToNextTurn()
    {
        GridManager.Deselect();         //probably not needed,

        NextTurnID();
        if (turnIDLoop > totalFactionInGame)
        {
            turnIDLoop = 1;
            OnNewRound();
            return;
        }

        while (!UnitControl.IsFactionStillActive(turnID))
        {
            NextTurnID();
            if (turnIDLoop > totalFactionInGame)
            {
                turnIDLoop = 1;
                OnNewRound();
                return;
            }
        }

        instance.StartCoroutine(instance.OnNextTurn());
    }