public void Draw(SpriteBatch spriteBatch) { if (costume != null) { costume.Draw(spriteBatch, this.currentAnimation * 4, this.currentAnimationProgress, new Vector2(position.X, position.Y - elevation), direction, this.ScaleX, this.ScaleY); } if (talk != null && charset != null) { charset.DrawText(spriteBatch, talk, talkPosition); } }
public void Draw(SpriteBatch spriteBatch) { if (type == Type.StringVerb) { if (charset != null) { charset.DrawText(spriteBatch, stream, position); } } else { if (image != null) { image.Draw(spriteBatch, position); } } }