Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         byte[] tmpSender = System.Text.Encoding.Default.GetBytes("123456");
         Debug.Log("client  begin sender");
         client.Send(tmpSender);
     }
     if (client != null)
     {
         client.Recv();
     }
 }