public void AddPassenger() { Random rnd = new Random(); int stations = rnd.Next(1, 2); IMechanic NewMan = new SimpleMan(stations); int index = rnd.Next(0, 3); BusStops[index].consignment.Add(NewMan); }
public void AddPassenger() { Random rnd = new Random(); SimpleMan simpleMan = new SimpleMan(rnd.Next(1, 2)); BusEvent += simpleMan.OnBus; simpleMan.BusStop = this; consignment.Add(simpleMan); }