Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Video : MonoBehaviour
- {
- public MovieTexture movie;
- //private new AudioSource audio;
- // Use this for initialization
- void Start()
- {
- GetComponent<Renderer>().material.mainTexture = movie as MovieTexture;
- //audio = GetComponent<AudioSource>();
- // audio.clip = movie.audioClip;
- }
- public void MetodoPlay()
- {
- movie.Play();
- //audio.Play();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement