Fixed Movement Controller not updating the new movement with the old information

This commit is contained in:
Syntriax 2023-01-19 20:13:12 +03:00
parent 57790c4598
commit d11aab596d
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ namespace Syntriax.Modules.Movement
toggleStateOnGameObject.OnToggleStateChanged += (_) => InvokeOnMoveAction(); toggleStateOnGameObject.OnToggleStateChanged += (_) => InvokeOnMoveAction();
ToggleStateMember.OnToggleStateChanged += (_) => InvokeOnMoveAction(); ToggleStateMember.OnToggleStateChanged += (_) => InvokeOnMoveAction();
OnMovementActivated += (newMovement) => newMovement.Move(lastMove);
} }
protected virtual void FixedUpdate() protected virtual void FixedUpdate()