SDK_UnityMoney/Assets/ThinkupTpnPlugin/Script/IntegrationManager/Editor/ATNetInfo.cs

40 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AnyThink.Scripts.IntegrationManager.Editor
{
public static class ATNetInfo {
//插件的配置文件:unity_plugin_config.json
public static string getPluginConfigUrl(String plugin_version)
{
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release_Thinkup_TPN/plugin/" + plugin_version + "/unity_plugin_config.json";
}
//插件版本对应的network列表文件unity_plugin_config_network.json
public static string getNetworkListUrl(String plugin_version)
{
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release_Thinkup_TPN/plugin/" + plugin_version + "/unity_plugin_config_network.json";
}
//插件unitypackage名字
public static string getPluginFileName(string pluginVersion)
{
return "ThinkupTpnPlugin_" + pluginVersion + ".unitypackage";
}
//插件unitypackage的下载链接
public static string getPluginDownloadUrl(string pluginVersion)
{
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release_Thinkup_TPN/plugin/" + pluginVersion + "/" + getPluginFileName(pluginVersion);
}
public static string getHotfixPluginDownloadUrl(string pluginVersion)
{
return "https://topon-sdk-release.oss-cn-hangzhou.aliyuncs.com/Unity_Release_Thinkup_TPN/plugin/" + pluginVersion + "/hotfix/hotfix_config.json";
}
}
}