private void disconnect() { if (server != null) { server.RemoveAllDataProcessors(); server.Disconnect(); server = null; } foreach (var i in cursorToInternalId) { cancelPointer(i.Value); } foreach (var i in blobToInternalId) { cancelPointer(i.Value); } foreach (var i in objectToInternalId) { cancelPointer(i.Value); } cursorToInternalId.Clear(); blobToInternalId.Clear(); objectToInternalId.Clear(); }
void disconnect() { if (tuioServer != null) { tuioServer.RemoveAllDataProcessors(); tuioServer.Disconnect(); tuioServer = null; } }
//停止监听 private void Disconnect() { if (mServer != null) { mServer.RemoveAllDataProcessors(); mServer.Disconnect(); mServer = null; } mMarkerDictionary.Clear(); }
private void OnDisable()//关闭 { if (server != null) { server.RemoveDataProcessor(cursorProcessor); server.RemoveAllDataProcessors(); server.Disconnect(); server = null; } }
private void disconnect() { if (server != null) { server.RemoveAllDataProcessors(); server.Disconnect(); server = null; } foreach (var i in cursorToInternalId) { cancelTouch(i.Value.Id); } }
private void Disconnect() { if (_tuioServer != null) { _tuioServer.RemoveAllDataProcessors(); _tuioServer.Disconnect(); _tuioServer = null; _waitForEndOfFrame = null; if (_coroutine != null) { StopCoroutine(_coroutine); } _coroutine = null; Instance = null; } }