How can I have the enemies die when they fall through world?

I have a script where the scene goes to the next scene when all enemies have died.

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class Enemy : MonoBehaviour
// Number of enemies alive
private static int aliveCounter = 14;

void Start()

void OnKilled()

    if (aliveCounter == 0)


But some of them don’t die and fall through the game world which means the player can never advance. Rather that go on some massive collider hunt I’d rather just kill those enemies who fall through the world. Any idea what code I can attach to this script to make that happen?


If their transform.position.y < 0.0f, kill them! If it goes below the lowest point of the terrain, then they should die! You would have to check that in a FixedUpdate probably to save some memory, but it would kill them!

public GameObject enemies;
public float lowestY = -100f;

void FixedUpdate(){
    for(int i =0; i < enemies.Length; i++){
        if(enemies*.transform.position.y <= lowestY)*

//Finish him!