Achievement / Leaderboards Cache update.

ISSUE: The achievement or leaderboard was updated, and the update event fired, but the local cache in the app was not updated.

The point is that android Achievement Update event “UpdateAchievementResult” does not contain any info about an updated achievement, except achievement id.

So, plugin will request cache update, and achievements data stored in GooglePlayManager.instance.achievements will be updated in the next frame with ACHIEVEMENTS_LOADED event fired after you get ACHIEVEMENT_UPDATED event.

The same is with Leaderboards, and Google Play SubmitScoreResult contains only scores that were submitted and not the current player leaderboard score. Plugin will request cache update for ALL_TIME scope and GLOBAL collection. If you need to request an update for another scope or collection, you may use GooglePlayManager.instance.loadPlayerCenteredScores(LEADERBOARD_ID, span, collection, 1);

GooglePlayManager.instance.leaderBoards will be updated in a few seconds with SCORE_REQUEST_RECEIVED event fired after you get SCORE_SUBMITED event.