📜  如何在统一 c# 代码示例中按下按钮更改场景

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

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

public class whatever : MonoBehaviour    

public void LoadScene(string SceneName)
{
  SceneManager.LoadScene(SceneName);
}