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