public void disableAnimate() { if (operatingState == ConnectionState.STREAMING) { StringBuilder returnBuffer = new StringBuilder(EnfluxVRSuit.MESSAGESIZE); //read and set mode streamWriter.WriteLine("stop"); streamWriter.Flush(); if (EnfluxVRSuit.stopRealTime(connectedDevices.Count, returnBuffer) < 1) { operatingState = ConnectionState.CONNECTED; clearStream(); //stop animation mode orientationAngles.setMode(0); serverState = ServerState.STARTED; } else { Debug.Log(returnBuffer); } } else { Debug.Log("Unable to stop stream, program is in wrong state " + Enum.GetName(typeof(ConnectionState), operatingState)); } }
public void disableAnimate() { if (operatingState == ConnectionState.STREAMING) { if (EnfluxVRSuit.stopRealTime(connectedDevices.Count) < 1) { operatingState = ConnectionState.CONNECTED; clearStream(); //stop animation mode orientationAngles.setMode(0); serverState = ServerState.STARTED; } else { Debug.Log("Problem occured while stopping stream"); } } else { Debug.Log("Unable to stop stream, program is in wrong state " + Enum.GetName(typeof(ConnectionState), operatingState)); } }