Hello,
I am currently undertaking the RPG Course Lesson - Destroy The Unwanted.
I am using a different particle effect/prefab for hit effects than the one used in the lecture and I am unsure how to tackle my current problem.
I have a prefab setup as the master hit effect for projectiles - I was planning to leave the master prefab empty except for theh DestoryAfterEffect script and then create variants that feature different hit effect prefabs within them.
The problem I am facing is that when the DestroyAfterEffect script tries to get Component it fails because there is no ParticleSystem on the master prefab.
Additionally, if I place my custom particle prefabs directly onto the master prefab instead of a variant - I still encounter issues because the prefab(s) I am using for Particle Hit Effects have multiple particle systems attached to an empty game object.
How can I modify the DestroyAfterEffect script to search/scan/find the particle systems stored as child of the prefab gameobject?
Is this a sensible way to approach this?
Is this covered at a later point in the series or do we stick to the basic one particle system prefab?
Any pointers would be appreciated.