Class OnGameTryingToQuitAttribute
The function will be called when player try to quit the game. Return false will stop the application from quiting.
Examples
[OnGameTryingToQuit]
internal static bool ExampleFunction () { return true; }
Constructors
OnGameTryingToQuitAttribute(int)
The function will be called when player try to quit the game. Return false will stop the application from quiting.
Declaration
public OnGameTryingToQuitAttribute(int order = 0)
Parameters
Type | Name | Description |
---|---|---|
int | order | Function with smaller order will be called earlier |
Examples
[OnGameTryingToQuit]
internal static bool ExampleFunction () { return true; }