ModalStatusView.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using FairyGUI;
  2. using UI.Common;
  3. using UnityEngine;
  4. namespace GFGGame
  5. {
  6. public class ModalStatusView : BaseView
  7. {
  8. private UI_ModalStatusUI _ui;
  9. private GameObject _gameObject0;
  10. protected override void OnInit()
  11. {
  12. base.OnInit();
  13. _ui = UI_ModalStatusUI.Create();
  14. viewCom = _ui.target;
  15. layer = ConstViewLayer.MODAL;
  16. isfullScreen = true;
  17. }
  18. protected override void OnShown()
  19. {
  20. base.OnShown();
  21. string message = "请稍后...";
  22. if (viewData != null)
  23. {
  24. message = (string)viewData;
  25. }
  26. _ui.m_txtMessage.text = message;
  27. string resPath0 = ResPathUtil.GetViewEffectPath("ui_cxlj", "ui_cxlj_gq");
  28. SceneController.AddObjectToView(null, null, _ui.m_holder, resPath0, out _gameObject0, out GoWrapper _wrapper0);
  29. }
  30. protected override void OnHide()
  31. {
  32. base.OnHide();
  33. }
  34. }
  35. }