I want the sword object and all of its children to change tags, but for some reason it won't work. It's probably some obvious problem and I just don't see it.
function OnMouseUp()
{
var sword = GameObject.FindGameObjectsWithTag("Unequiped");
sword.tag = "Equiped";
}
↧