コード例 #1
0
    void ImitFSM()
    {
        fsm = new FSMSystem();
        FSMState patrolState = new PatrolState(fsm);

        patrolState.AddTranstion(Transition.SeePlayer, StateID.Chase);
        FSMState chaseState = new ChaseState(fsm);

        fsm.AddState(patrolState);
        fsm.AddState(chaseState);
    }