Esempio n. 1
0
    public void DrawNewHand()
    {
        foreach (CardBuilder card in currentHand)
        {
            card.SetEnabled(true);
        }

        List <PolicyController> currentPolicies = GetRandomPolicies(0, currentHand.Length);

        for (int i = 0; i < currentHand.Length; ++i)
        {
            CardBuilder card = currentHand[i];
            if (card.isHeld == false)
            {
                PolicyController pci = Instantiate(currentPolicies[i], card.transform);
                pci.island = gameObject;
                card.BuildWithPolicy(pci);
            }
        }
    }