Skip to content

Commit 9060cca

Browse files
committed
Update GameManager.cs
1 parent deddb13 commit 9060cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Scripts/GameManager/GameManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private async UniTask<bool> SavePlayerStatistic()
113113
public async UniTask<bool> SaveAchievements()
114114
{
115115
List<AchievementData> achievements = DataManager.Instance.GetAchievements();
116-
string basePath = overworldBackendPath + playersPath + userId + "/achievements/";
116+
string basePath = overworldBackendPath + playersPath + userId + coursesPath + courseId + "/achievements/";
117117

118118
bool savingSuccessful = true;
119119
foreach (AchievementData achievementData in achievements)
@@ -289,7 +289,7 @@ await RestRequest.GetArrayRequest<PlayerTaskStatisticDTO>(path +
289289
string playerPath = overworldBackendPath + playersPath + userId;
290290

291291
Optional<AchievementStatistic[]> achievementStatistics =
292-
await RestRequest.GetArrayRequest<AchievementStatistic>(playerPath + "/achievements");
292+
await RestRequest.GetArrayRequest<AchievementStatistic>(playerPath + coursesPath + courseId + "/achievements");
293293
if(!achievementStatistics.IsPresent())
294294
{
295295
loadingError = true;

0 commit comments

Comments
 (0)