Strange error when using ConnectUsingSettings()

Options
Whenever I try to connect I get the error:
NullReferenceException: Object reference not set to an instance of an object
PhotonNetwork.SwitchToProtocol (ConnectionProtocol cp) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:1000)
PhotonNetwork.ConnectUsingSettings (System.String gameVersion) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:1077)
NetworkManager.Connect () (at Assets/Scripts/NetworkManager.cs:30)
NetworkManager.Start () (at Assets/Scripts/NetworkManager.cs:13)
Anyone have any idea why this is happening?

Comments

  • Fixed: Apparently initializing the room properties before the Start() function is a bad thing... whoops.