public override void Close() { if (m_pSocket == null) { return; } IoThread.Instance().DelConnectSocket(m_pSocket); }
public override void Close() { if (m_pSocket == null) { return; } #if UNITY_WEBGL && !UNITY_EDITOR m_pSocket.Disconnect(); #else IoThread.Instance().DelConnectSocket(m_pSocket); #endif }
/***********************************************************/ /* Internal Implementation */ /***********************************************************/ private void CommonInit(byte updateRateHz) { this.m_boardCapabilities = new BoardCapabilities(this); this.m_ioCompleteSink = new IoCompleteNotification(this); this.m_ioThread = new IoThread(this); this.m_updateRateHz = updateRateHz; m_integrator = new InertialDataIntegrator(); m_yawOffsetTracker = new OffsetTracker(YawHistoryLength); m_yawAngleTracker = new ContinuousAngleTracker(); }