Пример #1
0
 private void OnAppStart()
 {
     ICustomFramework app = Framework.Instance.App;
     if (app.UpdatesComponent != default)
     {
         mOnStarted?.Invoke();
     }
     else
     {
         app.MergeCallOnMainThread += mOnStarted;
     }
 }
Пример #2
0
        /// <summary>
        /// 启动 ShipDock 框架
        /// </summary>
        /// <param name="ticks">子线程心跳帧率</param>
        /// <param name="onStartUp">初始化后调用的回调函数</param>
        public static void StartUp(int ticks, Action onStartUp = default)
        {
            ICustomFramework app = Instance;

            Framework.Instance.InitCustomFramework(app, ticks, onStartUp);//将 ShipDock 门面对象加入框架定制
        }