1
0
Files
Unity-Essentials-Pathway/Assets/_Unity Essentials/Source Files/Scripts/LoadSceneByIndex.cs
T
LupiNexMedia f84f5c592b initial commit
2026-04-28 09:32:03 +02:00

12 lines
261 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
public class LoadSceneByIndex : MonoBehaviour
{
// General method to load scenes based on build index
public void LoadScene(int sceneIndex)
{
SceneManager.LoadScene(sceneIndex);
}
}