// 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(); } public virtual void Refresh(TipData _Data) { m_txtText.text = _Data.m_text; //Debug.Log("TipUnit. Refresh(). text:" + _Data.m_text); } }