using UnityEngine;
using System.Collections;
public class PlayFilm2 : MonoBehaviour {
// Use this for initialization
void Start ()
{
// This first line is to play the movie!
((MovieTexture)GetComponent<Renderer>().material.mainTexture).Play();
}
//This line is to go to the next scene once the movie has finished playing!
function Start ()
{
renderer.material.mainTexture.Play ();
while (renderer.material.mainTexture.isPlaying)
yield WaitForSecond = (50);
Application.LoadLevel("first scene of (the fallen ones)");
}
// Update is called once per frame
void Update () {
}
}
the code to play the movie is fine, but the function start code has a parser error i tried everything? im pretty new to scripting and so i cant figure it out? this part to be exact, yield WaitForSecond = (50);