赞
踩
using UnityEngine;
using System.Collections;
public class StartScreenGUI : MonoBehaviour {
private AsyncOperation asyncOpe;
void Start(){
asyncOpe = Application.LoadLevelAsync( "Play" );
asyncOpe.allowSceneActivation = false; //是否允许场景激活
}
void Update(){
if( asyncOpe.isDone == true ){
Debug.Log("Loaded");
}else{
Debug.Log(" progress = " +asyncOpe.progress);
}
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。