123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class SceneSwitcher : MonoBehaviour
- {
- //public string fromScene;
- //public string toScene;
- public int sceneId;
- // Start is called before the first frame update
- void Start()
- {
- // SceneManager.UnloadSceneAsync(SceneManager.GetActiveScene());
- SceneManager.LoadScene(sceneId);
- //Application.LoadLevel(sceneId);
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
|