Hello everyone,
I search a way to build a projectile system with impact effect.
Without the spell attached to the projectile, the projectile impact an enemy/an element (wall, tree…) and do damage (i use an interface for that), nothing more.
With a spell the projectile impact something and set an effect/behaviour (teleport on impact, explode on impact, spawn something on impact…).
However i can’t see the best way to implement my effects on impact. My effects are all really differents.
Maybe i can create a method for all the effects then call the method concerned on impact?
Can you help me?