how to find gameobject and use it in unity code example
Example 1: unity gameobject.find
GameObject obj = GameObject.Find("/Parent/Child/ChildOfChild");
Example 2: unity get object by name
function Update() { var enemy : GameObject = GameObject.Find("enemy"); //perform operations on enemy here}