|
|
|
|
|
|
public GameObject GameHubGO; |
|
|
|
private BossRoom.GameNetHub m_netHub; |
|
|
|
|
|
|
|
private string m_defaultIPText; |
|
|
|
|
|
|
|
|
|
|
|
//track what this is on startup. We're not opinionated; we will try whatever the user puts in, as long as they've changed the text.
|
|
|
|
m_defaultIPText = GameObject.Find("IPInputBox").GetComponent<UnityEngine.UI.Text>().text; |
|
|
|
} |
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
|
|
private string GetIPAddress() |
|
|
|
{ |
|
|
|
string iptext = GameObject.Find("IPInputText").GetComponent<UnityEngine.UI.Text>().text; |
|
|
|
if( iptext == m_defaultIPText ) |
|
|
|
if( iptext == "" ) |
|
|
|
{ |
|
|
|
return "127.0.0.1"; |
|
|
|
} |
|
|
|