Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

Trying to add a script to a parent?

$
0
0
I am trying to add an instant kill script to an object through a child but I cant find the function that allows me to do it. I have tried giving the parent the script and using 'gameObject.enabled = false;' but it doesnt seem to work. There in an AddComponent function but it adds a component to the child. Any ideas?

Viewing all articles
Browse latest Browse all 302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>