// Update is called once per frame void Update() { if (GameObject.FindObjectOfType <NecromancerPhase6>() != null) { BM = GameObject.FindObjectOfType <NecromancerPhase6>(); } if (BM.GetComponent <EnemyHealthManager>().enemyHealth <= 0) { Destroy(gameObject); } }
// Use this for initialization void Start() { BM = GameObject.FindObjectOfType <NecromancerPhase6>(); fightComplete = false; }