Skip to content

Commit 65089cb

Browse files
committed
include platform when posting score
1 parent 68a6672 commit 65089cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/Scripts/UI/ScorePoster.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class ScoreEntry
1616
public string Duration;
1717
public int Score;
1818
public string Timestamp;
19+
public string Platform;
1920
}
2021

2122
public class ScorePoster : MonoBehaviour
@@ -104,7 +105,8 @@ private async Task UploadScoreAsync()
104105
Name = _nameField.text,
105106
Duration = TimeSpan.FromSeconds(Time.timeSinceLevelLoad).ToString(),
106107
Score = _gameManager.GetScore(),
107-
Timestamp = DateTime.Now.ToString("o")
108+
Timestamp = DateTime.Now.ToString("o"),
109+
Platform = Application.platform.ToString()
108110
};
109111

110112
var json = JsonUtility.ToJson(score);

0 commit comments

Comments
 (0)