Hi
I have an array of materials which I can assign in the inspector. I was wondering is there a way to have each element of the built in array change the tag of the gameobject its attached to.
This will not compile but its just an example of what I want to achieve.
colourChanges [1] = gameObject.tag == "blueEnemy";
I just want each element in the array to change the tag of the gameobject. Is there a way to do this? Any help is greatly appreciated. Thank you for helping me with my uni studies.
↧