Tip2Window.cs 437 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using TMPro;
  4. using UnityEngine;
  5. using XRTool.Util;
  6. public class Tip2Window : WindowSingleton<Tip2Window>
  7. {
  8. public TextMeshProUGUI infoText;
  9. public void showTxt(string info)
  10. {
  11. this.transform.SetAsLastSibling();
  12. infoText.text = info;
  13. TimerMgr.Instance.CreateTimer(()=> {
  14. this.gameObject.SetActive(false);
  15. },5f);
  16. }
  17. }