Quantcast
Channel: Answers for "Enable/Disable multiple objects attached to one script"
Browsing all 6 articles
Browse latest 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

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 all 6 articles
Browse latest View live




Latest Images