From 0f59e3b8118354551489446a1606dcbcde416614 Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 13 May 2022 10:48:27 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=9E=E3=82=A4?= =?UTF-8?q?=E3=82=BA=E6=A9=9F=E8=83=BD=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0?= =?UTF-8?q?=E3=81=AE=E3=82=A4=E3=83=A1=E3=83=BC=E3=82=B8=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/marketing/Scripts/ShopCustomizeItem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeItem.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeItem.cs index 309d35ef..47629072 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeItem.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ShopCustomizeItem.cs @@ -42,6 +42,7 @@ namespace MyGame.Scenes.marketing.Scripts itemState.Subscribe(state => { lockObject.SetActive(state == ShopCustomizeItemState.Lock); + iconTarget.gameObject.SetActive(state != ShopCustomizeItemState.Lock); unlockObject.SetActive(state == ShopCustomizeItemState.Unlock); purchasedObject.SetActive(state == ShopCustomizeItemState.Purchased || state == ShopCustomizeItemState.Selected); selectedObject.SetActive(state == ShopCustomizeItemState.Selected); @@ -79,7 +80,7 @@ namespace MyGame.Scenes.marketing.Scripts unlockLevelText.text = customizeData.level.ToString(); priceText.text = customizeData.price.ToString(); iconTarget.DestroyAllChildrens(); - // Instantiate(iconTarget); + Instantiate(customizeData.GetPrefab(), iconTarget); } } } \ No newline at end of file