📜  场景管理器 c# 代码示例

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

代码示例1
using UnityEngine;
using UnityEngine.SceneManagement;

public class ExampleScript: MonoBehaviour
{
     public string Scene; // Put int the Name of the scene you want to load :)
     // Active when the game/app starts :)
    void Start()
    {          
    SceneManager.LoadScene(Scene);

    }