//创建UI手牌 UICard AddUICard(int player, Card card) { UICard uiCard = Instantiate(cardPrefab, cardParents[player]).GetComponent <UICard>(); uiCard.Set(card); //注册点击事件 uiCard.onClick += () => { OnUICardClick(uiCard); }; return(uiCard); }