private void OnTriggerEnter2D(Collider2D other) { EntityStats entityStats = other.GetComponent <EntityStats>(); if (entityStats && EntityRuntimeSet.DetectArrayOverlap(hostileTo, entityStats.myEntitySets) && entityStats != owner) { OnHitEntity?.Invoke(); if (onHitShake) { //Debug.Log("Shaking"); Shaker.ShakeAll(onHitShake); } if (onHitSound) { EazySoundManager.PlaySound(onHitSound, 0.13f); } ApplyDamage(entityStats); if (owner != null) { owner.ChangeMana(manaReplenishAmount); } } }