diff --git a/Assets/TcgEngine/Scenes/Menu/OpenPack.unity b/Assets/TcgEngine/Scenes/Menu/OpenPack.unity index 1488d96..68cc390 100644 --- a/Assets/TcgEngine/Scenes/Menu/OpenPack.unity +++ b/Assets/TcgEngine/Scenes/Menu/OpenPack.unity @@ -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: diff --git a/Assets/TcgEngine/Scripts/Menu/PackBuyPanel.cs b/Assets/TcgEngine/Scripts/Menu/PackBuyPanel.cs index c21f252..f567931 100644 --- a/Assets/TcgEngine/Scripts/Menu/PackBuyPanel.cs +++ b/Assets/TcgEngine/Scripts/Menu/PackBuyPanel.cs @@ -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)); }