Exemplo n.º 1
0
    public void ExitLobby()
    {
        m_networkManager.StopDiscovery();

        foreach (PlayerLobbySlot slot in m_redSlots)
        {
            Destroy(slot.gameObject);
        }
        m_redSlots.Clear();

        foreach (PlayerLobbySlot slot in m_blueSlots)
        {
            Destroy(slot.gameObject);
        }
        m_blueSlots.Clear();
        m_displayedPlayers.Clear();
    }
Exemplo n.º 2
0
    public void OnCancelJoiningPressed()
    {
        m_networkManager.StopDiscovery();

        ShowConnectionMenu(true);
    }