예제 #1
0
        public override void OnEnterState(CharacterStateMachineStates lastState)
        {
            base.OnEnterState(lastState);

            controller.SetControl(controller.normalControl);
            controller.SetSpeed(controller.walkSpeed);
        }
예제 #2
0
        public override void OnEnterState(CharacterStateMachineStates lastState)
        {
            base.OnEnterState(lastState);

            enterTime = Time.time;

            controller.SetControl(controller.jumpControl);
        }
예제 #3
0
        public override bool CanEnter(CharacterStateMachineStates lastState)
        {
            if (controller.IsGrounded() == false && lastState != CharacterStateMachineStates.Falling)
            {
                return(false);
            }

            return(base.CanEnter(lastState));
        }
예제 #4
0
 public override void OnExitState(CharacterStateMachineStates nextState)
 {
     base.OnExitState(nextState);
 }
예제 #5
0
 public override void OnEnterState(CharacterStateMachineStates lastState)
 {
     base.OnEnterState(lastState);
     enterTime = Time.time;
 }
예제 #6
0
 public override bool CanEnter(CharacterStateMachineStates lastState)
 {
     return(base.CanEnter(lastState));
 }
예제 #7
0
        public override void OnEnterState(CharacterStateMachineStates lastState)
        {
            base.OnEnterState(lastState);

            controller.SetSpeed(controller.sprintSpeed);
        }