I am trying to use particle collision to take health away from some human gameobjects. My code is:
function OnParticleCollision (other : GameObject) { if (other == GameObject.Find("Human")) { human = other; human.GetComponent("humanHealth").health -= 1; } }
I have multiple gameobjects called "Human" but when I play the game the particles can only interact with one of them, and will not change the health of the others. Any help is very much appreciated.