Make sending data to the server easier & send new stats to the server (and load, not fully yet tho)

This commit is contained in:
2025-06-15 14:14:40 -07:00
parent 533bd53073
commit 12d95097a2
11 changed files with 80 additions and 52 deletions

View File

@@ -69,7 +69,7 @@ public class LoadingMenu : MonoBehaviour
if (Application.platform != RuntimePlatform.WebGLPlayer)
{
using UnityWebRequest request = UnityWebRequest.Get(SensitiveInfo.SERVER_DATABASE_PREFIX + "canLoadClient.php");
request.SetRequestHeader("User-Agent", "BerryDashClient");
request.SetRequestHeader("Requester", "BerryDashClient");
request.SetRequestHeader("ClientVersion", Application.version);
request.SetRequestHeader("ClientPlatform", Application.platform.ToString());
await request.SendWebRequest();