communicate between parent and child scripts

so, lets say i make an object named "creature" that has an empty object inside it but with a sphere collider attached that function as a radar...

i attach 2 scripts, one on parent and another on child:

creature.js (parent)

var target;

radar.js (child)

if enemy collides with collider
     parent.target = enemy <- here, how do i point to his parent script?

thanks!

found it :D

transform.parent.gameObject.GetComponent(creature).target

where:

transform.parent.gameObject // is parent object
GetComponent(creature) // script that i want to access
target // my var 

what about if i have many subobjects? and i want to go from parent to child? do i have to search the child name?