12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using XRTool.Util;
- public class TipMgr : UnitySingleton<TipMgr>
- {
- protected override void Awake()
- {
- base.Awake();
- this.gameObject.SetActive(false);
- }
- public Text msgText;
- // Start is called before the first frame update
- public void ShowTip(string msg)
- {
- this.gameObject.SetActive(true);
- msgText.text = msg;
- TimerMgr.Instance.CreateTimer(() => { this.gameObject.SetActive(false); }, 2f);
- }
- }
|