private void Awake() { //gets the scene's pathgrid pathGrid = GameObject.Find("PathManager").GetComponent <PathGrid>(); //add this formation ot the list of formations participating in the battle army.AddFormation(this); }