Ejemplo n.º 1
0
        public void Start()
        {
            _uiController.SwitchTo(UIWindowType.LoginMode);

            var productIdList = _configHolder.GetIapProductIdList();

            _ios.GetProductInfo(productIdList);

            if (Test)
            {
                return;
            }

            // 初始化事件统计。
            _analyticManager.Init();
            _weChatManager.Init();
            _anySdkManager.Init();

#if UNITY_ANDROID // 小米模式下初始化小米。
            if (_configHolder.XiaoMiMode)
            {
                _xiaoMiManager.Init();
            }
#endif
            _network.InitLogin();

            ClearAppStateData();
            // version >= 6.4.0 不再显示SplashScreen了。

            // 因为AppController控制应用程序的状态。
            // 所以也应该由AppController在进入游戏的时候切换到LoginPanel。
            AppStateRefreshTime = -1;
        }