EditorMotionScheduler.cs
Editor/Scheduling/EditorMotionScheduler.cs
1 using System;
2
3 namespace MeatMotion.Editor
4 {
5 #if UNITY_6000_7_OR_NEWER
6 [Unity.Scripting.LifecycleManagement.NoAutoStaticsCleanup] // The scheduler holds no state.
7 #endif
8 public static class EditorMotionScheduler
9 {
10 sealed class Scheduler : WorldScheduler
11 {
12 internal override MotionWorld Resolve(Type motionType) => MotionUpdateDriver.EditorWorld(motionType);
13 }
14
15 public static readonly IMotionScheduler Update = new Scheduler();
16 }
17 }