private void OnTriggerStay(Collider other) { //Debug.Log(other.name); if (other.gameObject.GetComponent <HurtBox>()) { HurtBox hbox = other.gameObject.GetComponent <HurtBox>(); if (hbox.side != side) { hbox.GetHurt(damage * Time.deltaTime); } } }