public override void OnEnterState(CharacterStateMachineStates lastState) { base.OnEnterState(lastState); controller.SetControl(controller.normalControl); controller.SetSpeed(controller.walkSpeed); }
public override void OnEnterState(CharacterStateMachineStates lastState) { base.OnEnterState(lastState); enterTime = Time.time; controller.SetControl(controller.jumpControl); }
public override bool CanEnter(CharacterStateMachineStates lastState) { if (controller.IsGrounded() == false && lastState != CharacterStateMachineStates.Falling) { return(false); } return(base.CanEnter(lastState)); }
public override void OnExitState(CharacterStateMachineStates nextState) { base.OnExitState(nextState); }
public override void OnEnterState(CharacterStateMachineStates lastState) { base.OnEnterState(lastState); enterTime = Time.time; }
public override bool CanEnter(CharacterStateMachineStates lastState) { return(base.CanEnter(lastState)); }
public override void OnEnterState(CharacterStateMachineStates lastState) { base.OnEnterState(lastState); controller.SetSpeed(controller.sprintSpeed); }