public void Draw(SpriteBatch spriteBatch) { if (pState == PlayerState.walking) { walkAnimation.Draw(spriteBatch); currentItem.Draw(spriteBatch); armWalkAnimation.Draw(spriteBatch); } if (pState == PlayerState.attacking) { attackAnimation.Draw(spriteBatch); } spriteBatch.Draw(healthBarTexture, currentHealthBar, Color.Green); spriteBatch.Draw(healthBarTexture, missingHealthBar, Color.Red); }
public void Draw(SpriteBatch spriteBatch) { animation.Draw(spriteBatch); }