public void CreateHand() { if (Hand != null) { return; } Hand = Instantiate(handZonePrefab, scrollView.content).GetComponent <ExtensibleCardZone>(); Hand.Viewer = this; ResizeContent(); IsExtended = !IsPortrait; }
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(); }