示例#1
0
 public InTheAirState()
 {
     jumpState     = new JumpState(this);
     jump2State    = new Jump2State(this);
     inTheAirEvent = new PlayerStateEventData(EventID.InTheAir);
     TransitionState(jumpState, null);
 }
示例#2
0
 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);
 }
示例#3
0
        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);
        }
示例#4
0
 public RunState(OnStandState parentState)
 {
     this.parentState = parentState;
     isRunEvent       = new PlayerStateEventData(EventID.Run);
 }