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