public void ProcessDiceResult(DieResultEventArg args) { DiceStatsEntry entry = DiceStats.Find(n => n.DiceKind == args.DiceKind && n.DieSide == args.DieSide); entry.Count++; //entry.Text.text = entry.Count.ToString(); UpdateStats(args.DiceKind); }
private void ProcessDiceResult(object sender, EventArgs e) { if (this == null) { return; } DieResultEventArg args = e as DieResultEventArg; PlayerStats[args.PlayerNo].ProcessDiceResult(args); }