protected override void OnEnable() { base.OnEnable(); NotifyChildEffectors(); m_helper = Curved3DHelper.pool.Get(); }
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(); }