public void enableAnimate(bool record) { if (operatingState == ConnectionState.CONNECTED) { if (EnfluxVRSuit.streamRealTime(connectedDevices.Count, record) < 1) { operatingState = ConnectionState.STREAMING; StartCoroutine(readAngles()); } else { Debug.Log("Error, no devices to animate"); } } else { Debug.Log("Unable to stream, program is in wrong state " + Enum.GetName(typeof(ConnectionState), operatingState)); } }
public void enableAnimate(bool record) { if (operatingState == ConnectionState.CONNECTED) { StringBuilder returnBuffer = new StringBuilder(EnfluxVRSuit.MESSAGESIZE); if (EnfluxVRSuit.streamRealTime(connectedDevices.Count, record, returnBuffer) < 1) { operatingState = ConnectionState.STREAMING; StartCoroutine(readAngles()); } else { Debug.Log(returnBuffer); } } else { Debug.Log("Unable to stream, program is in wrong state " + Enum.GetName(typeof(ConnectionState), operatingState)); } }