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); }
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); }