AkiraPixelWind/Assets/Scripts/Main/UI/UIMgr/Tips/TipUnit.cs
2022-12-29 18:20:40 +08:00

24 lines
460 B
C#

// Author: whc
// Desc:
using UnityEngine;
using UnityEngine.UI;
public class TipUnit : MonoBehaviour
{
public Text m_txtText;
public virtual void Awake()
{
//Debug.Log("TipUnit. Awake()");
m_txtText = transform.Find("txtText").GetComponent<Text>();
}
public virtual void Refresh(TipData _Data)
{
m_txtText.text = _Data.m_text;
//Debug.Log("TipUnit. Refresh(). text:" + _Data.m_text);
}
}