uLua v3.1.0
A Lua Modding Framework for Unity.
uLua.PaddleGame.Brick Class Reference

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.
 

Detailed Description

Brick object wrapper class.

When this object is exposed to Lua, all public members of this class will be available to use.

Member Function Documentation

◆ Damage()

void uLua.PaddleGame.Brick.Damage ( int  damage)
inline

Damages the brick and handles object destruction if its health is depleted.

Invokes the BrickDestroyed event and destroys the game object if necessary.