The particles that I wish to change color are attached to a game object and have all the other necessary components such as the animator and renderer. Here is how I am coding it:
Apparently, the condition comparing the first element of the colorAnimation of the ParticleAnimator component is not white, when i know that it is..What could be the problem?
I also tried GetComponent().colorAnimation.Equals(Color.white); and that did not help either.
Are you sure it's white? Color.white is Color(1.0, 1.0, 1.0, 1.0) and you could be using Color(1.0, 1.0, 1.0, 0.0) or something.
answered Apr 27 '11 at 05:52 AM