예제 #1
0
    public GameObject SetActiveTestUnit()
    {
        if (listInitiative.Count == 0)
        {
            listInitiative.AddRange(generator.listTroops);
            listInitiative.Sort(CompareInitiative);
            roundCount++;
            battleGUI.GetComponent <BattleGUI>().ShowRoundCount("Round " + roundCount);
        }

        return(listInitiative[0]);
    }