ErrorLogPanel.cs 463 B

1234567891011121314151617181920212223
  1. using QFramework;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class ErrorLogPanel : MonoSingleton<ErrorLogPanel>
  7. {
  8. public GameObject errorPanel;
  9. public Text errorLog;
  10. public void Show( string error)
  11. {
  12. errorLog.text = error;
  13. errorPanel.SetActive(true);
  14. }
  15. public void Close()
  16. {
  17. errorLog.text = "";
  18. errorPanel.SetActive(false);
  19. }
  20. }