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