private bool OverlapAttack_Fire(On.RoR2.OverlapAttack.orig_Fire orig, OverlapAttack self, List <HurtBox> hitResults) { bool didAHit = orig(self, hitResults); HitboxGroupRevealer hitboxGroupRevealer = _hitboxGroupRevealers.Find((revealer) => { return(revealer != null && revealer.hitboxGroup == self.hitBoxGroup); }); if (hitboxGroupRevealer == null) { hitboxGroupRevealer = self.hitBoxGroup.gameObject.AddComponent <HitboxGroupRevealer>(); _hitboxGroupRevealers.Add(hitboxGroupRevealer); hitboxGroupRevealer.init(self.hitBoxGroup, _hitboxBoxPrefab, self.attacker); } hitboxGroupRevealer.reveal(true); return(didAHit); }
public void removeHitBoxGroupRevealer(HitboxGroupRevealer rev) { _hitboxGroupRevealers.Remove(rev); }