private void OnElevatorIsTryingToMove() { var targetFloor = building.SelectElevatorTargetFloor(); if (targetFloor == null) { elevator.RefreshOpen(); } else { elevator.Move(targetFloor.FloorNumber); } }