Esempio n. 1
0
    private void OnLoadMatchResult(string data)
    {
        GK_TBM_Match           match  = ParceMatchInfo(data);
        GK_TBM_LoadMatchResult result = new GK_TBM_LoadMatchResult(match);

        ActionMatchInfoLoaded(result);
    }
Esempio n. 2
0
    void HandleActionMatchInfoLoaded(GK_TBM_LoadMatchResult res)
    {
        Debug.Log("GK_TBM_Controller::HandleActionMatchInfoLoaded");

        UM_TBM_MatchResult result = new UM_TBM_MatchResult(res);

        if (res.Match != null)
        {
            UM_TBM_Match match = new UM_TBM_Match(res.Match);
            UpdateMatchData(match);
            result.SetMatch(match);
        }

        MatchLoadedEvent(result);
    }
Esempio n. 3
0
    private void OnLoadMatchResultFailed(string errorData)
    {
        GK_TBM_LoadMatchResult result = new GK_TBM_LoadMatchResult(errorData);

        ActionMatchInfoLoaded(result);
    }
 void GameCenter_TBM_ActionMatchInfoLoaded(GK_TBM_LoadMatchResult res)
 {
     GameCenter_TBM.ActionMatchInfoLoaded -= GameCenter_TBM_ActionMatchInfoLoaded;
     _controller.SendMatchUpdateEvent(res, res.Match);
     Destroy(gameObject);
 }