test portal, test hub, animation improvements
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user