出战卡组UI
This commit is contained in:
@@ -409,6 +409,9 @@ namespace TcgEngine.UI
|
||||
RefreshDeckCards();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 刷新牌组卡片
|
||||
/// </summary>
|
||||
private void RefreshDeckCards()
|
||||
{
|
||||
foreach (DeckLine line in deck_card_lines)
|
||||
|
||||
@@ -128,6 +128,17 @@ namespace TcgEngine.UI
|
||||
gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void SetLine(CardData card, UserData udata, UserDeckData deck)
|
||||
{
|
||||
this.card = null;
|
||||
this.deck = null;
|
||||
this.udeck = deck;
|
||||
hidden = false;
|
||||
if(this.title!=null)
|
||||
this.title.text = deck.title;
|
||||
|
||||
}
|
||||
|
||||
public void SetLine(string title)
|
||||
{
|
||||
this.card = null;
|
||||
|
||||
Reference in New Issue
Block a user