UI导入
This commit is contained in:
@@ -8,8 +8,8 @@ using TcgEngine.FX;
|
||||
namespace TcgEngine.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Visual representation of a card found in a pack (once opened)
|
||||
/// The card can be flipped by clicking on it
|
||||
///打开后找到的卡片的可视化表示
|
||||
///通过点击卡片可以翻转它
|
||||
/// </summary>
|
||||
|
||||
public class PackCard : MonoBehaviour
|
||||
@@ -43,6 +43,7 @@ namespace TcgEngine.Client
|
||||
void Awake()
|
||||
{
|
||||
card_list.Add(this);
|
||||
Debug.Log($"当前数量{card_list.Count}");
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
@@ -62,6 +63,11 @@ namespace TcgEngine.Client
|
||||
|
||||
if (removed && timer > 4f)
|
||||
Destroy(gameObject);
|
||||
|
||||
if (card_list.Count==5)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void SetCard(PackData pack, CardData card, VariantData variant)
|
||||
@@ -73,6 +79,7 @@ namespace TcgEngine.Client
|
||||
cardback.sprite = pack.GetCardbackImage();
|
||||
|
||||
card_ui.SetCard(card, variant);
|
||||
card_ui.card_image.SetNativeSize();
|
||||
new_card?.SetActive(false);
|
||||
|
||||
UserData udata = Authenticator.Get().GetUserData();
|
||||
|
||||
Reference in New Issue
Block a user