public WashingService ChoiceService(Car car, WashingStation washingStation) { int variable = Car.random.Next(0, 2); WashingService washing = washingStation.ListServices[variable]; return(washing); }
public void PayEvent(Car car, WashingService washingService, WashingStation washingStation) { if (car.WashingCard.Balance > washingService.Cost) { car.WashingCard.Balance -= washingService.Cost; car.State = EnumState.Clean; washingStation.Events(car); } else { washingStation.Events(car); } }