to access parent from child with one-step relation (like Body/Hand) is easy by this simple script {trasform.parent}.but if you dont know the number of steps between GrandParent and GrandChild like (Eagle/Paw/Nail/NailHead or Enemy/Foot/Toe) how can you access the top parent (Grandparent) from bottom child (Grandchild). i mean to access Enemy from Toe.i think it needs a WHILE LOOP , but i dont know how to write it.
Try this
http://docs.unity3d.com/Documentation/ScriptReference/Transform-root.html
I think it’s self-explanatory.