public void OnConnectRobotBtnClick() { string ip = GameObject.Find("IPInput").GetComponent <UIInput>().value; Debug.Log("IP is " + ip); if (ip != "") { m_SocketController.CreateSocketClientConnecttion(ip, 2810); m_SocketController.SendDataToServer(DataHandler.PackingLoginInfo("cao")); GameObject.Find("ConnectSettingPanel").GetComponent <UIPanel>().alpha = 1; m_SocketController.m_UnitySocketClient.CreateReceiveThread(); } }