Hello,
I did this tutorial: http://unity3d.com/learn/tutorials/projects/roll-ball-tutorial
All is working fine.
Now I wanted to extend the game by resetting everything (without loading scene again). I can reset the player fine, but I have problems with the Pick Ups gameobjects. I searched for similar problems here and found this solution, which seems good:
GameObject[] gameObjects = GameObject.FindGameObjectsWithTag("Pick Up");
foreach (GameObject item in gameObjects)
{
item.SetActive(true);
}
But it doesn’t work. The Array is empty (tried to use index 1 for example) but the Tag is right, because I also used it for the collision detection. Whats wrong?
(btw: Or is it also possible to speak with the parent of all the Pick Up objects?)
Thanks for help.