OnJoinedRoom Called multiple times?

Options
Erethan
Erethan ✭✭
When I use PhotonNetwork.JoinRoom (roomName,false) sometimes executes "OnJoinedRoom" more than once.
I have noticed that it executes once for each room there is created. For Example, if there are 4 rooms created and I join one of them,
OnJoinedRoom will run 4 times (with the same room.name)

void OnJoinedRoom()
{
Debug.Log("Joined Room: " + PhotonNetwork.room.name);
Application.LoadLevel ("Room");

}

Anyone knows what is going on?

Comments

  • vadim
    Options
    Can you send a log with Debug.Log(("Joined Room: " ...) logging.
    Please also add there logging of PhotonNetwork.JoinRoom (...) calls.