chat.connectToPlayerComponent
Prototype
public function connectToPlayerComponent(playerComponentInstance)
Input parameters
playerComponentInstance - the player component to connect with the lobby
Return value
null
Description
Connects a player component instance with the chat. Normally done during initialization of the game.
Example code
chat.connectToPlayerComponent(game.player0);
chat.connectToPlayerComponent(game.player1);
