player.clearPlayerInfo
Prototype
public function clearPlayerInfo()
Return value
null
Description
When a player leaves the game, you usually want to hide the player component by calling its clearPlayerInfo method. Normally you also want to call this method on all player components when the current player leaves to the lobby.
Example code
player1.clearPlayerInfo();
