#region using System; using System.Collections.Generic; using Unity.Jobs; using UnityEditor; #endregion namespace nadena.dev.modular_avatar.core.armature_lock { internal static class UpdateLoopController { internal static event Action UpdateCallbacks; internal static event Action OnMoveIndependentlyUpdate; #if UNITY_EDITOR [InitializeOnLoadMethod] private static void Init() { EditorApplication.update += Update; } private static List jobs = new List(); private static void Update() { if (ArmatureLockConfig.instance.GlobalEnable) { UpdateCallbacks?.Invoke(); } OnMoveIndependentlyUpdate?.Invoke(); } #endif } }