Add UpdateDatabase Button
This commit is contained in:
@@ -5,6 +5,10 @@ using UnityEngine.Networking;
|
||||
|
||||
public class UmaViewerDownload : MonoBehaviour
|
||||
{
|
||||
public static string MANIFEST_ROOT_URL = "https://prd-storage-app-umamusume.akamaized.net/dl/resources/Manifest";
|
||||
public static string GENERIC_BASE_URL = "https://prd-storage-umamusume.akamaized.net/dl/resources/Generic";
|
||||
public static string ASSET_BASE_URL = "https://prd-storage-umamusume.akamaized.net/dl/resources/Windows/assetbundles/";
|
||||
|
||||
public static IEnumerator DownloadText(string url, System.Action<string> callback)
|
||||
{
|
||||
UnityWebRequest www = UnityWebRequest.Get(url);
|
||||
@@ -21,4 +25,19 @@ public class UmaViewerDownload : MonoBehaviour
|
||||
callback(www.downloadHandler.text);
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetManifestRequestUrl(string hash)
|
||||
{
|
||||
return $"{MANIFEST_ROOT_URL}/{hash.Substring(0, 2)}/{hash}";
|
||||
}
|
||||
|
||||
public static string GetGenericRequestUrl(string hash)
|
||||
{
|
||||
return $"{GENERIC_BASE_URL}/{hash.Substring(0, 2)}/{hash}";
|
||||
}
|
||||
|
||||
public static string GetAssetRequestUrl(string hash)
|
||||
{
|
||||
return $"{ASSET_BASE_URL}/{hash.Substring(0, 2)}/{hash}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user