当游戏重置但 spritebatch 未绘制时,我正在尝试将快速加载精灵绘制到屏幕上。我在game.spritebatch.begin() 上放了一个断点;当我跨步时,什么都没有画出来。有任何想法吗?
这是我的重置功能
public void Reset()
{
loadingScreen = game.Content.Load<Texture2D>("Textures\\loadingScreen");
game.spriteBatch.Begin();
game.spriteBatch.Draw(loadingScreen, Vector2.Zero, null, Color.Black, 0.0f, Vector2.Zero, 0.5f, SpriteEffects.None, 0f);
game.spriteBatch.End();
cameraPosition = original_cameraPosition;
players.Clear();
furthest = 0;
enemies.Clear();
LoadEnemies();
ActivatePlayers();
}