ParaNetService.OnPlayerJoin

Declaration

public static void OnPlayerJoin(Action<ParaPlayer> callback)

Parameter

callbackCallback function for receiving notifications

Description

The room login event of the registered listener role.

ParaNetService.OnPlayerJoin(function(player)
     print(string.format("player:%d join",player.playerID));
end);