Hi, this is my enemy:
Enemy1 (gameobject with rigidbody,
collider, AI scripts etc)
-> Armature (child1)
-> the mesh (skinned mesh
renderer & material) (child2)
so the question is... how i can change the color of the enemy material when i hit him?
i have tried this... http://answers.unity3d.com/questions/16548/make-enemy-flash-when-hit.html
but obviously does not work because the material is in a child, so how i can do it? or how i should do it?
sorry for my english & thank you!
↧