Using [GameObject.FindGameObjectsWithTag][1], how can I set ALL of the gameObjects with a specific tag inactive?
[1]:http://docs.unity3d.com/Documentation/ScriptReference/GameObject.FindGameObjectsWithTag.html
e.g:
if(Input.GetKeyDown(KeyCode.Q))
{
(all gameobjects with tag "PrimaryWeapon").SetActive(false);
}
in C#
someone can help?
↧