using System.Collections;
[RequireComponent(typeof(AudioSource))]
public class movtex : MonoBehaviour {
public MovieTexture myMovie;
// Use this for initialization
void Start () {
Debug.Log ("start intro");
GetComponent<Renderer>().material.mainTexture = myMovie;// Get movie
myMovie.Play ();// play movie
}
void Update(){
myMovie.loop =true;
}
}
0 komentar:
Posting Komentar