public Slider progressSlider;//进度条
public Text ProgressSliderText;//进度条进度显示文字
private int nowProcess;//当前加载进度
private AsyncOperation async;
void Start()
{
StartCoroutine("LoadScene",1);
}
//异步加载scene
IEnumerator LoadScene(int sceneId)
{
async = SceneManager.LoadScene