private void UpdateSprite() { //needs to also update the player position so the bottom of the player stays in the same place ISprite currentSprite = sprite; sprite = SpriteMachine.Instance.CreateSprite(HealthState.GetType().Name + MovementState.GetType().Name); Physics.yPosition += currentSprite.GetHeight() - sprite.GetHeight(); }
public void UpdateSprite() { sprite = SpriteMachine.Instance.CreateSprite(HealthState.GetType().Name + MovementState.GetType().Name); }