uLua Paddle Game v2.2.0
A paddle game for Unity made as an example use of the uLua toolkit.
|
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... | |
Wrapper class which exposes paddle objects to the API.
All public members of this class are exposed to Lua. Inherits from uLua.ExposedMonoBehaviour
.
|
inline |
Resets the position of the paddle to its starting position.
This method is exposed to the API.
|
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.
|
getset |
Access/set the scale of the paddle.
This property is exposed to the API.
|
getset |
Access/set the speed of the paddle.
This property is exposed to the API.
|
getset |
Access/set the starting position of the paddle.
This property is exposed to the API.