예제 #1
0
    void SetReferences()
    {
        ResourcesDataControllerRef = GameObject.Find("GameManager").GetComponent <ResourcesDataController>();
        _agentsParent       = GameObject.Find("Agents");
        _agentTargetsParent = GameObject.Find("AgentsTargets");

        AgentMemory = GetComponent <AgentMemory>();

        NeedsManager = GetComponent <AgentNeedsManager>();

        StateMachineRef = GetComponent <AgentStateMachine>();

        DecisionMaker = GetComponent <AgentDecisionMaker>();
    }
예제 #2
0
 private void Awake()
 {
     agentMemory = GetComponent <AgentMemory>();
 }