// ----- Unity Callbacks -----

        void OnDestroy()
        {
            //This might be costly if this FPV_Object has too many renderers. Should be fine for small number of renderers
            _parent.RemoveRenderer(this);
        }
Ejemplo n.º 2
0
        // ----- Unity Callbacks -----

        void OnDestroy()
        {
            _parent.RemoveRenderer(transform);
        }