private void OnMatchInvitationAccepted(string data) { GK_TBM_Match match = ParceMatchInfo(data); UpdateMatchInfo(match); GK_TBM_MatchInitResult result = new GK_TBM_MatchInitResult(match); ActionMatchInvitationAccepted(result); }
private void OnMatchFoundResult(string data) { GK_TBM_Match match = ParceMatchInfo(data); UpdateMatchInfo(match); GK_TBM_MatchInitResult result = new GK_TBM_MatchInitResult(match); ActionMatchFound(result); }
void ActionMatchFound(GK_TBM_MatchInitResult result) { GameCenter_TBM.ActionMatchFound -= ActionMatchFound; ISN_Logger.Log("ActionMatchFound IsSucceeded: " + result.IsSucceeded); if (result.IsFailed) { ISN_Logger.Log(result.Error.Message); } else { GameCenter_TBM.PrintMatchInfo(result.Match); } }
void ActionMatchFound(GK_TBM_MatchInitResult result) { GameCenter_TBM.ActionMatchFound -= ActionMatchFound; Debug.Log("ActionMatchFound IsSucceeded: " + result.IsSucceeded); if (result.IsFailed) { Debug.Log(result.Error.Description); } else { GameCenter_TBM.PrintMatchInfo(result.Match); } }
void HandleActionMatchInvitationAccepted(GK_TBM_MatchInitResult res) { UM_TBM_MatchResult result = new UM_TBM_MatchResult(res); if (res.IsSucceeded) { RemoveInvitationsFromTheList(res.Match.Id); UM_TBM_Match match = new UM_TBM_Match(res.Match); result.SetMatch(match); UpdateMatchData(match); } InvitationAccepted(result); }
//-------------------------------------- // Action Handlers //-------------------------------------- void HandleActionMatchFound(GK_TBM_MatchInitResult res) { UM_TBM_MatchResult result = new UM_TBM_MatchResult(res); if (res.Match != null) { UM_TBM_Match match = new UM_TBM_Match(res.Match); result.SetMatch(match); UpdateMatchData(match); } MatchFoundEvent(result); }
private void OnMatchInvitationAcceptedFailed(string errorData) { GK_TBM_MatchInitResult result = new GK_TBM_MatchInitResult(errorData); ActionMatchInvitationAccepted(result); }
private void OnMatchFoundResultFailed(string errorData) { GK_TBM_MatchInitResult result = new GK_TBM_MatchInitResult(errorData); ActionMatchFound(result); }
void ActionMatchFound (GK_TBM_MatchInitResult result) { GameCenter_TBM.ActionMatchFound -= ActionMatchFound; Debug.Log("ActionMatchFound IsSucceeded: " + result.IsSucceeded); if(result.IsFailed) { Debug.Log(result.Error.Description); } else { GameCenter_TBM.PrintMatchInfo(result.Match); } }