Ejemplo n.º 1
0
    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();
        }
    }
Ejemplo n.º 2
0
    /// <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();
        }
    }