using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UIElements; public class ImageTips : MonoBehaviour { public static ImageTips instance; /// /// 提示面板 /// public GameObject TipPanel; /// /// 提示内容 /// public TextMeshProUGUI Tips; private void Awake() { instance = this; } /// /// 显示提示,等待2秒后消失 /// /// public IEnumerator WaitHide() { TipPanel.SetActive(true); yield return new WaitForSeconds(2); TipPanel.SetActive(false); } }