在加载场景使用如下代码,前提是有一个slider作为进度的提示
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using System;
using UnityEngine.UI;
public class Loading : MonoBehaviour
{
private float fps = 10.0f;
private float time;
private int nowFram;
AsyncOperation async;
//下一个场景的名字
public