Пример #1
0
 protected override void OnDisable()
 {
     base.OnDisable();
     _uiEffect = null;
     if (ptex != null)
     {
         ptex.Unregister(this);
         ptex = null;
     }
 }
Пример #2
0
        protected override void OnEnable()
        {
            base.OnEnable();

            _uiEffect = GetComponent <UIEffect>();
            if (_uiEffect)
            {
                ptex = _uiEffect.ptex;
                ptex.Register(this);
            }
        }
Пример #3
0
        protected override void OnEnable()
        {
            base.OnEnable();

            _uiEffect = GetComponent <UIEffect>();
            if (!_uiEffect)
            {
                return;
            }

            paramTex = _uiEffect.paramTex;
            paramTex.Register(this);
        }
Пример #4
0
        protected override void OnDisable()
        {
            base.OnDisable();

            _uiEffect = null;
            if (paramTex == null)
            {
                return;
            }

            paramTex.Unregister(this);
            paramTex = null;
        }
Пример #5
0
        protected override void OnEnable()
        {
            base.OnEnable();

            _uiEffect = GetComponent <UIEffect>();
            if (_uiEffect)
            {
                ptex = _uiEffect.ptex;
                ptex.Register(this);
            }

                        #if TMP_PRESENT
            if (isTMPro)
            {
                textMeshPro.onCullStateChanged.AddListener(OnCullStateChanged);
            }
                        #endif
        }