Exemplo n.º 1
0
        public void Send(FlowTObject transformToSend)
        {
            transformToSend.Read();
            obj = new FlowTObject();
            obj.Copy(transformToSend);

            project = new FlowProject(Config.projectId);
            client  = new FlowClient(Config.deviceId);

            CommandProcessor.sendCommand(this);
        }
Exemplo n.º 2
0
    // Update is called once per frame
    public void Update()
    {
        if (fos.Count > 0 && FlowNetworkManager.testProject != null)
        {
            registerObject();
        }

        //if (pastState.Equals(ft))
        //    selected = true;

        if (selected)
        {
            if (FlowNetworkManager.connected)
            {
                ft.Read();

                if (!pastState.Equals(ft))
                {
                    pastState.Copy(ft);
                    transformUpdateEvent.Send(ft);
                }
            }
        }
    }