コード例 #1
0
ファイル: Texture.cs プロジェクト: zy1911/JxqyHD
 public void Draw(SpriteBatch spriteBatch, Vector2 position)
 {
     if (_texture != null)
     {
         var texture = _texture.GetFrame(CurrentFrameIndex);
         if (texture == null)
         {
             return;
         }
         spriteBatch.Draw(
             texture,
             position,
             Color.White);
     }
 }