示例#1
0
        void Update()
        {
            if (sending)
            {
                switch (ubitrackEvent)
                {
                case UbitrackEventType.Push:
                {
                    SimplePosition2D simplePos2D = new SimplePosition2D();
                    simplePos2D.x         = sendPos2D.x;
                    simplePos2D.y         = sendPos2D.y;
                    simplePos2D.timestamp = UbiMeasurementUtils.getUbitrackTimeStamp();
                    m_poseReciever.receivePosition2D(simplePos2D);
                    if (once)
                    {
                        this.enabled = false;
                    }
                    break;
                }

                case UbitrackEventType.Pull:
                default:
                    break;
                }
            }
        }
示例#2
0
        public void send(ulong timestamp)
        {
            SimplePosition2D simplePos2D = new SimplePosition2D();

            simplePos2D.x         = sendPos2D.x;
            simplePos2D.y         = sendPos2D.y;
            simplePos2D.timestamp = timestamp;
            m_poseReciever.receivePosition2D(simplePos2D);
            if (once)
            {
                this.enabled = false;
            }
        }