- Home /
Question by
SuperRaed · Oct 10, 2015 at 08:42 AM ·
networkingphotonroom
In Photon what is the difference between OnJoinedRoom() and OnPHotonPlayerConnected()
I'm having a problem calling the OnPhotonPlayerConnected(PhotonPlayer player) but I figured that it's very similar to OnJoinedRoom() and I was able to get my result using it instead. my question is what is the difference between both methods and when are they called in relative to each other? also any ideas on why my OnPhotonPlayerConnected(PhotonPlayer player) is not being called would be appreciated
void OnCreatedRoom() { //this is called by the masterClient Only?
Debug.Log("Room Created");
}
void OnJoinedRoom()
{
Debug.Log("Room Joined");
}
void OnPhotonPlayerConnected(PhotonPlayer player)
{
Debug.Log("playerJoined");
}
only "Room Created" and "Room Joined" are being printed?
Comment
Answer by csking33 · Oct 16, 2015 at 10:34 PM
OnPhotonPlayerConnected is for when different player joins the room :)