/// <summary>Disconnect from server</summary> public void Disconnect() { mBroadcastSocketCreated = false; mNetwork.Disconnect(); m3DSettings = null; m6DOFSettings = null; mAnalogSettings = null; mDiscoveryResponses.Clear(); mForceSettings = null; mGazeVectorSettings = null; mGeneralSettings = null; mImageSettings = null; }
private bool GetGazeVectorSettings() { bool getStatus = mProtocol.GetGazeVectorSettings(); if (getStatus) { mGazeVectors.Clear(); SettingsGazeVector settings = mProtocol.GazeVectorSettings; foreach (var gazeVector in settings.gazeVectorList) { var newGazeVector = new GazeVector(); newGazeVector.Name = gazeVector.name; newGazeVector.Position = Vector3.zero; newGazeVector.Direction = Vector3.zero; mGazeVectors.Add(newGazeVector); } return(true); } return(false); }