shaoxiadiablo/Assets/AGame/Scripts/UI/Equipment/EquipmentAttributeItem.cs

35 lines
809 B
C#
Raw Permalink Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-05-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "EquipmentAttributeItem" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
using TMPro;
public class EquipmentAttributeItem : KUIWidget
{
private TextMeshProUGUI _attrText;
private void Awake()
{
_attrText = this.Find<TextMeshProUGUI>("Text (TMP)");
}
public override void Refresh()
{
if (this.data is string attr)
{
_attrText.text = attr;
}
}
}
}