public void OnMouseLeave()
        {
            if (Owner.TryGetComponent(out ISpriteComponent? sprite))
            {
                sprite.PostShader  = null;
                sprite.RenderOrder = 0;
            }

            _shader?.Dispose();
            _shader = null;
        }
Exemple #2
0
        public void OnMouseLeave()
        {
            if (_entMan.TryGetComponent(Owner, out SpriteComponent? sprite))
            {
                if (sprite.PostShader == _shader)
                {
                    sprite.PostShader = null;
                }
                sprite.RenderOrder = 0;
            }

            _shader?.Dispose();
            _shader = null;
        }