Exemple #1
0
        /// <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;
        }
Exemple #2
0
        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);
        }