Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

How to set a "Player X Joined the room?"

$
0
0
I'm tring to setup a simple script that notify the Players in a room when somebody enter.

Problem is that actually the nick doesnt get read, can somebody help? It's my first PUN project.

This is the script:

public override void OnPlayerEnteredRoom(Player newPlayer)
{
base.OnPlayerEnteredRoom(newPlayer);

Debug.Log($"{newPlayer.NickName} JOINED THE ROOM");
}

Viewing all articles
Browse latest Browse all 8947

Trending Articles