Пример #1
0
        public void CreateHand()
        {
            if (Hand != null)
            {
                return;
            }

            Hand        = Instantiate(handZonePrefab, scrollView.content).GetComponent <ExtensibleCardZone>();
            Hand.Viewer = this;
            ResizeContent();
            IsExtended = !IsPortrait;
        }
Пример #2
0
        public void CreateExtraZone(string name, List <Card> cards)
        {
            ExtensibleCardZone extraZone = Instantiate(extraZonePrefab, scrollView.content).GetComponent <ExtensibleCardZone>();

            extraZone.labelText.text = name;
            foreach (Card card in cards)
            {
                extraZone.AddCard(card);
            }
            extraZone.Viewer = this;
            ExtraZones.Add(extraZone);
            ResizeContent();
        }