gameobject.find

i am trying to find the child object of a gameobject with a different name each load.

so i am using

gameObject.find(“dinner/hunger”).

but dinner needs a different name each cycle so i need something that looks like this

var dish : int = 0;

gameObject.Find(“dinner”+dish “/hunger”);

but i cant work out where to put the child part /hunger any ideas

doesnt matter i worked it out i accidently deleted a letter and it messed me up but here is the code to find a gameobject with a changable end name and find the child of that object.

var dish : int = 0;

gameObject.Find(“dinner”+dish+“breakfast”)//object.var.child of object

var dish : int = 0;