#pragma strict
function Start () {
}
var timeLength:int =4 ;var nextLevel:int=1 ;private var myTime:int ;function Update () {
myTime+=Time.deltaTime ;if (myTime>timeLength)Application.loadedLevel(nextLevel);
1、检查脚本有没有编译错误?2、变量前面加上public