// Update is called once per frame void Update() { if (HeadsetInput != null) { headsetConnected = HeadsetInput.isConnected(); if (headsetConnected) { HeadsetInput.CheckForData(); } } if (ControllerInput != null) { controllerConnected = ControllerInput.isConnected(); if (controllerConnected) { ControllerInput.CheckForData(); } } Debug.Log("Wifi Data: " + readFromWiFi()); if (syncTimer < 0) { syncTimer = 0.05f; // HeadsetInput.writeSocket("T"); //ControllerInput.writeSocket("T"); } syncTimer -= Time.deltaTime; }