public void decreaseInstrument(VuforiaObjectTest.InstrumentType type) { if (instrumentCounts.ContainsKey(type)) { instrumentCounts[type]--; } }
public void increaseInstrument(VuforiaObjectTest.InstrumentType type) { if (instrumentCounts.ContainsKey(type)) { instrumentCounts[type]++; } else { // this is the first time an instrument of this type is encountered instrumentCounts[type] = 1; } }