Hi!
Just wanted to know how to change the tag of an object via another object. All I’m able to do is to change the tag of the object who has the script.
In my example, I want to always have the first bone in my array to get the tag “FirstBone”.
if (checkBones.Length > 0) {
firstBone = checkBones [0];
transform.gameObject.tag = "FirstBone";
if (bonesTaken == false) {
target = firstBone.transform.position;
agent.SetDestination (target);
}
}