colours n shit
This commit is contained in:
1 parent
847b69c401
commit
4176660b75
9 files changed
+144
-38
No files matched your search
@@ -42,7 +42,7 @@ public class LapService {
|
||||
}
|
||||
|
||||
public IEnumerator GetLapTimes() {
|
||||
string uri = $"https://spacerace.systems/api/LapTimes?userId={_player.Id}&mapName={_mapName}";
|
||||
string uri = $"https://spacerace.systems/LapTimes?userId={_player.Id}&mapName={_mapName}";
|
||||
using (UnityWebRequest req = UnityWebRequest.Get(uri)) {
|
||||
yield return req.SendWebRequest();
|
||||
|
||||
@@ -95,7 +95,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("https://spacerace.systems/Lap", JsonConvert.SerializeObject(dto), "application/json")) {
|
||||
yield return req.SendWebRequest();
|
||||
|
||||
if (req.result != UnityWebRequest.Result.Success) {
|
||||
|
||||
Reference in new issue
Block a user