public void StopClimb() { MonoStateMachine stateMachine = GetComponent <MonoStateMachine>(); stateMachine.DoTransition(mvment); }
public void StartClimb() { MonoStateMachine stateMachine = GetComponent <MonoStateMachine>(); stateMachine.DoTransition(GetComponent <ClimbUpDownState>()); }