Files
Commercialization.topon/AnyThinkPlugin/Script/IntegrationManager/Editor/ATNetInfo.cs

40 lines
1.5 KiB
C#
Raw Normal View History

2023-09-04 16:57:46 +08:00
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AnyThink.Scripts.IntegrationManager.Editor
{
public static class ATNetInfo {
2024-03-12 02:17:14 +08:00
//插件的配置文件:unity_plugin_config.json
public static string getPluginConfigUrl(String plugin_version)
2023-09-04 16:57:46 +08:00
{
2024-03-12 02:17:14 +08:00
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release/plugin/" + plugin_version + "/unity_plugin_config.json";
2023-09-04 16:57:46 +08:00
}
2024-03-12 02:17:14 +08:00
//插件版本对应的network列表文件unity_plugin_config_network.json
public static string getNetworkListUrl(String plugin_version)
2023-09-04 16:57:46 +08:00
{
2024-03-12 02:17:14 +08:00
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release/plugin/" + plugin_version + "/unity_plugin_config_network.json";
2023-09-04 16:57:46 +08:00
}
2024-03-12 02:17:14 +08:00
//插件unitypackage名字
2023-09-04 16:57:46 +08:00
public static string getPluginFileName(string pluginVersion)
{
return "AnyThinkPlugin_" + pluginVersion + ".unitypackage";
}
2024-03-12 02:17:14 +08:00
//插件unitypackage的下载链接
2023-09-04 16:57:46 +08:00
public static string getPluginDownloadUrl(string pluginVersion)
{
2024-03-12 02:17:14 +08:00
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release/plugin/" + pluginVersion + "/" + getPluginFileName(pluginVersion);
2023-09-04 16:57:46 +08:00
}
2024-06-05 15:09:03 +08:00
public static string getHotfixPluginDownloadUrl(string pluginVersion)
{
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release/plugin/" + pluginVersion + "/hotfix/hotfix_config.json";
}
2023-09-04 16:57:46 +08:00
}
}