コード例 #1
0
 void ActionMatchDataUpdated(GK_TBM_MatchDataUpdateResult res)
 {
     GameCenter_TBM.ActionMatchDataUpdated -= ActionMatchDataUpdated;
     ISN_Logger.Log("ActionMatchDataUpdated: " + res.IsSucceeded);
     if (res.IsFailed)
     {
         ISN_Logger.Log(res.Error.Message);
     }
     else
     {
         GameCenter_TBM.PrintMatchInfo(res.Match);
     }
 }
コード例 #2
0
 void ActionMatchDataUpdated(GK_TBM_MatchDataUpdateResult res)
 {
     GameCenter_TBM.ActionMatchDataUpdated -= ActionMatchDataUpdated;
     Debug.Log("ActionMatchDataUpdated: " + res.IsSucceeded);
     if (res.IsFailed)
     {
         Debug.Log(res.Error.Description);
     }
     else
     {
         GameCenter_TBM.PrintMatchInfo(res.Match);
     }
 }
コード例 #3
0
    private void OnUpdateMatchResult(string data)
    {
        string[] DataArray = data.Split(SA.Common.Data.Converter.DATA_SPLITTER);

        GK_TBM_MatchDataUpdateResult result;
        string       matchId = DataArray[0];
        GK_TBM_Match m       = GetMatchById(matchId);

        if (m == null)
        {
            SA.Common.Models.Error e = new SA.Common.Models.Error(0, "Match with id: " + matchId + " not found");
            result = new GK_TBM_MatchDataUpdateResult(e);
        }
        else
        {
            m.SetData(DataArray[1]);
            result = new GK_TBM_MatchDataUpdateResult(m);
        }

        ActionMatchDataUpdated(result);
    }
コード例 #4
0
	private void OnUpdateMatchResult(string data) {
		string[] DataArray = data.Split(IOSNative.DATA_SPLITTER[0]);

		GK_TBM_MatchDataUpdateResult result;
		string matchId = DataArray[0];
		GK_TBM_Match m = GetMatchById(matchId);

		if(m == null) {
			result =  new GK_TBM_MatchDataUpdateResult();
			ISN_Error e =  new ISN_Error();
			e.code = 0;
			e.description = "Match with id: " + matchId + " not found";
			result.SetError(e);
			Debug.LogWarning(e.description);
		} else {
			m.SetData(DataArray[1]);
			result =  new GK_TBM_MatchDataUpdateResult(m);
		}

		ActionMatchDataUpdated(result);
	}
コード例 #5
0
    private void OnUpdateMatchResultFailed(string errorData)
    {
        GK_TBM_MatchDataUpdateResult result = new GK_TBM_MatchDataUpdateResult(errorData);

        ActionMatchDataUpdated(result);
    }
コード例 #6
0
	void ActionMatchDataUpdated (GK_TBM_MatchDataUpdateResult res) {
		GameCenter_TBM.ActionMatchDataUpdated -= ActionMatchDataUpdated;
		Debug.Log("ActionMatchDataUpdated: " + res.IsSucceeded);
		if(res.IsFailed) {
			Debug.Log(res.Error.Description);
		} else {
			GameCenter_TBM.PrintMatchInfo(res.Match);
		}
	}