Guest User

Untitled

a guest
Jun 25th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void CustomAnimate(GameObject[] TextObject, int nr, Texture[] texture)
  2. {
  3.  
  4. float changeInterval = 0.033f;
  5. float index = (Time.time / changeInterval);
  6. index = index % textures.Length;
  7.  
  8. TextObject[nr].renderer.material.mainTexture = texture[(int)index];
  9.  
  10. }
Add Comment
Please, Sign In to add comment