Declaration
public void OnPlayerJoined(ParaPlayer player, PlayerJoinEvent evt)
Parameters
Parameter Name | Parameter Description |
---|---|
player | Player that joins the room |
evt | The way that the player joins the room |
Description
Triggered when a player joins the room.
- When a room is created, the evt parameter returns PlayerJoinEvent.CreateRoom.
- When a player joins the room, the evt parameter returns PlayerJoinEvent.JoinRoom.
When a player joins the room, the same evt parameter value is returned to both the local and remote clients as OnPlayerJoined is triggered.