Called when entering the selection state. Initializes the level selector UI.
Called when exiting the selection state. Disposes the selector and loads the chosen level.
Returns the name of the state.
Callback when data is transmitted (not used in this state).
Callback when a level is selected by the user.
The selected level file.
Renders the level selection scene.
Updates the state. Transitions to LoadingState if a level is selected or data transmitted.
SelectionState manages the level selection screen before starting the game.