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(); } }
public virtual void Awake() { vehicle = GetComponent <EnemyAnimal>(); }