public override AttackResponse Damage(HealthV2.Attack attack) { if (projectileData == null) { return(new AttackResponse(0, AttackResponse.HitResult.None)); } HitData hitData = new HitData() { damageAmount = attack.Damage, attack = attack, self = gameObject }; projectileData.Hit(hitData); return(new AttackResponse(attack)); }
//[SerializeField] public AttackProps attackProps; public virtual AttackResponse Damage(HealthV2.Attack attack) { return(new AttackResponse(attack)); }