예제 #1
0
파일: HTTPManager.cs 프로젝트: 526077247/ET
        public static void Setup()
        {
            if (IsSetupCalled)
            {
                return;
            }
            IsSetupCalled = true;
            IsQuitting    = false;

            HTTPManager.Logger.Information("HTTPManager", "Setup called! UserAgent: " + UserAgent);

            HTTPUpdateDelegator.CheckInstance();

#if !BESTHTTP_DISABLE_CACHING
            HTTPCacheService.CheckSetup();
#endif

#if !BESTHTTP_DISABLE_COOKIES
            Cookies.CookieJar.SetupFolder();
            Cookies.CookieJar.Load();
#endif
#if UNITY_IOS
            AddBackgroundAudioPlayer();
#endif

            HostManager.Load();
        }
예제 #2
0
        public static void Setup()
        {
            HTTPUpdateDelegator.CheckInstance();

#if !BESTHTTP_DISABLE_CACHING && (!UNITY_WEBGL || UNITY_EDITOR)
            HTTPCacheService.CheckSetup();
#endif

#if !BESTHTTP_DISABLE_COOKIES && (!UNITY_WEBGL || UNITY_EDITOR)
            Cookies.CookieJar.SetupFolder();
#endif
        }
예제 #3
0
        public static void Setup()
        {
            HTTPUpdateDelegator.CheckInstance();

#if !BESTHTTP_DISABLE_CACHING
            HTTPCacheService.CheckSetup();
#endif

#if !BESTHTTP_DISABLE_COOKIES
            Cookies.CookieJar.SetupFolder();
#endif
        }
예제 #4
0
 public static void Setup()
 {
     HTTPUpdateDelegator.CheckInstance();
     HTTPCacheService.CheckSetup();
     Cookies.CookieJar.SetupFolder();
 }