// Use this for initialization
    void Start()
    {
        AngleRads = Mathf.Deg2Rad * Angle;

        Radius = 200;

        VisibleConePoints           = new LinkedList <Vector2>();
        visibleGameobjects          = new List <GameObject>();
        targetsAux                  = new List <GameObject>();
        visibleGameobjects.Capacity = 50;
        Objects               = new List <GameObject>();
        whatToDoScript        = this.GetComponent <DecisionTreeISeeSomeoneWhatShouldIDo>();
        decisionTargetScript  = this.GetComponent <DecisionTarget>();
        movementController    = GameObject.FindGameObjectWithTag("GameController").GetComponent <BehaviourAdder>();
        whatToDoScript        = this.GetComponent <DecisionTreeISeeSomeoneWhatShouldIDo>();
        Objects               = VisibleElements.visibleGameObjects;
        objecthand            = this.GetComponent <ObjectHandler>();
        personality           = this.GetComponent <AIPersonality>();
        rememberedObject      = new GameObject();
        rememberedObject.name = "rememberedObjectPosition";
    }
Exemplo n.º 2
0
 void Start()
 {
     behaviourController = GameObject.FindGameObjectWithTag("GameController").GetComponent <BehaviourAdder>();
     movementScript      = GetComponent <AgentPositionController>();
     objectHandlerPlayer = this.GetComponent <ObjectHandler>();
 }