test portal, test hub, animation improvements

This commit is contained in:
2025-09-19 14:49:14 +02:00
parent 9653e67a99
commit 6feee0019a
14 changed files with 51109 additions and 416 deletions

View File

@@ -1,4 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
@@ -11,10 +10,17 @@ namespace Beyond
{
[SerializeField] private List<LevelData> _levelData = new List<LevelData>();
public List<LevelData> LevelDataList => _levelData;
public LevelData GetData(string levelName)
{
return _levelData.FirstOrDefault(x => x.LevelName == levelName);
}
public List<string> GetAllLevelNames()
{
return _levelData.Select(x => x.LevelName).ToList();
}
}
[System.Serializable]
@@ -22,8 +28,8 @@ namespace Beyond
{
public string LevelName;
public string LevelNameToDisplay;
public string DialogueVariableName; // This is used to check if the level is unlocked
public LoadSceneMode LoadSceneMode;
public bool IsUnlocked;
// The "public bool IsUnlocked;" field has been removed.
}
}