void OnTriggerExit(Collider other) { if (other.tag == "Hostile") { score.AddMiss(); } Destroy(other.gameObject); Debug.Log("object destroyed", this); }