Phaser API Documentation

  Version: 
getPlayerScore()

Description:

Gets the players leaderboard entry and stores it in the playerScore property.

The data is requested in an async call, so the result isn't available immediately.

When the call completes this Leaderboard will emit the getplayerscore event along with the score and the name of the Leaderboard.

If the player has not yet saved a score, the event will send null as the score value, and playerScore will be set to null as well.

Returns:
Description:

This Leaderboard instance.

Since: 3.13.0
Source: src//Leaderboard.js (Line 189)