1234567891011121314151617181920212223242526272829303132333435363738 |
- 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<TuSi>
- {
- private Text tusitext;
- protected override void Awake()
- {
- base.Awake();
- WorldDlg dlg = GetComponent<WorldDlg>();
- tusitext = dlg.GetBreadthChild<Text>("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);
- }
- }
- }
|