public BattleCardMaid GenerateCard(CardData data, RectTransform Container) { BattleCardMaid maid = Instantiate(BattleMaid.Summon.CardTemplate); maid.SetCard(data); maid.transform.SetParent(Container); return(maid); }
public void SetDetailCard(BattleCardMaid maid) { if (maid == null) { if (selectedCard == null) { SetLeftPanelVisible(false); return; } maid = selectedCard; } CardDetail.SetCard(maid); SetCommand(maid); SetLeftPanelVisible(true); }