开卡界面修改

This commit is contained in:
YiHan0621
2025-10-15 20:19:31 +08:00
parent c8f1e585bf
commit 64d01f317b
2 changed files with 7 additions and 3 deletions

View File

@@ -1113,8 +1113,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 57.840088, y: 58.390015}
m_SizeDelta: {x: 89, y: 89}
m_AnchoredPosition: {x: 71.3, y: 1013.1}
m_SizeDelta: {x: 114.27, y: 113.86}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &585122094
MonoBehaviour:

View File

@@ -30,8 +30,12 @@ namespace TcgEngine.UI
protected override void Awake()
{
base.Awake();
this.Show();
if (HandPackArea.Get() != null)
Hide();
if (PackPanel.Get() != null)
Show();
buy_five_btn.onClick.AddListener(() => OnClickBuy(1));
buy_ten_btn.onClick.AddListener(() => OnClickBuy(2));
}