17 lines
572 B
C#
17 lines
572 B
C#
using UnityEditor;
|
|
|
|
namespace LitMotion.Editor
|
|
{
|
|
internal sealed class EditorUpdateMotionScheduler : IMotionScheduler
|
|
{
|
|
public double Time => EditorApplication.timeSinceStartup;
|
|
|
|
public MotionHandle Schedule<TValue, TOptions, TAdapter>(ref MotionBuilder<TValue, TOptions, TAdapter> builder)
|
|
where TValue : unmanaged
|
|
where TOptions : unmanaged, IMotionOptions
|
|
where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
|
|
{
|
|
return EditorMotionDispatcher.Schedule(ref builder);
|
|
}
|
|
}
|
|
} |