static void SubThread(object obj) { EventCallBack.Rolling(); RenderForm.DispatchAction(); Resize(); UIPage.Refresh(UserAction.TimeSlice); UINotify.Refresh(UserAction.TimeSlice); UIAnimation.Manage.Update(); }
public static void Update() { AnimationManage.Manage.Update(); UserAction.DispatchEvent(); Keyboard.DispatchEvent(); ThreadMission.ExtcuteMain(); Resize(); UIPage.Refresh(UserAction.TimeSlice); AllTime += Time.deltaTime; //DownloadManager.UpdateMission(); }
/*** * 只能刷新当前scene的page * * */ public void RefreshPageByName(string name, System.Object obj) { Scene currentScene = SceneManager.GetActiveScene(); UIPage page = this.GetUIPageByName(currentScene.name, name); if (page == null) { UnityEngine.Debug.LogError("can't find the uipage by the name"); return; } page.Refresh(obj); }