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

            foreach (var i in cursorToInternalId)
            {
                cancelTouch(i.Value.Id);
            }
        }
예제 #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;
     }
 }