Esempio n. 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        public static void Init()
        {
            try
            {
                if (ConfigManager.GetIsExistConfig(c_ConfigName))
                {
                    SchemeData data = LoadGameSchemeConfig();

                    s_useNewSDKManager = data.UseNewSDKManager;

                    if (s_useNewSDKManager)
                    {
                        SDKManagerNew.Init();
                    }
                    else
                    {
                        Debug.Log("SDKManager Init");

                        LoadService(data);

                        InitSDK();
                    }
                }
            }
            catch (Exception e)
            {
                Debug.LogError("SDKManager Init Exception: " + e.ToString());
            }
        }