Beispiel #1
0
 private void OnGameHistorySelect(object _data)
 {
     if (selectedHistory != null)
     {
         selectedHistory.Deselect();
     }
     selectedHistory = _data as MatchHistoryGO;
 }
Beispiel #2
0
    private void OnGameHistoryReceived(object _data)
    {
        GameHistory    gameHistory    = JsonConvert.DeserializeObject <GameHistory>(_data.ToString());
        MatchHistoryGO matchHistoryGO = Instantiate(GameHistoryGO, HistoryContentPlaceholder.transform).GetComponent <MatchHistoryGO>();

        matchHistoryGO.Initialize(gameHistory);
        gameHistories.Add(matchHistoryGO);
    }