24 lines
460 B
C#
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);
|
|
}
|
|
}
|