Example #1
0
    void Update()
    {
        for (int i = 0; i < EnemyAnimals.Count; i++)
        {
            EnemyAnimal eA = EnemyAnimals[i];

            for (int j = 0; j < eA.SteeringBehaviours.Length; j++)
            {
                eA.SteeringBehaviours[j].Steer();
            }

            eA.UpdateAnimal();
        }
    }
Example #2
0
 public virtual void Awake()
 {
     vehicle = GetComponent <EnemyAnimal>();
 }