private void OnDamageDealt(DamageDealtParameters obj) { if (obj.hitParameters.transform != _registry.Player?.transform) { _floatingTextFactory.Create(new FloatingTextSpawnParameters(obj.hitParameters.transform.position, Mathf.RoundToInt(obj.damage))); } }
private void OnDamageTaken(DamageTakenArgs obj) { _floatingTextFactory.Create(new FloatingTextSpawnParameters(_registry.Player.Position, Mathf.RoundToInt(obj.damage), true)); }