123456789101112131415161718192021222324252627282930 |
- using QFramework;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class HintLogPanel : MonoSingleton<HintLogPanel>
- {
- 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();
- }
- }
|