void Awake()
 {
     foragerMemory   = GetComponent <ForagerMemory> ();
     foragerMovement = GetComponent <ForagerMovement> ();
     for (int i = -size; i < size + 1; i++)
     {
         for (int j = -size; j < size + 1; j++)
         {
             wanderpoint[i + size, j + size] = 1;
         }
     }
 }
        float timer;                                            // Timer for counting up to the next collect.

        void Awake()
        {
            // Setting up the references.
            foragerMemory = GetComponentInParent <ForagerMemory> ();
        }
Exemplo n.º 3
0
 void Awake()
 {
     foragerMemory = GetComponentInParent <ForagerMemory> ();
 }
        float timer;                                // Timer for counting up to the next collect.


        void Start()
        {
            // Setting up the references.
            foragerCapacity = GetComponentInParent <ForagerCapacity> ();
            foragerMemory   = GetComponentInParent <ForagerMemory> ();
        }
Exemplo n.º 5
0
 void Start()
 {
     foragerMemory = GetComponentInParent <ForagerMemory> ();
 }
		void Awake () {
			foragerMemory = GetComponent<ForagerMemory>();
			foragerMovement = GetComponent<ForagerMovement>();
			foragerExplore = GetComponent<ForagerExplore>();
			foragerCommunicate = GetComponentInChildren<ForagerCommunicate> ();
		}
 void Awake()
 {
     foragerMemory   = GetComponent <ForagerMemory>();
     foragerMovement = GetComponent <ForagerMovement>();
     foragerExplore  = GetComponent <ForagerExplore>();
 }