void CallBackFunction() { if (thisEnemy.currentHealth <= 0) // only run this if the enemies health if below 0 { thisEnemy.OnDeath(); // call this function in the enemy class Debug.Log("Die"); } }