I need to find the GuiTexture connected to the child of “var closest” and return it to “var myGui”.
Any ideas?
My starting point:
var closest : Transform;
var myGui : GUITexture;
.....
function Update () {
myGui = GameObject.Find("Target_enemy").guiTexture;
}