コード例 #1
0
    public override bool ExecuteState(FSM fsm)
    {
        if (!isInit)
        {
            fSM    = fsm as AiFSM;
            isInit = OnStartState();
        }

        if (OnExecuteState() || ForceQuit)
        {
            fSM.ChangeState(AiFSM.AiStates.WAIT_FOR_TURN);
            return(OnEndState());
        }

        return(false);
    }