Basic Multiplayer Issues

Options
It literally does nothing. "connectionStateDetailed" is working perfectly fine, and that's where all function stops. No console filters are on. Nothing is being logged to the console, not even errors, so that makes me think that the lobby isn't being joined for whatever reason.

using UnityEngine;
using System.Collections;

public class NetworkManager : MonoBehaviour {

public Camera standbyCamera;
public string roomName = "FPS";

public string playerPrefabName = "Player";

// Use this for initialization
void Start () {
PhotonNetwork.ConnectUsingSettings ("FPS 0.0.1");
PhotonNetwork.logLevel = PhotonLogLevel.Full;

}


void OnGUI () {
GUILayout.Label ( PhotonNetwork.connectionStateDetailed.ToString() );
}

public void OnJoinedLobby() {
PhotonNetwork.JoinRandomRoom();

RoomOptions roomOptions = new RoomOptions () { isVisible = false, maxPlayers = 4 };
//PhotonNetwork.JoinOrCreateRoom (roomName, roomOptions, TypedLobby.Default);
Debug.Log ("Lobby joined");
}

void OnPhotonRandomJoinFailed() {

PhotonNetwork.CreateRoom( null );
Debug.Log ("Join random room failed");
}


public void OnJoinedRoom() {

SpawnMyPlayer ();
Debug.Log ("Room Joined");
}

public void SpawnMyPlayer (){
PhotonNetwork.Instantiate (playerPrefabName, Vector3.zero, Quaternion.identity, 0);
standbyCamera.enabled = false;
}
}

It's very strange to me that this code is almost verbatim from the Marco Polo tutorial, with a few adjustments from other tutorials in hopes that they might provide a workaround. I am fairly new to coding, so if the answer is a stupidly obvious one, I wouldn't be surprised. Thanks for any help.

Comments