public void DisplayObstacleMessage(int currentFloor, int destinationFloor, PoseEstimation.NewPosReason obstacle) { _UIMenuSwitchingManager.OpenConfirmScreen(); var floorDifference = (destinationFloor - currentFloor); string relativeMovement = ""; if (floorDifference > 0) { relativeMovement = "up"; } else { relativeMovement = "down"; } if (obstacle == PoseEstimation.NewPosReason.EnteredStairs) { ShowStairsText(Mathf.Abs(floorDifference).ToString(), relativeMovement, destinationFloor.ToString()); } else { ShowElevatorText(Mathf.Abs(floorDifference).ToString(), relativeMovement, destinationFloor.ToString()); } }
/** * Called when the users enters either an "Elevator" or "Stairs" area. * The user must walk up or down the obstacle before resuming navigation! */ public void SendObstacleMessage(int currentFloor, int destinationFloor, PoseEstimation.NewPosReason obstacle) { _UserMessageUI.DisplayObstacleMessage(currentFloor, destinationFloor, obstacle); }