public void IncreaseStopLightCounter() { if (mapObject != null) { if (mapObject.mapObjectProperties.mapObjectType == MapObjectType.STOPLIGHT) { StopLight stopLight = (StopLight)mapObject.mapObjectProperties; stopLight.IncreaseVehicleCounter(); } } }
public void IncreaseStopLightCounter() { if (mapObject != null) { if (mapObject.mapObjectProperties.mapObjectType == MapObjectType.STOPLIGHT) { StopLight stopLight = (StopLight)mapObject.mapObjectProperties; stopLight.IncreaseVehicleCounter(); } } }