예제 #1
0
        public static AppleLoaderSettings GetSettings()
        {
            AppleLoaderSettings 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(AppleLoader.k_SettingsKey, out settings);
#else
            settings = AppleLoaderSettings.s_RuntimeInstance;
#endif
            return(settings);
        }
        public void Awake()
        {
#if !UNITY_EDITOR
            s_RuntimeInstance = this;
#endif
        }