Esempio n. 1
0
 protected override void UpdateActivity(GameTime gameTime)
 {
     try
     {
         base.UpdateActivity(gameTime);
     }
     catch (Exception ex)
     {
         ActivityCompletion.TrySetException(ex);
     }
 }
Esempio n. 2
0
 protected override void DrawActivity(GameTime gameTime)
 {
     try
     {
         base.DrawActivity(gameTime);
         if (FadeColor != Color.Transparent)
         {
             SpriteBatch.Begin();
             SpriteBatch.Draw(_fadeTexture, new Rectangle(0, 0, Viewport.Width, Viewport.Height), FadeColor.Value);
             SpriteBatch.End();
         }
     }
     catch (Exception ex)
     {
         ActivityCompletion.TrySetException(ex);
     }
 }