So i made a Cutscene with the Cutscene editor.
In The User’s Manual says that i need to put:
scene.PlayCutscene();
to play the Cutscene.
But i get an error:
Unknown identifier: 'scene'.
Some help or advice would be great.
So i made a Cutscene with the Cutscene editor.
In The User’s Manual says that i need to put:
scene.PlayCutscene();
to play the Cutscene.
But i get an error:
Unknown identifier: 'scene'.
Some help or advice would be great.
scene refers to the Cutscene gameobject :
var scene : GameObject;
function Update () {
if(Input.GetKeyDown("space"))
scene.GetComponent("Cutscene").PlayCutscene();
}
thanks