Quantcast
Channel: Answers for "Enable/Disable multiple objects attached to one script"
Viewing all articles
Browse latest Browse all 6

Answer by Slobdell

$
0
0
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 independent of each other. For C#.. EnemyScript script = enemy.getComponent(); script.enable = true;

Viewing all articles
Browse latest Browse all 6

Trending Articles



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