/// <summary> /// Updates a player’s status on the view to show that the player /// has connected or disconnected from your server. /// </summary> /// <param name="player">Player.</param> /// <param name="connected">If set to <c>true</c> connected.</param> public void SetHostedPlayerDidConnect(GKPlayer player, bool connected) { if (player != null) { C.GKMatchmakerViewController_setHostedPlayerDidConnect(SelfPtr(), player.ToPointer(), connected); } }
/// <summary> /// Cancels a pending invitation to another player. /// </summary> /// <returns><c>true</c> if this instance cancel pending invite the specified player; otherwise, <c>false</c>.</returns> /// <param name="player">Player.</param> public void CancelPendingInvite(GKPlayer player) { Util.NullArgumentTest(player); C.GKMatchmaker_cancelPendingInviteToPlayer(SelfPtr(), player.ToPointer()); }