Ejemplo n.º 1
0
        private Country CreateCountry(int starCount)
        {
            var card = new TerritoryCard()
            {
                StarCount = starCount
            };
            var country = new Country()
            {
                Card = card
            };

            countries.Add(country);

            return(country);
        }
Ejemplo n.º 2
0
    public void GenerateCards(TerritoryNode[] allTerritories)
    {
        int armyValue = 1;

        for (int i = 0; i < allTerritories.Length + 2; i++)
        {
            TerritoryCard cardScript = cards[i].GetComponent <TerritoryCard>();

            if (i < allTerritories.Length)
            {
                cardScript.InitializeTerritoryCard(allTerritories[i], armyValue);
                armyValue++;
            }
            else
            {
            }

            if (armyValue > 3)
            {
            }
        }
    }