|
uLua v3.1.0
A Lua Modding Framework for Unity.
|
Class which keeps track of various game settings. More...
Public Member Functions | |
| void | AddScore (int Number) |
| Increments player score. More... | |
| void | AddLevel (int Number=1) |
| Increments the game level. More... | |
| void | AddLife (int Number=1) |
| Increments player lives. More... | |
| void | Reset () |
| Resets the settings and updates the high score. More... | |
Properties | |
| float | TotalSpeedIncrement [get] |
| The total speed increment based on the current level. More... | |
Class which keeps track of various game settings.
All public members of this class are exposed to Lua. Inherits from uLua.ExposedClass.
|
inline |
Increments the game level.
This method is exposed to the API. Invokes a UIUpdate event.
| Number | (Optional) The number of levels to add. Defaults to 1. |
|
inline |
Increments player lives.
This method is exposed to the API. Invokes a UIUpdate event.
| Number | (Optional) The number of lives to add. Defaults to 1. |
|
inline |
Increments player score.
This method is exposed to the API. Invokes a UIUpdate event.
| Number | The number to be added to the score. |
|
inline |
Resets the settings and updates the high score.
This method is exposed to the API. Invokes a UIUpdate event.
|
get |
The total speed increment based on the current level.
This property is exposed to the API.