UnityCommon/base/richText/TextItem.cs
2024-12-04 10:26:19 +08:00

18 lines
353 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextItem : MonoBehaviour
{
// Start is called before the first frame update
string text = "";
public Text textObj;
public void updateText(string text)
{
textObj.text = text;
this.text = text;
}
}