public void ProcessRolledDice(DieRollEventArg args) { DiceStatsEntry entry = DiceStats.Find(n => n.DiceKind == args.DiceKind && n.DieSide == DieSide.Unknown); entry.Count++; entry.Text.text = entry.Count.ToString(); TotalDice++; TotalDiceText.text = DiceStats.Where(n => n.DieSide == DieSide.Unknown).Sum(n => n.Count).ToString(); }
private void ProcessRolledDice(object sender, EventArgs e) { if (this == null) { return; } DieRollEventArg args = e as DieRollEventArg; PlayerStats[args.PlayerNo].ProcessRolledDice(args); }