List <string> GetSceneNames(SceneConfig config) { var sceneNames = new List <string>(); foreach (var scene in sceneConfigData.universalScenes) { sceneNames.Add(scene.value); } sceneNames.Add(config.uniqueScene.value); foreach (var scene in config.supportingScenes) { sceneNames.Add(scene.value); } return(sceneNames); }
SceneConfig GetSceneConfig() { SceneConfig uniqueSceneFound = null; SceneConfig defaultSceneFound = null; foreach (var config in sceneConfigData.sceneConfigurations) { if (activeScenes.Contains(config.uniqueScene.value)) { uniqueSceneFound = config; break; } if (config.isDefaultStartingScene) { defaultSceneFound = config; } } return(uniqueSceneFound == null ? defaultSceneFound : uniqueSceneFound); }