public void Connect(string ipToConnect){ //game connection routine Debug.Log(ipToConnect); RequestMobile.ip = "http://" + ipToConnect; rm = gameObject.AddComponent<RequestMobile>(); responseWindow.Connected(); }
public void StopGame(){ Destroy(rm); rm = null; RequestMobile.endGame = false; }