UI导入
This commit is contained in:
@@ -8,8 +8,8 @@ using TcgEngine.UI;
|
||||
namespace TcgEngine.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Main client script for the matchmaker
|
||||
/// Will send requests to server and receive a response when a matchmaking succeed or fail
|
||||
/// 匹配器的主客户端脚本
|
||||
/// 将向服务器发送请求并在匹配成功或失败时接收响应
|
||||
/// </summary>
|
||||
|
||||
public class GameClientMatchmaker : MonoBehaviour
|
||||
|
||||
@@ -8,7 +8,7 @@ using TcgEngine.UI;
|
||||
namespace TcgEngine.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Area of the hand of packs, will spawn/despawns visual packs based on what player has in the data
|
||||
/// 手部区域的包,将根据玩家在数据中拥有的内容生成/销毁视觉包
|
||||
/// </summary>
|
||||
|
||||
public class HandPackArea : MonoBehaviour
|
||||
|
||||
@@ -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