public int GetKillCount(ClassStatsObject unitType) { if (killedUnits.ContainsKey(unitType.unitClassName)) { return(killedUnits[unitType.unitClassName]); } else { return(0); } }
public void AddKillCount(ClassStatsObject unitType) { if (!killedUnits.ContainsKey(unitType.unitClassName)) { killedUnits.Add(unitType.unitClassName, 1); } else { killedUnits[unitType.unitClassName] += 1; } }