コード例 #1
0
ファイル: App.cs プロジェクト: huqiang0204/UnityPCMultiWindow
 static void SubThread(object obj)
 {
     EventCallBack.Rolling();
     RenderForm.DispatchAction();
     Resize();
     UIPage.Refresh(UserAction.TimeSlice);
     UINotify.Refresh(UserAction.TimeSlice);
     UIAnimation.Manage.Update();
 }
コード例 #2
0
ファイル: App.cs プロジェクト: huqiang0204/huqiang.Unity
 public static void Update()
 {
     AnimationManage.Manage.Update();
     UserAction.DispatchEvent();
     Keyboard.DispatchEvent();
     ThreadMission.ExtcuteMain();
     Resize();
     UIPage.Refresh(UserAction.TimeSlice);
     AllTime += Time.deltaTime;
     //DownloadManager.UpdateMission();
 }
コード例 #3
0
    /***
     * 只能刷新当前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);
    }