Running a Different Color ball

Suppose i have a four color ball which are red,yellow,green.blue.I have created a game object which name is “Colored Ball” and made those color ball child of the “Colored Ball” object.Now i add a script to the Colored Ball object. the script is

void Update () { //Rotate thet transform of the game object this is attached to by 45 d float step = m_Speed * Time.deltaTime; transform.position=Vector3.MoveTowards(transform.position,target.position, step);

}

Now when i run this on unity only red ball is shown but other color does not show.

Check your child objects positions by ie. Debug.Log(). If you see the color ball objects in the Editor, and you are not changing their positions anywhere else, you should somehow be able to see them.