private void OnTriggerStay(Collider other) { Hurtbox Damaged; Damaged = other.GetComponent <Hurtbox>(); Damaged.GetHit(1); }
private void OnTriggerEnter(Collider other) { Hurtbox Damaged; Damaged = other.GetComponent <Hurtbox>(); Damaged.GetHit(1); Destroy(transform.parent.gameObject); }