// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-14
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
using TMPro;
using UnityEngine;
namespace G.UI
{
public class AttributeWidget : KUIWidget
{
private TextMeshProUGUI _attrText;
private void Awake()
{
_attrText = GetComponent();
}
public void SetData(string text, Color color)
{
_attrText.text = text;
_attrText.color = color;
}
public override void Refresh()
{
if (this.data is string attr)
{
_attrText.text = attr;
}
}
}
}