Any reason to use own damage instead of already exisitng HealthEffect.cs?

Is there a reason to using SpawnProjectileEffect.cs own damage config variable instead of already exisitng HealthEffect.cs?

The HealthEffect is immediate. It damages (or heals) as soon as the effect occurs. SpawnProjectile gives responsibilty for the damage to the projectile (when it reaches the target). Therefore, we need to pass to the Projectile the damage that should be done when the projectile reaches it’s target.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms