Пример #1
0
 public void OnClientButtonPressed()
 {
     if (m_networkManager.StartDiscoveryAsClient())
     {
         ShowOnJoiningGameMenu();
     }
 }
Пример #2
0
    public void InitLobby(bool isServer = false)
    {
        m_isServer = isServer;

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