using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Runtime.InteropServices; using UnityEngine.SceneManagement; public class homeScript : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void SetScene(string type) { if (type == "1") { SceneManager.LoadScene("light"); } else if (type == "2") { SceneManager.LoadScene("police"); } else if (type == "3") { SceneManager.LoadScene("pay"); } else if (type == "4") { SceneManager.LoadScene("necklace"); } else if (type == "5") { SceneManager.LoadScene("door"); } else if (type == "6") { SceneManager.LoadScene("curtain"); } } }