Beispiel #1
0
        public void Visit(TransformNode node)
        {
            Transform transform = node.GetTransform();

            if (MatchesSelectors(transform))
            {
                _result = transform;
            }
        }
Beispiel #2
0
        public void Visit(TransformNode node)
        {
            Transform transform = node.GetTransform();

            if (MatchesSelectors(transform))
            {
                _foundTransforms.Add(transform);
            }
        }
Beispiel #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;
                }
            }
        }