// below, we implement some callbacks of PUN // you can find PUN's callbacks in the class PunBehaviour or in enum PhotonNetworkingMessage public virtual void OnConnectedToMaster() { Debug.Log("OnConnectedToMaster() was called by PUN. Now this client is connected and could join a room. Calling: PhotonNetwork.JoinRandomRoom();"); PhotonNetwork.JoinRandomRoom(options.GetRoomOptions().CustomRoomProperties, GameOptions.MaxPlayers); }