Пример #1
0
 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;
         }
     }
 }
Пример #2
0
        float timer;                                // Timer for counting up to the next collect.


        void Start()
        {
            // Setting up the references.
            foragerCapacity = GetComponentInParent <ForagerCapacity> ();
            foragerMemory   = GetComponentInParent <ForagerMemory> ();
        }
 void Awake()
 {
     foragerMemory   = GetComponent <ForagerMemory>();
     foragerMovement = GetComponent <ForagerMovement>();
     foragerExplore  = GetComponent <ForagerExplore>();
 }
Пример #4
0
 void Awake()
 {
     // Setting up the references.
     foragerMemory = GetComponent <ForagerMemory> ();
 }
Пример #5
0
 void Start()
 {
     foragerMemory = GetComponentInParent <ForagerMemory> ();
 }