I do not see anything wrong in that code. Maybe you can look at what GetComponentsInChildren() returns in debug mode to get a hint at the problem.
For this purpose you can change the type of fireEmitters to Component[] to avoid the exception. (and change it back later)
↧