uLua Paddle Game v2.2.0
A paddle game for Unity made as an example use of the uLua toolkit.
uLua.PaddleGame.Brick Class Reference

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...
 

Detailed Description

Wrapper class which exposes brick objects to the API.

All public members of this class are exposed to Lua. Inherits from uLua.ExposedMonoBehaviour.

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.

Property Documentation

◆ Color

Color uLua.PaddleGame.Brick.Color
getset

Access/set the Color of the brick.

This property is exposed to the API.