Exemplo n.º 1
0
    static public void CheckForUpdate()
    {
        if (VersionCheckRunning)
        {
            return;
        }

        VersionCheckRunning = true;
        wwwVersionCheck     = new WWW(versionURL);
        UAP_UpdateWindow.StartVersionCheck();
        if (!automaticCheck)
        {
            UAP_UpdateWindow.Init();
        }
        EditorApplication.update += UpdateCheckVersion;
    }
Exemplo n.º 2
0
    static public void CheckForUpdate()
    {
        if (VersionCheckRunning)
        {
            return;
        }
        VersionCheckRunning = true;

#if UNITY_2018_3_OR_NEWER
        wwwVersionCheck = new UnityWebRequest(versionURL);
        wwwVersionCheck.downloadHandler = new DownloadHandlerBuffer();
        wwwVersionCheck.SendWebRequest();
#else
        wwwVersionCheck = new WWW(versionURL);
#endif

        UAP_UpdateWindow.StartVersionCheck();
        if (!automaticCheck)
        {
            UAP_UpdateWindow.Init();
        }
        EditorApplication.update += UpdateCheckVersion;
    }