I have three gameobject(G1,G2,G3) and I have set their tag name as "enemy".And I have another gameobject(Manager) where I have attached the script and I have a button when I click on the button the script in all the three gameobjects should be disabled .But the problem is that ,the script is disabled for only one gamobject.
public void ArrowIndicatorInvisible()
{
GameObject.FindWithTag ("enemy").GetComponent<MessageScript>().enabled=false;
}
What will be issue.Can anybod help me solving it