Ejemplo n.º 1
0
        public void Clear()
        {
            Transform transform = base.transform;

            for (int i = 0; i < transform.childCount; i++)
            {
                Transform child = transform.GetChild(i);
                if (!(child == null))
                {
                    PalGameObjectBase component = child.GetComponent <PalGameObjectBase>();
                    if (!(component == null))
                    {
                        component.Clear();
                    }
                }
            }
        }