예제 #1
0
        private void OnElevatorIsTryingToMove()
        {
            var targetFloor = building.SelectElevatorTargetFloor();

            if (targetFloor == null)
            {
                elevator.RefreshOpen();
            }
            else
            {
                elevator.Move(targetFloor.FloorNumber);
            }
        }