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