Exemple #1
0
 private void AddSpeedUpgradeLevel(int id, int count)
 {
     if (SpeedUpgradeLevels.ContainsKey(id))
     {
         SpeedUpgradeLevels[id] += count;
     }
     else
     {
         SpeedUpgradeLevels.Add(id, count);
     }
 }
Exemple #2
0
 private int GetSpeedUpgradeLevel(int id)
 => SpeedUpgradeLevels.ContainsKey(id) ? SpeedUpgradeLevels[id] : 0;