Hi!
I'm quite new to coding so maybe its a dumb question but I have a problem accessing child in different object than the one with the script. I have something like this:
public class gameManagerScript : MonoBehaviour {
public GameObject podsumowanieStatystyk;
public void Potwierdzenie ()
{
podsumowanieStatystyk.transform.GetChild (0).gameObject.SetActive (true);
}
}
Of course I have the object dragged in space for podsumowanieStatystyk game object. Can you tell me what I did wrong here?
↧