Exemplo n.º 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];
        }
Exemplo n.º 2
0
 public void Awake()
 {
     m_Locomotion = GetComponent <StationaryLocomotion>();
 }
Exemplo n.º 3
0
 public void Awake()
 {
     locomotion   = GetComponent <StationaryLocomotion>();
     stateMachine = new WIPStateMachine(locomotion, this);
 }
Exemplo n.º 4
0
 public WIPState(WIPStateMachine stateMachine, StationaryLocomotion locomotion, WalkInPlace wip)
 {
     this.stateMachine = stateMachine;
     this.locomotion   = locomotion;
     this.walkInPlace  = wip;
 }