This class exit the current Unity game whenever the user clicks on the associated GUI game object. More...
Protected Member Functions | |
override void | OnClick () |
Fired when the user clicks on the GUI object. This will exit the game. 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... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
bool | IsEnabled = true |
Whether the component must be in disabled or enabled state (requires restart). More... | |
This class exit the current Unity game whenever the user clicks on the associated GUI game object.
|
inlineprotectedvirtual |
Fired when the user clicks on the GUI object. This will exit the game.
Note: this will do nothing if the game is running Unity's Game Editor.
Reimplemented from Components.EntryHover.