Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var texture1 : Texture2D;
- var texture2 : Texture2D;
- var change : boolean = true;
- function Start() {
- changeTexture();
- }
- function Update () {
- }
- function changeTexture () {
- while(change) {
- yield WaitForSeconds(0.5);
- renderer.material.mainTexture = texture1;
- yield WaitForSeconds(0.5);
- renderer.material.mainTexture = texture2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement