protected override void Start() { if ((carrier != null && !carrier.Equals(null)) && carrier.GetIsInitialized()) { spawnPoint = carrier.GetSpawnPoint(); } transform.position = spawnPoint; // initialize instance fields base.Start(); // base start ai = GetAI(); if (ai && ai.getMode() == AirCraftAI.AIMode.Inactive) { if (sectorMngr.GetCurrentType() == Sector.SectorType.BattleZone) { ai.setMode(AirCraftAI.AIMode.Battle); } else { ai.setMode(AirCraftAI.AIMode.Inactive); } ai.allowRetreat = true; } }