|
uLua v3.1.0
A Lua Modding Framework for Unity.
|
Brick object wrapper class. More...
Public Member Functions | |
| void | Damage (int damage) |
| Damages the brick and handles object destruction if its health is depleted. More... | |
Public Attributes | |
| int | Health = 1 |
| Current health value of the brick. | |
| int | MaxHealth = 1 |
| Maximum health value of the brick. | |
Properties | |
| Color | Color [get, set] |
| Access/set the Color of the brick. | |
Brick object wrapper class.
When this object is exposed to Lua, all public members of this class will be available to use.
|
inline |
Damages the brick and handles object destruction if its health is depleted.
Invokes the BrickDestroyed event and destroys the game object if necessary.