///<sumarry>
        /// Actions to perform when the scripts wakes up
        /// </summary>

        private void Awake()
        {
            AircraftAgents = transform.GetComponentsInChildren <AircraftAgent>().ToList();
            Debug.Assert(AircraftAgents.Count > 0, "No AircraftAgents found");

            AircraftAcademy = FindObjectOfType <AircraftAcademy>();
        }
Exemplo n.º 2
0
        //<summary>
        //Actions to perform when the script wakes up
        //</summary>

        private void Awake()
        {
            {
                //Find all aircraft agents in the area
                AircraftAgents = transform.GetComponentsInChildren <AircraftAgent>().ToList();
                Debug.Assert(AircraftAgents.Count > 0, "No AircraftAgents found");

                //Finds aircraftAcademys for us so we dont have to enter the manually
                AircraftAcademy = FindObjectOfType <AircraftAcademy>();
            }
        }