Benefit of creating a new script when you can Destroy the vfx on collision?

I simply added Detroy(vfx, 1.3f); directly after destroying the enemy object.

This works and I don’t see any issues with it. Am I missing something here?

Hi percipio,

Welcome back to our community! :slight_smile:

In many cases, there are multiple ways to make something work in Unity, and Rick cannot show all of them. If your code works, it’s a solution by definition.

Even if there is a problem with your solution, I’m sure you’ll be able to solve it. Until then, don’t worry about problems with your solution because you tested your code, and it seems to be working as intended.


See also:

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

Privacy & Terms