internal void StopOn(Conveer busStop) { lock (busStop.consignment) { StopTime = 20; BusStopEvent?.Invoke(busStop); IsFull = false; busStop.waitingTime = 0; busStop.Revolt = false; } }
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--; } }