void onButtonSel(HistoryStat stat) { Transform stats = transform.Find("stats"); stats.Find("balance").GetComponent <UILabel>().text = "总盈亏: " + stat.balance; stats.Find("game").GetComponent <UILabel>().text = "" + stat.game_num; stats.Find("zimo").GetComponent <UILabel>().text = "" + stat.zimo; stats.Find("gk").GetComponent <UILabel>().text = "" + stat.gk; stats.Find("dp").GetComponent <UILabel>().text = "" + stat.dp; }
public bool Contains(HistoryStat<decimal> stat) { return _statDict.ContainsKey(stat.Name); }
public bool Remove(HistoryStat<decimal> stat) { HistoryStat<decimal> removed; if (_statDict.TryRemove(stat.Name, out removed)) { return true; } return false; }
public void Add(HistoryStat<decimal> stat) { _statDict.TryAdd(stat.Name, stat); }
public void CopyTo(HistoryStat<decimal>[] array, int arrayIndex) { _statDict.Values.CopyTo(array, arrayIndex); }