I'd like all the hotspots to have automatically attached a particle effect.
Moreover I'd like to add them a particle effect to the object that can be taken.
And at last, I'd like the particle effect to disappear when the player takes the object.
What is the best way to implement the above?
a - automatically add a particle effect to all hotspots
b - add another particle effect to be fired when player takes one object
c - disable the particle effect if the object is taken/removed
Comments
However, you might also be able to simply use the "Object: Add or remove" Action on a prefabbed particle system to load it at runtime without the need to code, and remove it shortly after. You'd have to also use the "Object: Teleport" Action to place it over the Hotspot. Rather than create these series of Actions for each Hotspot, you could create them in an ActionList asset, and parameterise the "Teleport to" field. More on parameters can be found here.