Ejemplo n.º 1
0
        /// <summary>
        /// MSDK init,游戏开始的时候设置
        /// </summary>
        public static void Init()
        {
            if (initialized)
            {
                return;
            }
            initialized = true;

            if (isDebug)
            {
                MSDKLog.SetLevel(MSDKLog.Level.Log);
            }
            else
            {
                MSDKLog.SetLevel(MSDKLog.Level.Error);
            }

            MSDKMessageCenter.Instance.Init();

#if GCLOUD_MSDK_WINDOWS
#elif UNITY_EDITOR || UNITY_STANDALONE_WIN
#else
            MSDKCrash.InitCrash();
#endif
            MSDKLog.Log("MSDK initialed !");
        }