void Start() { string pushString = FSM_NS.HelperFile.getTextFileFromResource("carFSM"); myStateMachine = new FSM_NS.FSM(pushString, this); myStateMachine.jumpToState(startStateID); moveVector = Vector3.forward * speed; }
void Start() { string pushString = FSM_NS.HelperFile.getTextFileFromResource("testFSM"); myStateMachine = new FSM_NS.FSM(pushString, this); myStateMachine.jumpToState(startStateID); }
void Start() { ani = GetComponent <Animator>(); string pushString = FSM_NS.HelperFile.getTextFileFromResource("walkerFSM"); myStateMachine = new FSM_NS.FSM(pushString, this); currentState = myStateMachine.state.name; moveVector = Vector3.forward * speed; //new Vector3(gameObject.transform.position.x,gameObject.transform.position.y,gameObject.transform.position.z); }
void Start() { listners = new List <GameObject>(); yellowLight.SetActive(false); greenLight.SetActive(false); string pushString = FSM_NS.HelperFile.getTextFileFromResource("lightFSM"); myStateMachine = new FSM_NS.FSM(pushString, this); myStateMachine.jumpToState(startStateID); }