Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void changeMaterial1(int testinumero){
- foreach (GameObject ObjectFound in GameObject.FindGameObjectsWithTag("tag_material1")){
- ObjectFound.GetComponent<Renderer>().material = materialList1[testinumero].material;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement