Esempio n. 1
0
    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void RecursivelyAddToClip(Transform _t)
    {
        foreach (Transform child in _t)
        {
            exPlane plane = child.GetComponent <exPlane>();
            if (plane != null)
            {
                planes.Add(plane);
                exSoftClip clipPlane = plane as exSoftClip;
                // if this is a clip plane, add child to it
                if (clipPlane != null)
                {
                    clipPlane.UpdateClipList();
                    continue;
                }
            }
            RecursivelyAddToClip(child);
        }
    }