Exemplo n.º 1
0
 public override void Update()
 {
     base.Update();
     if (!LongEventHandler.ShouldWaitForEvent && !this.destroyed)
     {
         try
         {
             Profiler.BeginSample("ShipCountdownUpdate()");
             ShipCountdown.ShipCountdownUpdate();
             Profiler.EndSample();
             Profiler.BeginSample("TargetHighlighterUpdate()");
             TargetHighlighter.TargetHighlighterUpdate();
             Profiler.EndSample();
             Profiler.BeginSample("Game.Update()");
             Current.Game.UpdatePlay();
             Profiler.EndSample();
             Profiler.BeginSample("MusicUpdate()");
             this.musicManagerPlay.MusicUpdate();
             Profiler.EndSample();
         }
         catch (Exception arg)
         {
             Log.Error("Root level exception in Update(): " + arg, false);
         }
     }
 }
Exemplo n.º 2
0
 public override void Update()
 {
     base.Update();
     if (!LongEventHandler.ShouldWaitForEvent && !destroyed)
     {
         try
         {
             ShipCountdown.ShipCountdownUpdate();
             TargetHighlighter.TargetHighlighterUpdate();
             Current.Game.UpdatePlay();
             musicManagerPlay.MusicUpdate();
         }
         catch (Exception arg)
         {
             Log.Error("Root level exception in Update(): " + arg);
         }
     }
 }