カスタマイズ機能アイテムのイメージ表示対応

This commit is contained in:
kimura 2022-05-13 10:48:27 +09:00
parent c678cd4978
commit 0f59e3b811
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ namespace MyGame.Scenes.marketing.Scripts
itemState.Subscribe(state => itemState.Subscribe(state =>
{ {
lockObject.SetActive(state == ShopCustomizeItemState.Lock); lockObject.SetActive(state == ShopCustomizeItemState.Lock);
iconTarget.gameObject.SetActive(state != ShopCustomizeItemState.Lock);
unlockObject.SetActive(state == ShopCustomizeItemState.Unlock); unlockObject.SetActive(state == ShopCustomizeItemState.Unlock);
purchasedObject.SetActive(state == ShopCustomizeItemState.Purchased || state == ShopCustomizeItemState.Selected); purchasedObject.SetActive(state == ShopCustomizeItemState.Purchased || state == ShopCustomizeItemState.Selected);
selectedObject.SetActive(state == ShopCustomizeItemState.Selected); selectedObject.SetActive(state == ShopCustomizeItemState.Selected);
@ -79,7 +80,7 @@ namespace MyGame.Scenes.marketing.Scripts
unlockLevelText.text = customizeData.level.ToString(); unlockLevelText.text = customizeData.level.ToString();
priceText.text = customizeData.price.ToString(); priceText.text = customizeData.price.ToString();
iconTarget.DestroyAllChildrens(); iconTarget.DestroyAllChildrens();
// Instantiate(iconTarget); Instantiate(customizeData.GetPrefab(), iconTarget);
} }
} }
} }