Commit 3703888a authored by baichixing's avatar baichixing

fix: editing the deck interface, there is an issue where the card added with a...

fix: editing the deck interface, there is an issue where the card added with a left-click double-click does not have a card image
parent 587fe386
Pipeline #23411 failed with stages
in 2 minutes and 29 seconds
......@@ -181,7 +181,8 @@ public class DeckManager : ServantWithCardDescription
{
var card = createCard();
card.transform.position = cardInDeck.transform.position;
cardInDeck.cardData.cloneTo(card.cardData);
//cardInDeck.cardData.cloneTo(card.cardData);//该方法不能触发卡面的加载
card.cardData = cardInDeck.cardData;
card.gameObject.layer = 16;
deck.IMain.Add(card);
deckDirty = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment