MyPolarBear.AI.AIComponent.Draw C# (CSharp) 메소드

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch, Vector2 position ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
리턴 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);
            }
        }