int attackInfoIndex; //current BehaviorAttack Index private void OnEnable() { hitBox = target as HitBox; ActorController controller = hitBox.GetComponentInParent <ActorController>(); behaviorList = controller?.model?.behaviors; }