/// <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"); } } }
/// <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"); } } }