📜  改变场景统一 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.496000             🧑  作者: Mango

代码示例3
using UnityEngine.SceneManagement


public class LoadScene : MonoBehavior
{
    public string sceneToLoad = "Level2";
    
    public void Start()
    {
        SceneManager.LoadScene(sceneToLoad);
    }
}