ConfirmationPrompt
Allows the player to confirm or cancel an attempted action.
Inherits from SkillTreeUI.
Properties
Name | Description | Type |
---|---|---|
instance | The active ConfirmationPrompt instance. This may be null if no ConfirmationPrompt is in the scene. | ConfirmationPrompt |
Methods
SetPrompt
Sets and opens the prompt.
Parameters
Name | Description | Type |
---|---|---|
title | The prompt title. | string |
description | The prompt description. | string |
onConfirm | The action to execute on confirm. | Action |
onCancel | The action to execute on cancel. Default: null. | Action |
confirmButtonText | The text of the confirm button. Default: "Confirm". | string |
cancelButtonText | The text of the cancel button. Default: "Cancel". | string |
Last updated