Esempio n. 1
0
        public int GetSiblingIndex()
        {
            Transform father = Father.FindObject(File);

            if (father == null)
            {
                return(0);
            }

            for (int i = 0; i < father.Children.Count; i++)
            {
                PPtr <Transform> child = father.Children[i];
                if (child.PathID == PathID)
                {
                    return(i);
                }
            }
            throw new Exception("Transorm hasn't been found among father's children");
        }