public void UnRegisterMovementScript(IMotionAnimated motion) { if (currentMotion == motion) { currentMotion = null; moveLocked = null; } }
public void RegisterMovementScript(IMotionAnimated motion) { currentMotion = motion; moveLocked = currentMotion.moveAllowed; }