Exemplo n.º 1
0
        public static Transform[] GetTransforms(Collider[] colliders)
        {
            List <Transform> results = new List <Transform>();

            for (int loop = 0; loop < colliders.Length; loop++)
            {
                results.Add(GameObjectUtilities.GetGameObject(colliders[loop]).transform);
            }
            return(results.ToArray());
        }
Exemplo n.º 2
0
        public static GameObject[] GetGameObjects(Collider[] colliders)
        {
            List <GameObject> results = new List <GameObject>();

            for (int loop = 0; loop < colliders.Length; loop++)
            {
                results.Add(GameObjectUtilities.GetGameObject(colliders[loop]));
            }
            return(results.ToArray());
        }