📅  最后修改于: 2022-03-11 14:49:02.496000             🧑  作者: Mango
using UnityEngine.SceneManagement
public class LoadScene : MonoBehavior
{
public string sceneToLoad = "Level2";
public void Start()
{
SceneManager.LoadScene(sceneToLoad);
}
}