Ejemplo n.º 1
0
        public void SetServerInfo(string status, string host)
        {
            //statusInfo.text = status;
            string ipv4 = IPManager.GetIP(ADDRESSFAM.IPv4);

            statusInfo.text = ipv4;
            hostInfo.text   = host;
        }
Ejemplo n.º 2
0
        // ----------------- Utility functions ------------------

        public string GetIPAddress()
        {
            networkAddress = IPManager.GetIP(ADDRESSFAM.IPv4);
            if (string.IsNullOrEmpty(networkAddress))
            {
                networkAddress = kDefaultHost;
            }
            return(networkAddress);
        }
Ejemplo n.º 3
0
        void Start()
        {
            s_Singleton  = this;
            _lobbyHooks  = GetComponent <LobbyHook>();
            currentPanel = mainMenuPanel;

            backButton.gameObject.SetActive(false);
            GetComponent <Canvas>().enabled = true;

            DontDestroyOnLoad(gameObject);

            SetServerInfo("Offline", "None");

            m_musicManager = FindObjectOfType <MusicManager>();

            string ipv4 = IPManager.GetIP(ADDRESSFAM.IPv4);

            statusInfo.text = ipv4;
        }