void Awake()
    {
        int x = 123;

        _thIdtolistento = Convert.ToByte(x);

#if !UNITY_EDITOR
        Showit = DotheShow;
        SocketClientManager.Port = 12346;
        SocketClientManager.Host = "192.168.1.8";
        SocketClientManager.Connect();
        SocketClientManager.Subscribe(_thIdtolistento, DotheShow);
#endif
    }
Exemple #2
0
 void Update()
 {
     SocketClientManager.Subscribe(0, returnMessage);
     // GameObject.Find("Temperature").GetComponent<TextMesh>().text = System.Text.Encoding.UTF8.GetString(thermoData.Content);
 }
Exemple #3
0
 void Start()
 {
     ThermoC.returnMessage += printMessage;
     Debug.Log("ThermoC initialized");
     SocketClientManager.Subscribe(0, returnMessage);
 }