diff --git a/popcorn/Assets/MyGame/Scenes/shopping/Prefabs/PurchaseView.prefab b/popcorn/Assets/MyGame/Scenes/shopping/Prefabs/PurchaseView.prefab index 9b541f06..961c18b1 100644 --- a/popcorn/Assets/MyGame/Scenes/shopping/Prefabs/PurchaseView.prefab +++ b/popcorn/Assets/MyGame/Scenes/shopping/Prefabs/PurchaseView.prefab @@ -288,6 +288,7 @@ MonoBehaviour: purchaseOffButton: {fileID: 7845949066005219734} quantitySelectObject: {fileID: 9133304337054428179} explanationObject: {fileID: 9133304336181127570} + stockCountObject: {fileID: 9133304335334808094} --- !u!1 &9133304335268316944 GameObject: m_ObjectHideFlags: 0 diff --git a/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemPurchaseView.cs b/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemPurchaseView.cs index f164fdec..134d919d 100644 --- a/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemPurchaseView.cs +++ b/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemPurchaseView.cs @@ -27,6 +27,7 @@ public class ShopItemPurchaseView : MonoBehaviour [SerializeField] private GameObject purchaseOffButton; [SerializeField] private GameObject quantitySelectObject; [SerializeField] private GameObject explanationObject; + [SerializeField] private GameObject stockCountObject; private Color redColor; private Color defaultColor; @@ -69,6 +70,7 @@ public class ShopItemPurchaseView : MonoBehaviour totalPrice.text = $"{total}"; purchaseCount.text = $"{x}"; }).AddTo(this); + stockCountObject.SetActive(data.shopData.ConsumeType == ShopItemType.Consumable); quantitySelectObject.SetActive(data.shopData.ConsumeType == ShopItemType.Consumable); explanationObject.SetActive(data.shopData.ConsumeType == ShopItemType.NonConsumable); if (data.shopData.ConsumeType == ShopItemType.Consumable)