public IEnumerator ChangeTarget(Airship oldTarget) { yield return(new WaitForSeconds(changeTargetIfHiddenTime)); if (turret.Target == oldTarget && turret.TargetHidden) // controll that turrent did not change the target and target is still hidden { List <Airship> enemies = enemyList.GetEnemies().GetRange(0, enemyList.GetEnemies().Count); enemies.Remove(oldTarget); turret.TargetHidden = false; SearchNearestTarget(enemies.ToArray()); } }