public void Open(int[] cards) { base.Open(); GameCenter.Hud.GetPanel <PanelChooseOperate>().ClosePanel(); GameCenter.Hud.GetPanel <PanelOpreateMenu>().Close(); for (int i = 0; i < cards.Length; i++) { var item = ItemStore.GetItem <LiangdaoGridItem>(i); if (item != null) { item.SetCard(cards[i]); } } }
public void SetCard(int value) { Value = value; gameObject.SetActive(true); for (int i = 0; i < 3; i++) { var item = ItemStore.GetItem <UIBigCardItem>(i); if (item != null) { item.SetCard(value); } } }
public void SetHuCard(IList <int> cards) { gameObject.SetActive(true); FrameCtrl(); SetGridLayout(cards.Count); for (int i = 0; i < cards.Count; i++) { var item = ItemStore.GetItem <UISmallCardItem>(i); if (item != null) { item.SetCard(cards[i]); } } }