Example #1
0
 public void OnServerButtonPressed()
 {
     if (m_networkManager.StartDiscoveryAsServer())
     {
         ShowConnectionMenu(false);
     }
 }
Example #2
0
    public void InitLobby(bool isServer = false)
    {
        m_isServer = isServer;

        if (m_isServer)
        {
            m_networkManager.StartDiscoveryAsServer();
        }
        else
        {
            m_networkManager.StartDiscoveryAsClient();
        }
    }