Alright, I have been testing the marco polo tutorial lately and I have got in to some
trouble with it. I’ve got my Photon server on (Got it in my comp, went to PhotonInstance1 then “Start Application”, it runs)
Then I’ve got a script to connect the server and join a random room, when it fails it creates one.
But when I RUN the scene it just shows “connecting” then after a few secs it shows “PeerCreated” and remains like that.
And it wont react to the servers status, it shows the same when its online and it shows the same when its offline.
This is my “RandomMatchMaker” code:
using UnityEngine;
using System.Collections;
public class RandomMatchMaker : MonoBehaviour {
void Start () {
PhotonNetwork.ConnectUsingSettings("0.1");
}
void OnGUI()
{
GUILayout.Label (PhotonNetwork.connectionStateDetailed.ToString());
}
void PhotonJoinedLobby()
{
PhotonNetwork.JoinRandomRoom ();
}
void OnPhotonRandomJoinFailed()
{
PhotonNetwork.CreateRoom(null);
}
}
And this is the link to photons “Marco Polo” tutorial: