Skip to content

Commit 55a0401

Browse files
committed
Add support for key when submitting score
1 parent caabc9b commit 55a0401

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,10 +1787,15 @@ public static void GetScoreListOriginal(int leaderboardId, int count, int after,
17871787

17881788
public static void SubmitScore(string memberId, int score, int leaderboardId, Action<LootLockerSubmitScoreResponse> onComplete)
17891789
{
1790-
SubmitScore(memberId, score, leaderboardId, "", onComplete);
1790+
SubmitScore(memberId, score, leaderboardId.ToString(), "", onComplete);
17911791
}
17921792

1793-
public static void SubmitScore(string memberId, int score, int leaderboardId, string metadata, Action<LootLockerSubmitScoreResponse> onComplete)
1793+
public static void SubmitScore(string memberId, int score, string leaderboardKey, Action<LootLockerSubmitScoreResponse> onComplete)
1794+
{
1795+
SubmitScore(memberId, score, leaderboardKey, "", onComplete);
1796+
}
1797+
1798+
public static void SubmitScore(string memberId, int score, string leaderboardId, string metadata, Action<LootLockerSubmitScoreResponse> onComplete)
17941799
{
17951800
if (!CheckInitialized())
17961801
{
@@ -1808,7 +1813,7 @@ public static void SubmitScore(string memberId, int score, int leaderboardId, st
18081813
if (!string.IsNullOrEmpty(metadata))
18091814
request.metadata = metadata;
18101815

1811-
LootLockerAPIManager.SubmitScore(request, leaderboardId.ToString(), onComplete);
1816+
LootLockerAPIManager.SubmitScore(request, leaderboardId, onComplete);
18121817
}
18131818

18141819
public static void ComputeAndLockDropTable(int tableInstanceId, Action<LootLockerComputeAndLockDropTableResponse> onComplete, bool AddAssetDetails = false, string tag = "")

0 commit comments

Comments
 (0)