Ejemplo n.º 1
0
        void Start()
        {
            Rect rect = new Rect(0, 0, 350.0f, 300.0f);

            _rectRef = new Ref <Rect>(
                () => rect,
                t => rect = t
                );

            Rect secondRect = new Rect(0, 0, 350.0f, 300.0f);

            _secondRectRef = new Ref <Rect>(
                () => secondRect,
                t => secondRect = t
                );

            _queue.Sequence(
                Cmd.RepeatForever(
                    Cmd.Coroutine(() => AnimateRects())
                    )
                );
        }