I have a particle system object that I’m accessing with:
GameObject thrusterfire = GameObject.Find("thrusterfire");
I then try to activate it with:
thrusterfire.particleEmitter.emit = true;
but I get:
MissingComponentException: There is no ‘ParticleEmitter’ attached to the “thrusterfire” game object, but a script is trying to access it. You probably need to add a particleEmitter to the game object “thrusterfire”. Or your script needs to check if the component is attached before using it. Move.Update () (at Assets/Move.cs:27)
Any advice?