Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. public void changeMaterial1(int testinumero){
  2.   foreach (GameObject ObjectFound in GameObject.FindGameObjectsWithTag("tag_material1")){
  3.     ObjectFound.GetComponent<Renderer>().material = materialList1[testinumero].material;
  4.   }
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement