Files
plugin-library/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs

31 lines
917 B
C#
Raw Normal View History

2025-03-31 14:57:48 +08:00
/****************************************************
RemoteServicesWithAuth.cs
xosmo_
2025/3/31 14:39:5
*****************************************************/
using YooAsset;
namespace Stary.Evo
{
public class RemoteServices : IRemoteServices
{
private readonly string _defaultHostServer;
private readonly string _fallbackHostServer;
public RemoteServices(string defaultHostServer, string fallbackHostServer)
{
_defaultHostServer = defaultHostServer;
_fallbackHostServer = fallbackHostServer;
}
string IRemoteServices.GetRemoteMainURL(string fileName)
{
return $"{_defaultHostServer}/{fileName}";
}
string IRemoteServices.GetRemoteFallbackURL(string fileName)
{
return $"{_fallbackHostServer}/{fileName}";
}
}
}