Пример #1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            NotifyChildEffectors();

            m_helper = Curved3DHelper.pool.Get();
        }
Пример #2
0
        protected override void OnDisable()
        {
            Curved3DHelper.pool.Release(m_helper);
            m_helper = null;

            NotifyChildEffectors();

            base.OnDisable();
        }
        protected override void OnEnable()
        {
            base.OnEnable();

            if (graphic != null)
            {
                //  graphic.SetVerticesDirty();

                m_helper = Curved3DHelper.pool.Get();

                m_layouter = GetValidCurved3DLayouter();
            }
        }
        protected override void OnDisable()
        {
            m_layouter = null;

            Curved3DHelper.pool.Release(m_helper);
            m_helper = null;

            if (graphic != null)
            {
                graphic.SetVerticesDirty();
            }

            base.OnDisable();
        }