/// <summary> /// Pushes a Players score to the Leaderboard, this is dependent on the developer to take care of what /// "score" really means in their application. /// </summary> static public IEnumerator UpdatePlayerScore(string playerId, UInt32 score) { Leaderboard.UpdatePlayerScoreRequest lbScore = new Leaderboard.UpdatePlayerScoreRequest(); lbScore.player_id = (playerId); lbScore.player_score = (score); //UnityEngine.Debug.Log ("update player score"); yield return(GetSingletonInstance().StartCoroutine( CoroutinePostRequest(lbScore, Response.ParsePlayerScoreResponse, UPDATE_PLAYER_SCORE_URL, false))); }
/// <summary> /// Pushes a Players score to the Leaderboard, this is dependent on the developer to take care of what /// "score" really means in their application. /// </summary> public static IEnumerator UpdatePlayerScore(string playerId, UInt32 score) { Leaderboard.UpdatePlayerScoreRequest lbScore = new Leaderboard.UpdatePlayerScoreRequest(); lbScore.player_id = (playerId); lbScore.player_score = (score); //UnityEngine.Debug.Log ("update player score"); yield return GetSingletonInstance().StartCoroutine( CoroutinePostRequest(lbScore, Response.ParsePlayerScoreResponse, UPDATE_PLAYER_SCORE_URL, false)); }