public static void AddEntryToBoard(string boardId, LeaderboardEntry entry)
string boardId |
The id of the leaderboard to find. |
---|---|
LeaderboardEntry entry |
The entry to add. |
Adds an entry to the leaderboard of the entered id. If it doesn’t exist it will add one.
private void OnEnable()
{
var entry = new LeaderboardEntryScore("John Smith", 100);
LeaderboardManager.AddEntryToBoard("MyBoard", entry);
}