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