Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     // GetComponent<Renderer>().material.color = new Color(rChannel, 0.0f, 0.0f);
     s_tcp.setupSocket();
     scoreboard.text = "Score N/A";
     congrats        = GameObject.Find("Congrats");
     congrats.SetActive(false);
 }
Beispiel #2
0
 public void connect()
 {
     mainThread.setupSocket(HostData, Port);
 }
 // Use this for initialization
 void Start()
 {
     myTCP = gameObject.AddComponent<s_TCP> ();
         //new s_TCP();
     myTCP.setupSocket();
     Debug.Log (myTCP.socketReady);
     myTCP.writeSocket("get me started");//request data
 }