示例#1
0
        public GameObject tcpServer;// udp;

        public void OnClick()
        {
            Globals.isServer = true;
            tcpServer.SetActive(true);
            // udp.SetActive(true);
            GuiHelpers.OpenStep2();
        }
        public void OnClick()
        {
            Globals.isServer = false;

            IPAddress ip = IPAddress.Parse(GameObject.Find("InputFieldIP").GetComponent <InputField>().text);

            udp.GetComponent <UDPChat>().serverIp       = ip;
            tcpClient.GetComponent <TCPChat>().serverIp = ip;

            udp.SetActive(true);
            tcpClient.SetActive(true);

            GuiHelpers.OpenStep2();
        }
 public void Awake()
 {
     GuiHelpers.OpenStep1();
 }