Quantcast
Channel: Answers for "Enable/Disable multiple objects attached to one script"
Browsing latest articles
Browse All 6 View Live

Answer by Slobdell

Even though it's the same script there is going to be a seperate instance for each gameobject it's attached to. So then you can just get the script from each individual enemy and change them...

View Article


Answer by xKroniK13x

As Slobdell said, each script will have another instance. This is a way to disable/enable all of the objects... function DisableObjects() { var objectsDisabling : GameObject[]; objectsDisabling =...

View Article


Answer by IMrYoUSeFI

I know this method, It didnt work the other script cant find enemy script because the entire objet is disable, I am thinking about disable the enemy script and enable it And in other case this method...

View Article
Browsing latest articles
Browse All 6 View Live


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