private void OnGameHistorySelect(object _data) { if (selectedHistory != null) { selectedHistory.Deselect(); } selectedHistory = _data as MatchHistoryGO; }
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); }