예제 #1
0
    void Start()
    {
        string pushString = FSM_NS.HelperFile.getTextFileFromResource("carFSM");

        myStateMachine = new FSM_NS.FSM(pushString, this);
        myStateMachine.jumpToState(startStateID);
        moveVector = Vector3.forward * speed;
    }
예제 #2
0
    void Start()
    {
        string pushString = FSM_NS.HelperFile.getTextFileFromResource("testFSM");

        myStateMachine = new FSM_NS.FSM(pushString, this);

        myStateMachine.jumpToState(startStateID);
    }
예제 #3
0
    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);
    }
예제 #4
0
    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);
    }