public IEnumerator endCombat() { //Activate at the end of combat isInCombat = false; //May generate loot monster.endCombat(); metronome.endCombat(); for (int i = 0; i < nodes.Length; i++) { nodes[i].endCombat(); } yield return(new WaitForSeconds(1f)); _c.enabled = false; gameObject.SetActive(false); _GM.endCombat(_s.getHp() > 0); }