示例#1
0
 public void Init(IFsmTransitionHelper infoProvider)
 {
     AddState(MovementState.CreateIdleState(), infoProvider);
     AddState(MovementState.CreateWalkState(), infoProvider);
     AddState(MovementState.CreateRunState(), infoProvider);
     AddState(MovementState.CreateSprintState(), infoProvider);
     AddState(MovementState.CreateDiveMoveState(), infoProvider);
     _resetParam = ResetMovement;
 }
示例#2
0
 public void Init(IFsmTransitionHelper infoProvider, ICharacterInfoProvider characterInfo)
 {
     AddState(MovementState.CreateIdleState(), infoProvider, characterInfo);
     AddState(MovementState.CreateWalkState(), infoProvider, characterInfo);
     AddState(MovementState.CreateRunState(), infoProvider, characterInfo);
     AddState(MovementState.CreateSprintState(), infoProvider, characterInfo);
     AddState(MovementState.CreateDiveMoveState(), infoProvider, characterInfo);
     AddState(MovementState.CreateEnterLadderState(), infoProvider, characterInfo);
     AddState(MovementState.CreateLadderMoveState(), infoProvider, characterInfo);
     AddState(MovementState.CreateExitLadderState(), infoProvider, characterInfo);
     _resetParam = ResetMovement;
 }