- Home /
Question by
xtplpune · May 09, 2012 at 02:03 PM ·
particlesystem
how to add a script ?
Hi, i created one particle system with soap bubbles. just i want to add one script to each bubble . how can i ? explain me !!! Thank you,
Comment
Answer by Kryptos · May 09, 2012 at 02:23 PM
You can only add scripts (or component in general) to GameObjects. Since a particle is not GameObject you cannot.
Now, if you tell us what you want to achieve, we might give you an alternative.
ya,you are correct!.we can add scripts to GameObjects only. But i want to develop a task like,if i click on any bubble that should be destroy and i want to count,how many bubbles i destroyed.
then each bubble should be a gameobject, dont do that with particle system.