예제 #1
0
 /// <summary>
 /// 销毁,请不要使用
 /// </summary>
 public void Destroy()
 {
     // 逻辑反初始化
     OnUninitialize();
     // 关闭窗口 开始淡出动画
     UGUIRoot.GetInstance().CloseForm(Form);
     //
     Mediator = null;
 }
예제 #2
0
 /// <summary>
 /// 创建,请不要使用
 /// </summary>
 /// <param name="mediator">所在的Mediator</param>
 /// <param name="customID">自定义ID</param>
 /// <param name="parameter">初始化参数</param>
 public void Create(UIMediator mediator, int customID, object parameter)
 {
     Mediator  = mediator;
     _customID = customID;
     //打开窗口 加入
     UGUIRoot.GetInstance().OpenForm(Form);
     // 逻辑初始化
     OnInitialize(parameter);
 }
예제 #3
0
 /// <summary>
 /// 统一驱动
 /// </summary>
 public static void Update()
 {
     //驱动输入
     ArcadeInputService.GetInstance().LogicUpdate();
     //驱动网络
     NetworkService.GetInstance().LogicUpdate();
     //Lua
     if (LuaService.IsValidate())
     {
         LuaService.GetInstance().LogicUpdate();
     }
     //UI
     UGUIRoot.GetInstance().CustomUpdate();
 }
예제 #4
0
 /// <summary>
 /// 初始化框架层
 /// </summary>
 /// <param name="initialize">初始化/反初始化</param>
 public static void InitFramework(bool initialize)
 {
     if (initialize)
     {
         NativeService.GetInstance();
         IFSService.GetInstance();
         AssetService.GetInstance();
         ScheduleService.GetInstance();
         EventService.GetInstance();
         StateService.GetInstance();
         HttpService.GetInstance();
         UGUIRoot.GetInstance();
         UIStateService.GetInstance();
         SceneService.GetInstance();
         UICommonService.GetInstance();
         AudioService.GetInstance();
         QualityService.GetInstance();
         NetworkService.GetInstance();
         NetAssetService.GetInstance();
     }
     else
     {
         IFSService.DestroyInstance();
         EventService.DestroyInstance();
         StateService.DestroyInstance();
         HttpService.DestroyInstance();
         UIStateService.DestroyInstance();
         SceneService.DestroyInstance();
         UICommonService.DestroyInstance();
         UGUIRoot.DestroyInstance();
         AudioService.DestroyInstance();
         NetworkService.DestroyInstance();
         NativeService.DestroyInstance();
         NetAssetService.DestroyInstance();
         QualityService.DestroyInstance();
         //最后
         ScheduleService.DestroyInstance();
         AssetService.GetInstance().Destroy();
         AssetService.DestroyInstance();
     }
 }
예제 #5
0
 public static UGUIRoot GetUGUIRoot()
 {
     return(UGUIRoot.GetInstance());
 }
예제 #6
0
 /// <summary>
 /// 驱动
 /// </summary>
 public static void LateUpdate()
 {
     UGUIRoot.GetInstance().CustomLateUpdate();
 }