Ejemplo n.º 1
0
        public static WeChatLoaderSettings GetSettings()
        {
            WeChatLoaderSettings settings = null;

            // When running in the Unity Editor, we have to load user's customization of configuration data directly from
            // EditorBuildSettings. At runtime, we need to grab it from the static instance field instead.
#if UNITY_EDITOR
            UnityEditor.EditorBuildSettings.TryGetConfigObject(k_SettingsKey, out settings);
            WeChatLoaderSettings.s_RuntimeInstance = settings;
#else
            settings = WeChatLoaderSettings.s_RuntimeInstance;
#endif
            return(settings);
        }