アイコン表示対応

This commit is contained in:
kimura 2022-05-13 13:33:44 +09:00
parent caa07c4db2
commit daa26f4cc3
2 changed files with 3 additions and 3 deletions

View File

@ -80,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(customizeData.GetPrefab(), iconTarget); Instantiate(customizeData.GetIconPrefab(), iconTarget);
} }
} }
} }

View File

@ -56,9 +56,9 @@ namespace MyGame.Scenes.marketing.Scripts
textText.text = customizeData.Text; textText.text = customizeData.Text;
priceText.text = customizeData.price.ToString(); priceText.text = customizeData.price.ToString();
imageTransform.DestroyAllChildrens(); imageTransform.DestroyAllChildrens();
Instantiate(customizeData.GetPrefab(), imageTransform); Instantiate(customizeData.GetIconPrefab(), imageTransform);
detailImageTransform.DestroyAllChildrens(); detailImageTransform.DestroyAllChildrens();
Instantiate(customizeData.GetPrefab(), detailImageTransform); Instantiate(customizeData.GetIconPrefab(), detailImageTransform);
} }
public static void ShowDialog(ShopCustomizeData customizeData, bool detailMode, Action onPurchase = null, Action onClose = null){ public static void ShowDialog(ShopCustomizeData customizeData, bool detailMode, Action onPurchase = null, Action onClose = null){