Question by
DemonGamesLab · Dec 30, 2015 at 03:37 PM ·
c#parsing error
Need help with this code!
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);
Comment
Best Answer
Answer by jmonasterio · Dec 30, 2015 at 04:42 PM
Change line 16 to:
yield return new WaitForSeconds(50);
i figured it out but thanks :) ill answer correct anyway xD happy new year bro
Your answer
Follow this Question
Related Questions
error cs8025 parsing error? 1 Answer
error CS8025: Parsing error 1 Answer
Coding Errors 1 Answer
Unity Parsing Error CS8025 on Last Line? 2 Answers