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

Answer by IMrYoUSeFI

$
0
0
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 didn't help me, because i want to enable a specific object not all of them i used this code and its work var enemyScript = GameObject.FindGameObjectsWithTag("enemy"); enemyScript[3].GetComponent(scriptEnemy).enabled = true; where the number is the object's order in Hierarchy

Viewing all articles
Browse latest Browse all 6

Trending Articles



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