Photon Networking OnJoinedLobby() function not being called.

Options
Hi,
Here is the networking script in my Unity project. For some reason, the functions Start() and Connect() are called but no other functions are called after it (From the console output). My code:

using UnityEngine; using System.Collections; public class NetworkManager : MonoBehaviour { // Use this for initialization void Start () { Debug.Log ("Start"); Connect (); } void Connect() { Debug.Log ("Connect "); PhotonNetwork.ConnectUsingSettings ("1"); } void OnGUI() { GUILayout.Label (PhotonNetwork.connectionStateDetailed.ToString ()); } void OnJoinedLobby() { Debug.Log ("OnJoinedLobby"); PhotonNetwork.JoinRandomRoom (); } void OnPhotonRandomJoinFailed () { Debug.Log ("OnPhotonRandomJoinFailed"); PhotonNetwork.CreateRoom (null); } void OnJoinedRoom () { Debug.Log ("OnJoinedRoom"); PhotonNetwork.Instantiate ("Player", Vector3.zero, Quaternion.identity, 0); } }

Comments