MyPolarBear.AI.AIComponent.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch, Vector2 position ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
return void
        public void Draw(SpriteBatch spriteBatch, Vector2 position)
        {
            if (mTexture != null)
            {
                //spriteBatch.Draw(mTexture, position, Color.White);
                spriteBatch.Draw(mTexture, new Rectangle((int)position.X, (int)position.Y, 20, 20), Color.White);
            }
        }