示例#1
0
 internal void StopOn(Conveer busStop)
 {
     lock (busStop.consignment)
     {
         StopTime = 20;
         BusStopEvent?.Invoke(busStop);
         IsFull = false;
         busStop.waitingTime = 0;
         busStop.Revolt      = false;
     }
 }
示例#2
0
 public void FromBus(Conveer busStop)
 {
     if (AmoutOfStations == 0)
     {
         if (Bus.Passengers != null)
         {
             Bus.Passengers.Remove(this);
         }
         Bus.BusStopEvent -= this.FromBus;
         Bus.FullEvent    -= CheckOnFull;
         Bus     = null;
         BusStop = busStop;
     }
     else
     {
         AmoutOfStations--;
     }
 }