Save time with this CreateOrJoinRoom tip.
Options
NWDEV
✭
You gotta know that JoinOrCreateRoom() room is NOT the same as CreateOrJoinRoom().
JoinOrCreateRoom() will call OnPhotonJoinRoomFailed() if the room is full.
CreateOrJoinRoom() doesn't call OnPhotonJoinRoomFailed()! At all!
We spent 2 hours trying to fix this, and figured out there were two methods so similarly named that I didn't catch the difference until I compared my code to a co-worker's.
When we solved it it was a forehead slap and wambo combo.
JoinOrCreateRoom() will call OnPhotonJoinRoomFailed() if the room is full.
CreateOrJoinRoom() doesn't call OnPhotonJoinRoomFailed()! At all!
We spent 2 hours trying to fix this, and figured out there were two methods so similarly named that I didn't catch the difference until I compared my code to a co-worker's.
When we solved it it was a forehead slap and wambo combo.
0