アイコン表示対応
This commit is contained in:
parent
caa07c4db2
commit
daa26f4cc3
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue