为移动状态添加RootMotion使用,并兼容原先的模式 首先添加启用RootMotion的控制量,只有在config中勾选了ApplyRootMotionForMove才会将实际的RootMotion逻辑添加到Action事件中,在Exit时也添加判断逻辑。 private bool ApplyRootMotionForMove; public override void Init(IStateMachineOwner owner, int stateType, StateMachine stateMachine) { base.Init(owner, stateType, stateMa...