I got my script to play a video when the scene starts, but how to I get it to load a new scene when it ends?
using UnityEngine;
using System.Collections;
[RequireComponent (typeof(AudioSource))]
public class MyMovie : MonoBehaviour {
// Use this for initialization
void Start () {
Renderer r = GetComponent<Renderer>();
MovieTexture myMovie = (MovieTexture)r.material.mainTexture;
GetComponent<AudioSource>().clip = myMovie.audioClip;
GetComponent<AudioSource>().Play ();
myMovie.Play ();
}
// Update is called once per frame
void Update () {
}
}