_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Scene_shop/wokePanel.cs
wulongxiao 8b938b55de 接入
2024-11-28 02:00:05 +08:00

38 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class wokePanel : ui_huodong
{
public Sprite icon;
[Header("大的物品名的TextPro")]
public TextMeshProUGUI BigNameText;
[Header("物品名的TextPro")]
public TextMeshProUGUI NameText;
[Header("物品价格的TextPro")]
public TextMeshProUGUI priceText;
[Header("物品价格的详细介绍")]
public Text info;
public void initShow(Sprite icon,string BigNameText,string NameText,string priceText,string info)
{
this.icon = icon;
this.BigNameText.text = BigNameText;
this.NameText.text = NameText;
this.priceText.text = "¥" + priceText;
this.info.text = info;
}
public void initShow(string BigNameText, string NameText, string priceText, string info)
{
this.BigNameText.text = BigNameText;
this.NameText.text = NameText;
this.priceText.text = "¥"+priceText;
this.info.text = info;
}
}