using QFramework; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HintLogPanel : MonoSingleton { public GameObject hintPanel; public Text hintLog; public void Show(string hint) { hintLog.text = hint; hintPanel.SetActive(true); StartCoroutine(TimeClose(1)); } public void Close() { hintLog.text = ""; hintPanel.SetActive(false); } IEnumerator TimeClose( float times) { yield return new WaitForSeconds(times); Close(); } }