public void CarExitedCarPark() { if (!emergency) { fullSign.SetLit(false); exitBarrier.Lower(); ticketValidator.ClearMessage(); currentSpaces++; } else { emergVehicleNo--; exitBarrier.Lower(); } }
public void CarEnteredCarPark() { if (!emergency) { currentSpaces--; } else { emergVehicleNo++; } if (currentSpaces == 0) { fullSign.SetLit(true); } else { fullSign.SetLit(false); } entryBarrier.Lower(); ticketMachine.ClearMessage(); }