private void OnTriggerStay(Collider other) { if (!isPunching || !canHit) { return; } var box = other.GetComponent <BoxController>(); if (box) { if (owner.ValidatePunch(box)) { canHit = false; } } }