public void LoadFriends(ILocalUser user, Action <bool> callback) { if (!IsAuthenticated()) { Logger.e("LoadScores can only be called after authentication."); callback?.Invoke(false); } else { mClient.LoadFriends(callback); } }
/// <summary> /// Loads the friends that also play this game. See loadConnectedPlayers. /// </summary> /// <param name="callback">Callback.</param> public void LoadFriends(ILocalUser user, Action <bool> callback) { if (!IsAuthenticated()) { Logger.e("LoadScores can only be called after authentication."); if (callback != null) { callback(false); } } mClient.LoadFriends(callback); }