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) { } 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; } }