Example #1
0
        public WIPStateMachine(StationaryLocomotion locomotion, WalkInPlace wip)
        {
            m_WIPState = new WIPState(this, locomotion, wip);
            m_States   = new WIPPhase[]
            {
                new Stationary(m_WIPState),
                new BeginUpMove(m_WIPState),
                new TurnDirection(m_WIPState),
                new BeginDownMove(m_WIPState),
                new EndStep(m_WIPState),
                new SmoothEndStep(m_WIPState),
            };

            m_Current = m_States[0];
        }
Example #2
0
 public WIPState(WIPStateMachine stateMachine, StationaryLocomotion locomotion, WalkInPlace wip)
 {
     this.stateMachine = stateMachine;
     this.locomotion   = locomotion;
     this.walkInPlace  = wip;
 }