Ejemplo n.º 1
0
 /// <summary>
 /// Call all the fixed updates of the systems
 /// </summary>
 public static void FixedUpdate()
 {
     foreach (var system in Systems)
     {
         try
         {
             system.FixedUpdate();
         }
         catch (Exception e)
         {
             SystemsContainer.Get <MainSystem>().HandleException(e, "SystemHandler-FixedUpdate");
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Call all the fixed updates of the systems
 /// </summary>
 public static void FixedUpdate()
 {
     for (var i = 0; i < Systems.Length; i++)
     {
         try
         {
             Profiler.BeginSample(Systems[i].SystemName);
             Systems[i].FixedUpdate();
             Profiler.EndSample();
         }
         catch (Exception e)
         {
             SystemsContainer.Get <MainSystem>().HandleException(e, "SystemHandler-FixedUpdate");
         }
     }
 }