LevelInfoScreen

Displayed in the world map scene when the player selects a level marker. Shows the level name, star progress, and a list of goals. Opened by WorldMapManager.OpenLevelInfoScreen().

Inspector Fields

FieldTypeDescription
levelNameTextTMP_TextLabel that displays the level's name.
starCenterToggleToggle representing the main completion star.
star1ToggleToggle for the first optional bonus goal star.
star2ToggleToggle for the second optional bonus goal star.
goalsContainerRectTransformParent that receives the spawned LevelGoalLayout elements.
goalLayoutLevelGoalLayoutPrefab used to spawn one entry per goal.

Methods

MethodDescription
Open(LevelInfo level)Populates the screen with the level name, star state, and goals, then makes it visible.
PlayLevel()Loads and starts the selected level. Wire this to the Play button's OnClick event in the Inspector.

LevelGoalLayout

Prefab-based widget representing a single goal entry inside LevelInfoScreen. Use CreateInstance to spawn and configure it.

Inspector Fields

FieldTypeDescription
displayTextTMP_TextText label showing the goal description.
amountTMP_TextText label showing the required amount to complete the goal.
completedCheckGameObjectCheckmark indicator activated when the goal has been met.

Methods

MethodDescription
CreateInstance(LevelInfo.Goal goal, LevelInfo level, Transform parent)LevelGoalLayoutInstantiates a copy of this prefab inside parent, fills in the description and amount, shows the completed check if the goal is already met, and returns the new instance.

WinScreenController

Shown when the player successfully completes a level. Extends Window — inherits Open() and Close(). Wire Open to LevelManager.OnSuccessfulExit in the Inspector.

Methods

MethodDescription
ResetLevel()Resets the current level to its initial state and hides the win screen, letting the player retry immediately. Wire to a Retry button's OnClick.

GameOptionsMenu

In-game pause / options panel. Extends Window — inherits Open() and Close().

Methods

MethodDescription
GoToWorldMap()Loads the world map scene. Wire to a "Quit to Map" button's OnClick.

ItemsListWindow

A scrollable window that lists the player's current inventory items so the player can choose one. Used by interactables that let the player select an item to use or trade. Extends Window.

Methods

MethodDescription
Open(Action<Item> OnSelectItem)Opens the window and populates it with the player's inventory. When the player clicks a slot, OnSelectItem is invoked with the chosen item.
Close()Overrides the base Close to also hide the equipment tooltip before closing.