Exemplo n.º 1
0
 public void Rematch(TurnBasedMatch match, Action <bool, TurnBasedMatch> callback)
 {
     callback = Callbacks.AsOnGameThreadCallback(callback);
     FindEqualVersionMatch(match, failed => callback(false, null), foundMatch => {
         mTurnBasedManager.Rematch(foundMatch, BridgeMatchToUserCallback(callback));
     });
 }
 public void Rematch(GooglePlayGames.BasicApi.Multiplayer.TurnBasedMatch match, Action <bool, GooglePlayGames.BasicApi.Multiplayer.TurnBasedMatch> callback)
 {
     callback = Callbacks.AsOnGameThreadCallback(callback);
     FindEqualVersionMatch(match, delegate
     {
         callback(false, null);
     }, delegate(NativeTurnBasedMatch foundMatch)
     {
         mTurnBasedManager.Rematch(foundMatch, BridgeMatchToUserCallback(delegate(UIStatus status, GooglePlayGames.BasicApi.Multiplayer.TurnBasedMatch m)
         {
             callback(status == UIStatus.Valid, m);
         }));
     });
 }