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

Wrapper class which exposes paddle objects to the API. More...

Public Member Functions

void Reset ()
 Resets the position of the paddle to its starting position. More...
 

Protected Member Functions

override void Awake ()
 Initialises the PaddleController component reference on awake.
 

Properties

Vector2 ContactPoint [get]
 Returns the last known contact point of the ball relative to the center of the paddle object. More...
 
float Scale [get, set]
 Access/set the scale of the paddle. More...
 
float Speed [get, set]
 Access/set the speed of the paddle. More...
 
Vector2 StartingPosition [get, set]
 Access/set the starting position of the paddle. More...
 

Detailed Description

Wrapper class which exposes paddle objects to the API.

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

Member Function Documentation

◆ Reset()

void uLua.PaddleGame.Paddle.Reset ( )
inline

Resets the position of the paddle to its starting position.

This method is exposed to the API.

Property Documentation

◆ ContactPoint

Vector2 uLua.PaddleGame.Paddle.ContactPoint
get

Returns the last known contact point of the ball relative to the center of the paddle object.

This property is exposed to the API.

◆ Scale

float uLua.PaddleGame.Paddle.Scale
getset

Access/set the scale of the paddle.

This property is exposed to the API.

◆ Speed

float uLua.PaddleGame.Paddle.Speed
getset

Access/set the speed of the paddle.

This property is exposed to the API.

◆ StartingPosition

Vector2 uLua.PaddleGame.Paddle.StartingPosition
getset

Access/set the starting position of the paddle.

This property is exposed to the API.