public InTheAirState() { jumpState = new JumpState(this); jump2State = new Jump2State(this); inTheAirEvent = new PlayerStateEventData(EventID.InTheAir); TransitionState(jumpState, null); }
public RayCheck() { onGroundEvent = new PlayerStateEventData(EventID.OnGround); graspWallEvent = new PlayerStateEventData(EventID.GraspWall); onHeadWallEvent = new PlayerStateEventData(EventID.OnHeadWall); onTopWallEvent = new PlayerStateEventData(EventID.OnTopWall); onHalfFootEvent = new PlayerStateEventData(EventID.HalfFoot); }
public OnCrouchState(OnGroundState parentSate) { this.parentSate = parentSate; crouchWalkState = new CrouchWalkState(this); crouchIdleState = new CrouchIdleState(this); isCrouchingEvent = new PlayerStateEventData(EventID.IsCrouching); EventManager.Register(this, EventID.OnTopWall); TransitionState(crouchIdleState, null); }
public RunState(OnStandState parentState) { this.parentState = parentState; isRunEvent = new PlayerStateEventData(EventID.Run); }