Table of Contents

Method SubmitScore

Namespace
Titipi.MocaLib

SubmitScore(string, string, int, Action, Action<Exception>)

Submits newScore to Firestore. Only writes if newScore is higher than the player's current stored score. Reads the display name and avatar from PlayerProfileModule if it is initialized. Firestore path: leaderboards/{leaderboardName}/scores/{userId}.

public static void SubmitScore(string leaderboardName, string scoreName, int newScore, Action onSuccess = null, Action<Exception> onError = null)

Parameters

leaderboardName string
scoreName string
newScore int
onSuccess Action
onError Action<Exception>