// Use this for initialization protected void Start() { // Setup references // Get all enemies in this formation foreach (GameObject enemy in AuxFunctions.FindChildrenWithTag(transform.FindChild("Ships").transform, "Enemy")) { enemies.Add(enemy); } // Setup variables numOfEnemies = enemies.Count; initialNumOfEnemies = enemies.Count; }