game -> a Game , method of UB

Get the current game.

Returns

the current Game instance.

// Add a Circle when a player enters the game.

UB.game.on("playerJoined", addCircle);

See all methods of the api.