Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CustomAnimate(GameObject[] TextObject, int nr, Texture[] texture)
- {
- float changeInterval = 0.033f;
- float index = (Time.time / changeInterval);
- index = index % textures.Length;
- TextObject[nr].renderer.material.mainTexture = texture[(int)index];
- }
Add Comment
Please, Sign In to add comment