Esempio n. 1
0
 public OnStandState(OnGroundState parentSate)
 {
     this.parentSate = parentSate;
     idleState       = new IdleState(this);
     runState        = new RunState(this);
     walkState       = new WalkState(this);
     TransitionState(idleState, null);
     EventManager.Register(this, EventID.HalfFoot);
 }
Esempio n. 2
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);
        }