mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 22:55:06 +08:00
24 lines
595 B
C#
24 lines
595 B
C#
|
using System;
|
|||
|
|
|||
|
namespace nadena.dev.modular_avatar.core.armature_lock
|
|||
|
{
|
|||
|
internal static class UpdateLoopController
|
|||
|
{
|
|||
|
internal static event Action OnArmatureLockUpdate;
|
|||
|
internal static event Action OnMoveIndependentlyUpdate;
|
|||
|
|
|||
|
#if UNITY_EDITOR
|
|||
|
[UnityEditor.InitializeOnLoadMethod]
|
|||
|
private static void Init()
|
|||
|
{
|
|||
|
#if UNITY_EDITOR
|
|||
|
UnityEditor.EditorApplication.update += () =>
|
|||
|
{
|
|||
|
OnArmatureLockUpdate?.Invoke();
|
|||
|
OnMoveIndependentlyUpdate?.Invoke();
|
|||
|
};
|
|||
|
#endif
|
|||
|
}
|
|||
|
#endif
|
|||
|
}
|
|||
|
}
|