Quantcast
Viewing all articles
Browse latest Browse all 6

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

Viewing all articles
Browse latest Browse all 6

Trending Articles