Hey guys, thanks for taking a look at my question. Basically, I am using the
gameObject.Find("Object").GetComponent(Script).enabled=false
thing. I want to disable a script on all instances of a prefab, but this only affects the main object, not everything.
gameObject.FindWithTag
doesn't work either. To sum up, I would like to find a way to disable a component, or this case a script, on all instances of a prefab. Thank you :D.
↧