コード例 #1
0
 public void LeaveDuringTurn(TurnBasedMatch match, string pendingParticipantId,
                             Action <bool> callback)
 {
     callback = Callbacks.AsOnGameThreadCallback(callback);
     FindEqualVersionMatchWithParticipant(match, pendingParticipantId, callback,
                                          (pendingParticipant, foundMatch) => {
         mTurnBasedManager.LeaveDuringMyTurn(foundMatch, pendingParticipant,
                                             status => callback(status > 0));
     });
 }
 public void LeaveDuringTurn(GooglePlayGames.BasicApi.Multiplayer.TurnBasedMatch match, string pendingParticipantId, Action <bool> callback)
 {
     callback = Callbacks.AsOnGameThreadCallback(callback);
     FindEqualVersionMatchWithParticipant(match, pendingParticipantId, callback, delegate(GooglePlayGames.Native.PInvoke.MultiplayerParticipant pendingParticipant, NativeTurnBasedMatch foundMatch)
     {
         mTurnBasedManager.LeaveDuringMyTurn(foundMatch, pendingParticipant, delegate(CommonErrorStatus.MultiplayerStatus status)
         {
             callback(status > (CommonErrorStatus.MultiplayerStatus) 0);
         });
     });
 }