Skip to content

Commit

Permalink
Add: MotionDispatcher.Clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnulusGames committed Jan 15, 2024
1 parent 611a20d commit 1c09724
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/LitMotion/Assets/LitMotion/Runtime/MotionDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ static MinimumList<IUpdateRunner> GetRunnerList(PlayerLoopTiming playerLoopTimin

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void Init()
{
Clear();
}

/// <summary>
/// Cancel all motions.
/// </summary>
public static void Clear()
{
foreach (var playerLoopTiming in playerLoopTimings)
{
Expand Down

0 comments on commit 1c09724

Please sign in to comment.