You've already forked Commercialization.topon
release: 1.4.2
This commit is contained in:
@@ -26,12 +26,23 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
|
||||
public void loadHotFixData()
|
||||
{
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
ATLog.log("loadHotFixData() >>> AnyThinkSDKEditor disabled, skip hotfix check.");
|
||||
return;
|
||||
}
|
||||
|
||||
var downloadUrl = ATNetInfo.getHotfixPluginDownloadUrl(ATConfig.PLUGIN_VERSION);
|
||||
ATLog.log("loadHotFixData() >>> downloadUrl: " + downloadUrl);
|
||||
ATEditorCoroutine.startCoroutine(loadHotFixDataWithIEnumerator(downloadUrl));
|
||||
}
|
||||
|
||||
private IEnumerator loadHotFixDataWithIEnumerator(string url) {
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
||||
var hotFixDataRequest = UnityWebRequest.Get(url);
|
||||
var webRequest = hotFixDataRequest.SendWebRequest();
|
||||
while (!webRequest.isDone)
|
||||
@@ -86,6 +97,11 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
}
|
||||
|
||||
private IEnumerator loadHotFixPlugin(HotfixPluginData hotFixDataObj) {
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
||||
var path = Path.Combine(Application.temporaryCachePath, hotFixDataObj.file_name);
|
||||
ATLog.log("downloadPluginWithEnumerator() >>> path: " + path);
|
||||
#if UNITY_2017_2_OR_NEWER
|
||||
@@ -161,4 +177,4 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
return JsonUtility.FromJson<HotfixPluginData>(json);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user