static void SubThread(object obj) { EventCallBack.Rolling(); RenderForm.DispatchAction(); Resize(); UIPage.Refresh(UserAction.TimeSlice); UINotify.Refresh(UserAction.TimeSlice); UIAnimation.Manage.Update(); }
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); }
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(); }
/// <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(); }
public UINotify() { pops = new List <PopWindow>(); Instance = this; }