todo
This commit is contained in:
1 parent
28297574ea
commit
5ddbe1cacf
2 files changed
+6
-4
No files matched your search
@@ -35,7 +35,7 @@ public class LapFetchService {
|
|||||||
|
|
||||||
public IEnumerator GetPb() {
|
public IEnumerator GetPb() {
|
||||||
string uri = $"localhost:40080/Pb?userId={player.Id}&mapName={_mapName}";
|
string uri = $"localhost:40080/Pb?userId={player.Id}&mapName={_mapName}";
|
||||||
Debug.Log(uri);
|
// Debug.Log(uri);
|
||||||
using (UnityWebRequest req = UnityWebRequest.Get(uri)) {
|
using (UnityWebRequest req = UnityWebRequest.Get(uri)) {
|
||||||
yield return req.SendWebRequest();
|
yield return req.SendWebRequest();
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ public class LapFetchService {
|
|||||||
Created = DateTimeOffset.UtcNow,
|
Created = DateTimeOffset.UtcNow,
|
||||||
};
|
};
|
||||||
|
|
||||||
Debug.Log(JsonConvert.SerializeObject(dto));
|
// Debug.Log(JsonConvert.SerializeObject(dto));
|
||||||
|
|
||||||
using (UnityWebRequest req = UnityWebRequest.Post("localhost:40080/Lap", JsonConvert.SerializeObject(dto), "application/json")) {
|
using (UnityWebRequest req = UnityWebRequest.Post("localhost:40080/Lap", JsonConvert.SerializeObject(dto), "application/json")) {
|
||||||
yield return req.SendWebRequest();
|
yield return req.SendWebRequest();
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
# SpaceRace!
|
# SpaceRace!
|
||||||
|
|
||||||
- post times to server
|
- post times to server
|
||||||
- rename completions to laps with migration
|
- check time is lower when posting
|
||||||
- create userid on startup
|
- return pb and lap record
|
||||||
|
- convert laps to lapDTO?
|
||||||
|
- include sectors
|
||||||
|
|
||||||
- controls diagram
|
- controls diagram
|
||||||
- mouse / controller sens
|
- mouse / controller sens
|
||||||
|
|||||||
Reference in new issue
Block a user