private void OnMatchStarted(string matchData)
    {
        GK_RTM_Match match = ParseMatchData(matchData);

        GK_RTM_MatchStartedResult result = new GK_RTM_MatchStartedResult(match);

        ActionMatchStarted(result);
    }
	void HandleActionMatchStarted (GK_RTM_MatchStartedResult result) {
		if(result.IsSucceeded) {
			Debug.Log("Match is successfully created");
			if(result.Match.ExpectedPlayerCount == 0) {
				//we should start the match
			}
		} else {
			Debug.Log("Match is creation failed with error: " + result.Error.Description);
		}
	}
 void HandleActionMatchStarted(GK_RTM_MatchStartedResult result)
 {
     if (result.IsSucceeded)
     {
         CheckMatchState(result.Match);
     }
     else
     {
         IOSNativePopUpManager.showMessage("Match Start Error", result.Error.Message);
     }
 }
Example #4
0
    private void HandleActionRoomCreated(GK_RTM_MatchStartedResult result)
    {
        if (result.IsSucceeded)
        {
            _CurrentRoom = new UM_RTM_Room(result.Match);
        }

        UM_RTM_RoomCreatedResult res = new UM_RTM_RoomCreatedResult(result);

        RoomCreated(res);
    }
 void HandleActionMatchStarted(GK_RTM_MatchStartedResult result)
 {
     IOSNativePopUpManager.dismissCurrentAlert();
     if (result.IsSucceeded)
     {
         IOSNativePopUpManager.showMessage("Match Started", "let's play now\n  Others players count: " + result.Match.Players.Count);
     }
     else
     {
         IOSNativePopUpManager.showMessage("Match Started Error", result.Error.Description);
     }
 }
 void HandleActionMatchStarted(GK_RTM_MatchStartedResult result)
 {
     if (result.IsSucceeded)
     {
         ISN_Logger.Log("Match is successfully created");
         if (result.Match.ExpectedPlayerCount == 0)
         {
             //we should start the match
         }
     }
     else
     {
         ISN_Logger.Log("Match is creation failed with error: " + result.Error.Message);
     }
 }
	void HandleActionMatchStarted (GK_RTM_MatchStartedResult result) {
		IOSNativePopUpManager.dismissCurrentAlert();
		if(result.IsSucceeded) {
			IOSNativePopUpManager.showMessage ("Match Started", "let's play now\n  Others players count: " + result.Match.Players.Count);
		} else {
			IOSNativePopUpManager.showMessage ("Match Started Error", result.Error.Description);
		}
	}
    //--------------------------------------
    //  EVENTS
    //--------------------------------------


    private void OnMatchStartFailed(string errorData)
    {
        GK_RTM_MatchStartedResult result = new GK_RTM_MatchStartedResult(errorData);

        ActionMatchStarted(result);
    }
	void HandleActionMatchStarted (GK_RTM_MatchStartedResult result) {
		if(result.IsSucceeded) {
			CheckMatchState(result.Match);

		} else {
			IOSNativePopUpManager.showMessage ("Match Start Error", result.Error.Description);
		}
	}
 public UM_RTM_RoomCreatedResult(GK_RTM_MatchStartedResult result)
 {
     _IsSuccess = result.IsSucceeded;
 }