SynchedPrefabs m_synchedPrefabs = null; /// Prefabs synched across networked players /// <summary> /// Initialises the matchmaker /// </summary> void Start() { PhotonNetwork.autoJoinLobby = false; m_synchedPrefabs = new SynchedPrefabs(); int maxLevels = Utilities.GetMaxLevels(); m_lobbys = (from i in Enumerable.Range(0, maxLevels) select new TypedLobby()).ToList(); if (!IsConnected()) { SetStatus("Connecting to server"); ConnectToMatchmaker(); } }
/// <summary> /// Initialises the matchmaker /// </summary> void Start() { PhotonNetwork.autoJoinLobby = false; m_synchedPrefabs = new SynchedPrefabs(); int maxLevels = Utilities.GetMaxLevels(); m_lobbys = (from i in Enumerable.Range(0, maxLevels) select new TypedLobby()).ToList(); if (!IsConnected()) { SetStatus("Connecting to server"); ConnectToMatchmaker(); } }