changed maps but lighting fked

This commit is contained in:
ntr committed 2023-09-11 13:12:08 +10:00
1 parent e308bb2e17
commit 6959ace365
54 files changed
+75746 -8208

No files matched your search

+5 -2
View File
@@ -21,6 +21,9 @@ public class LapService {
public Lap Pb;
public Lap LapRecord;
// static string apiEndpoint = "https://spacerace.systems/api";
static string apiEndpoint = "http://localhost:40080";
public string Position => _pb switch {
PbDTO pb => pb.Position.ToString(),
null => "-",
@@ -37,7 +40,7 @@ public class LapService {
}
public IEnumerator GetLapTimes() {
string uri = $"https://spacerace.systems/api/LapTimes?userId={_player.Id}&mapName={_mapName}";
string uri = $"{apiEndpoint}/LapTimes?userId={_player.Id}&mapName={_mapName}";
using (UnityWebRequest req = UnityWebRequest.Get(uri)) {
yield return req.SendWebRequest();
@@ -90,7 +93,7 @@ public class LapService {
Debug.Log($"Posting lap: {JsonConvert.SerializeObject(dto)}");
using (UnityWebRequest req = UnityWebRequest.Post("https://spacerace.systems/api/Lap", JsonConvert.SerializeObject(dto), "application/json")) {
using (UnityWebRequest req = UnityWebRequest.Post($"{apiEndpoint}/Lap", JsonConvert.SerializeObject(dto), "application/json")) {
yield return req.SendWebRequest();
if (req.result != UnityWebRequest.Result.Success) {