public SpiderAIActionsBaseState(SpiderBlackboard bb) : base(bb)
    {
        spiderBlackboard = bb;

        spiderBiteExecutor = new SpiderBiteExecutor();
        spiderBiteExecutor.Init(spiderBlackboard);

        spiderInfectExecutor = new SpiderInfectExecutor();
        spiderInfectExecutor.Init(spiderBlackboard);
    }
Exemplo n.º 2
0
    public AIBaseState(MonoBehaviour p)
    {
        parent = p;
        agent = parent.GetComponent<NavMeshAgent>();

        selectExecutor = new SelectTargetExecutor();
        selectExecutor.Init(this);
        lookAtExecutor = new LookAtExecutor();
        lookAtExecutor.Init(this);
        moveExecutor = new MoveActionExecutor();
        moveExecutor.Init(this);
        spiderBiteExecutor = new SpiderBiteExecutor();
        spiderBiteExecutor.Init(this);

    }