Ejemplo n.º 1
0
        public override void Update(GameTime gameTime)
        {
            _barComponent.Update(_currentHealth, position);

            if (_currentHealth <= 0)
            {
                Destroy();
            }
        }