Beispiel #1
0
        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();
        }
Beispiel #2
0
 void disconnect()
 {
     if (tuioServer != null)
     {
         tuioServer.RemoveAllDataProcessors();
         tuioServer.Disconnect();
         tuioServer = null;
     }
 }
Beispiel #3
0
 //停止监听
 private void Disconnect()
 {
     if (mServer != null)
     {
         mServer.RemoveAllDataProcessors();
         mServer.Disconnect();
         mServer = null;
     }
     mMarkerDictionary.Clear();
 }
Beispiel #4
0
 private void OnDisable()//关闭
 {
     if (server != null)
     {
         server.RemoveDataProcessor(cursorProcessor);
         server.RemoveAllDataProcessors();
         server.Disconnect();
         server = null;
     }
 }
Beispiel #5
0
        private void disconnect()
        {
            if (server != null)
            {
                server.RemoveAllDataProcessors();
                server.Disconnect();
                server = null;
            }

            foreach (var i in cursorToInternalId)
            {
                cancelTouch(i.Value.Id);
            }
        }
Beispiel #6
0
 private void Disconnect()
 {
     if (_tuioServer != null)
     {
         _tuioServer.RemoveAllDataProcessors();
         _tuioServer.Disconnect();
         _tuioServer        = null;
         _waitForEndOfFrame = null;
         if (_coroutine != null)
         {
             StopCoroutine(_coroutine);
         }
         _coroutine = null;
         Instance   = null;
     }
 }