123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using FairyGUI;
- using UI.Common;
- using UnityEngine;
- namespace GFGGame
- {
- public class ModalStatusView : BaseView
- {
- private UI_ModalStatusUI _ui;
- private GameObject _gameObject0;
- private GoWrapper _wrapper0;
- protected override void OnInit()
- {
- base.OnInit();
- _ui = UI_ModalStatusUI.Create();
- viewCom = _ui.target;
- layer = ConstViewLayer.MODAL;
- isfullScreen = true;
- }
- protected override void OnShown()
- {
- base.OnShown();
- string message = "请稍后...";
- if (viewData != null)
- {
- message = (string)viewData;
- }
- _ui.m_txtMessage.text = message;
- string resPath0 = ResPathUtil.GetViewEffectPath("ui_cxlj", "ui_cxlj_gq");
- SceneController.AddObjectToView(null, null, _ui.m_holder, resPath0, out _gameObject0, out _wrapper0);
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- public override void Dispose()
- {
- SceneController.DestroyObjectFromView(_gameObject0, _wrapper0);
- if (_ui != null)
- {
- _ui.Dispose();
- _ui = null;
- }
- base.Dispose();
- }
- }
- }
|