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
| Field | Type | Description |
levelNameText | TMP_Text | Label that displays the level's name. |
starCenter | Toggle | Toggle representing the main completion star. |
star1 | Toggle | Toggle for the first optional bonus goal star. |
star2 | Toggle | Toggle for the second optional bonus goal star. |
goalsContainer | RectTransform | Parent that receives the spawned LevelGoalLayout elements. |
goalLayout | LevelGoalLayout | Prefab used to spawn one entry per goal. |
Methods
| Method | Description |
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
| Field | Type | Description |
displayText | TMP_Text | Text label showing the goal description. |
amount | TMP_Text | Text label showing the required amount to complete the goal. |
completedCheck | GameObject | Checkmark indicator activated when the goal has been met. |
Methods
| Method | Description |
CreateInstance(LevelInfo.Goal goal, LevelInfo level, Transform parent) → LevelGoalLayout | Instantiates 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
| Method | Description |
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
| Method | Description |
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
| Method | Description |
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. |