public void SetServerInfo(string status, string host) { //statusInfo.text = status; string ipv4 = IPManager.GetIP(ADDRESSFAM.IPv4); statusInfo.text = ipv4; hostInfo.text = host; }
// ----------------- Utility functions ------------------ public string GetIPAddress() { networkAddress = IPManager.GetIP(ADDRESSFAM.IPv4); if (string.IsNullOrEmpty(networkAddress)) { networkAddress = kDefaultHost; } return(networkAddress); }
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; }