Hello!
I have a script that is suppossed to find all objects in the scene with the tag "Bar"
and change a variable of the script that they have. But it doesn't work. Any help?
var baricades = GameObject.FindGameObjectsWithTag("Bar");
var theScript = baricades.GetComponent("Js_Bars");
theScript.hitted = true;
↧