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

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

        myStateMachine.jumpToState(startStateID);
    }
예제 #2
0
    void Start()
    {
        string pushString = FSM_NS.HelperFile.getTextFileFromResource("carFSM");

        myStateMachine = new FSM_NS.FSM(pushString, this);
        myStateMachine.jumpToState(startStateID);
        moveVector = Vector3.forward * speed;
    }
예제 #3
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);
    }