using System.Numerics; using TMPro; public class GoodsNameItem : GoodsItem { #region UI protected TextMeshProUGUI txtName; #endregion UI protected override void Init() { base.Init(); txtName = transform.Find("txtName").GetComponent(); } public override void ReleaseData() { base.ReleaseData(); txtName.text = null; } public override void SetGoods(int itype, int icode, BigInteger icount, bool bpvp = false) { base.SetGoods(itype, icode, icount); txtName.text = FormatString.GetGoodsName(itype, icode); txtCount.alignment = TextAlignmentOptions.Left; } }