Beispiel #1
0
    private void OnMatchInvitationAccepted(string data)
    {
        GK_TBM_Match match = ParceMatchInfo(data);

        UpdateMatchInfo(match);
        GK_TBM_MatchInitResult result = new GK_TBM_MatchInitResult(match);

        ActionMatchInvitationAccepted(result);
    }
Beispiel #2
0
    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);
        }
    }
Beispiel #5
0
    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);
    }
Beispiel #6
0
    //--------------------------------------
    // 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);
    }
Beispiel #7
0
    private void OnMatchInvitationAcceptedFailed(string errorData)
    {
        GK_TBM_MatchInitResult result = new GK_TBM_MatchInitResult(errorData);

        ActionMatchInvitationAccepted(result);
    }
Beispiel #8
0
    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);
		}
	}