uLua Paddle Game v2.2.0
A paddle game for Unity made as an example use of the uLua toolkit.
|
Wrapper class which exposes brick objects to the API. 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. | |
Protected Member Functions | |
override void | Awake () |
Initialises the SpriteRenderer component reference on awake. | |
Properties | |
Color | Color [get, set] |
Access/set the Color of the brick. More... | |
Wrapper class which exposes brick objects to the API.
All public members of this class are exposed to Lua. Inherits from uLua.ExposedMonoBehaviour
.
|
inline |
Damages the brick and handles object destruction if its health is depleted.
Invokes the BrickDestroyed
event and destroys the game object if necessary.
|
getset |
Access/set the Color of the brick.
This property is exposed to the API.