Exemplo n.º 1
0
 static void SubThread(object obj)
 {
     EventCallBack.Rolling();
     RenderForm.DispatchAction();
     Resize();
     UIPage.Refresh(UserAction.TimeSlice);
     UINotify.Refresh(UserAction.TimeSlice);
     UIAnimation.Manage.Update();
 }
Exemplo n.º 2
0
        static void CreateUI()
        {
            UIPage.Initial(UIRoot);
            UIMenu.Initial(UIRoot);
            UINotify.Initial(UIRoot);

            var buff = new GameObject("Buffer");

            buff.transform.SetParent(UIRoot);
            buff.SetActive(false);
            buff.transform.localScale = Vector3.one;
            HGUIManager.Initial(buff.transform);
        }
Exemplo n.º 3
0
        static void CreateUI()
        {
            UIPage.Initial(UIRoot);
            UIMenu.Initial(UIRoot);
            UINotify.Initial(UIRoot);

            var buff = new UIElement();

            buff.name = "Buffer";
            buff.SetParent(UIRoot);
            buff.activeSelf = false;
            buff.localScale = Vector3.one;
            HGUIManager.Initial();
        }
Exemplo n.º 4
0
 /// <summary>
 /// 更新内容包含:UI动画,UI页面更新,UI通知页更新,用户事件采集,键盘信息采集,事件派发,屏幕尺寸监测,执行分线程的委托任务
 /// </summary>
 protected virtual void Update()
 {
     if (Pause)
     {
         return;
     }
     MainCanvas = this;
     AnimationManage.Manage.Update();
     if (UIPage.CurrentPage != null)
     {
         UIPage.CurrentPage.Update(UserAction.TimeSlice);
     }
     UINotify.UpdateAll(UserAction.TimeSlice);
     UserAction.Update();
     Keyboard.InfoCollection();
     DispatchUserAction();
     CheckSize();
     ThreadMission.ExtcuteMain();
 }
Exemplo n.º 5
0
 public UINotify()
 {
     pops     = new List <PopWindow>();
     Instance = this;
 }