void OnAmazonRequestPlayerDataReceived(AMN_RequestPlayerDataResult result) { _CurrentEventsCount++; if (_CurrentEventsCount == _DataEventsCount) { OnAllLoaded(); } }
void OnRequestPlayerDataReceived(AMN_RequestPlayerDataResult result) { if (result.isSuccess) { GC_Player player = result.Player; playerID.text = "PlayerID: " + " " + player.PlayerId; alias.text = "Alias: " + " " + player.Name; LoadAvatar (player.AvatarUrl); } else { playerID.text = "PlayerID: none"; alias.text = "Alias: none"; } }
private void OnPlayerDataLoaded(AGSRequestPlayerResponse response) { if (response.IsError()) { Player = null; AMN_RequestPlayerDataResult result = new AMN_RequestPlayerDataResult(response.error); OnRequestPlayerDataReceived(result); } else { this._player = new GC_Player(response.player); AMN_RequestPlayerDataResult result = new AMN_RequestPlayerDataResult(Player); OnRequestPlayerDataReceived(result); } }