Пример #1
0
        public void Visit(TransformNode node)
        {
            Transform transform = node.GetTransform();

            if (MatchesSelectors(transform))
            {
                _result = transform;
            }
        }
Пример #2
0
        public void Visit(TransformNode node)
        {
            Transform transform = node.GetTransform();

            if (MatchesSelectors(transform))
            {
                _foundTransforms.Add(transform);
            }
        }
Пример #3
0
        public void Descend(IVisitor visitor)
        {
            _visitor = visitor;

            GameObject[] roots = _scene.GetRootGameObjects();
            for (int i = 0; i < roots.Length; i++)
            {
                INode node = new TransformNode(roots[i].transform);
                Descend(node);
                if (_visitor.ShortCircuit())
                {
                    return;
                }
            }
        }