hi
i am new to unity and coding , i am trying to make simple multiplayer game but OnJoinedRoom is not calling back
this is my code :
using UnityEngine;
using System.Collections;
public class NetwotkManager : MonoBehaviour {
public Camera standbycamera ;
// Use this for initialization
void Start () {
Connect ();
}
void Connect () {
PhotonNetwork.ConnectUsingSettings ("MultiFPS v1");
}
void OnGUI () {
GUILayout.Label( PhotonNetwork.connectionStateDetailed.ToString());
}
void OnJoinedLobby() {
Debug.Log ("OnJoinedLobby");
PhotonNetwork.JoinRandomRoom ();
}
void OnPhotonRandomJoinFaild() {
Debug.Log ("OnPhotonRandomJoinFaild");
PhotonNetwork.CreateRoom( null );
}
void OnJoinedRoom() {
Debug.Log ("OnJoinedRoom");
SpawnMyPlayer ();
}
void SpawnMyPlayer() {
PhotonNetwork.Instantiate ("PlayerController", Vector3.zero, Quaternion.identity, 0);
standbycamera.enabled = false;
}
}
thanks for help