maint: add demo world loader

This commit is contained in:
Chris
2026-01-16 20:21:54 -05:00
parent 6a5b8dedcb
commit fa61a3aec6
3 changed files with 181 additions and 14 deletions

View File

@@ -0,0 +1,22 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DemoWorldLoader : MonoBehaviour{
public List<string> scenesName;
void Start()
{
foreach (string thisScene in scenesName) {
if (!SceneManager.GetSceneByName(thisScene).isLoaded) {
SceneManager.LoadScene(thisScene, LoadSceneMode.Additive);
}
}
}
// Update is called once per frame
void Update()
{
}
}