This class will load a game scene and reset the game data if the user clicks on the element.
More...
|
TextAsset | YarnSceneToLoad |
| The scene to load whenever the button is pressed. More...
|
|
Color | HoverColor = Color.yellow |
| The background color for when the mouse is hovering the component. More...
|
|
Color | DisabledColor = new Color(0.49f, 0.49f, 0.49f) |
| The background color for when the component is flagged as disabled. More...
|
|
|
override void | OnClick () |
| Loads a new game when the user click on the element, and reset any game state data. More...
|
|
void | Start () |
| Set-up the component by retrieve every base component of the game object and setting the cursor as visible on the GUI. Then checking if whether or not we should put the disabled color if the button is disabled. More...
|
|
void | ActivateHover () |
| Fired whenever the user starts hovering. This saves the current background color and replace it by the hover one. More...
|
|
void | DeactivateHover () |
| Fired whenever the user stops hovering. This restore the previous background color. More...
|
|
|
bool | IsEnabled = true |
| Whether the component must be in disabled or enabled state (requires restart). More...
|
|
This class will load a game scene and reset the game data if the user clicks on the element.
override void Menu.NewGameButton.OnClick |
( |
| ) |
|
|
inlineprotectedvirtual |
Loads a new game when the user click on the element, and reset any game state data.
Reimplemented from Components.EntryHover.
TextAsset Menu.NewGameButton.YarnSceneToLoad |
The scene to load whenever the button is pressed.
The documentation for this class was generated from the following file:
- Assets/Menu/NewGameButton.cs