カスタマイズ機能アイテムのイメージ表示対応
This commit is contained in:
parent
c678cd4978
commit
0f59e3b811
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue