Skip to content

Commit 3a6e63b

Browse files
committed
Its bug
1 parent 7fb3d59 commit 3a6e63b

4 files changed

Lines changed: 1 addition & 61 deletions

File tree

src/LitMotion/Assets/LitMotion/Runtime/Internal/EnterThePlayModeHelper.cs

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/LitMotion/Assets/LitMotion/Runtime/Internal/EnterThePlayModeHelper.cs.meta

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/LitMotion/Assets/LitMotion/Runtime/Internal/MotionManager.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,5 @@ static void CheckTypeId(in MotionHandle handle)
116116
}
117117
}
118118

119-
#if UNITY_EDITOR
120-
[UnityEditor.InitializeOnEnterPlayMode]
121-
private static void Clear()
122-
{
123-
MotionTypeCount = 0;
124-
list.Clear();
125-
}
126-
#endif
127119
}
128120
}

src/LitMotion/Assets/LitMotion/Runtime/MotionDispatcher.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using LitMotion.Collections;
55

66
#if UNITY_EDITOR
7-
using LitMotion.Runtime.Internal;
87
using UnityEditor;
98
#endif
109

@@ -52,9 +51,6 @@ static MotionStorage<TValue, TOptions, TAdapter> CreateIfNull(ref MotionStorage<
5251
{
5352
storage = new MotionStorage<TValue, TOptions, TAdapter>(MotionManager.MotionTypeCount);
5453
MotionManager.Register(storage);
55-
#if UNITY_EDITOR
56-
EnterThePlayModeHelper.Register(storage);
57-
#endif
5854
}
5955
return storage;
6056
}
@@ -104,9 +100,7 @@ public static (UpdateRunner<TValue, TOptions, TAdapter> runner, bool isCreated)
104100
runner = new UpdateRunner<TValue, TOptions, TAdapter>(storage, Time.timeAsDouble, Time.unscaledTimeAsDouble, Time.realtimeSinceStartupAsDouble);
105101
}
106102
GetRunnerList(playerLoopTiming).Add(runner);
107-
#if UNITY_EDITOR
108-
EnterThePlayModeHelper.Register(runner);
109-
#endif
103+
110104
return (runner, true);
111105
}
112106
return (runner, false);
@@ -258,7 +252,6 @@ public static MotionStorage<TValue, TOptions, TAdapter> GetOrCreateStorage()
258252
{
259253
storage = new MotionStorage<TValue, TOptions, TAdapter>(MotionManager.MotionTypeCount);
260254
MotionManager.Register(storage);
261-
EnterThePlayModeHelper.Register(storage);
262255
}
263256
return storage;
264257
}

0 commit comments

Comments
 (0)