using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XRTool.Util; using XRTool.WorldUI; namespace ShadowStudio.UI { [RequireComponent(typeof(WorldDlg))] public class TuSi : UnitySingleton { private Text tusitext; protected override void Awake() { base.Awake(); WorldDlg dlg = GetComponent(); tusitext = dlg.GetBreadthChild("Tusitext"); } // Start is called before the first frame update void Start() { } public void ShowTextContent(string content) { tusitext.text = content; Invoke("HeidTusi", 2f); } public void HeidTusi() { this.transform.gameObject.SetActive(false); } } }