public void StartChooseCard(GameObject[] cards, HexCell cell) { gameObject.SetActive(true); CardButtons = new GameObject[cards.Length]; for (int i = 0; i < cards.Length; i++) { Card_Base card = cards[i].GetComponent <Card_Base>(); GameObject g = Instantiate(cardButtonObj, cardHolderTransform); g.GetComponent <UI_ChooseCardButton>().SetCard(cards[i]); CardButtons[i] = g; } HintText.text = "你占领了" + ArtResourceManager.ConverCellTypeText(cell.CellType) + "\n选择一张卡牌"; }
private void Awake() { instance = this; }