抱歉打擾大家,我在XNA上找不到任何好的教程,所以我只是來這裏尋求幫助,所以如何在處置之前等待?XNA - 如何讓圖像在x秒後消失?
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.Black);
// TODO: Add your drawing code here
mBatch.Begin();
mBatch.Draw(mTheQuantumBros2, new Rectangle(300, 150, mTheQuantumBros2.Width, mTheQuantumBros2.Height), Color.White);
//How to make it wait for 3 seconds before disposing?
mBatch.Dispose();
mBatch.End();
base.Draw(gameTime);
}