Refactor scene management, Enable wasd movement, Add level menu

This commit is contained in:
2024-09-08 22:06:14 +02:00
parent 3357191134
commit d7eb1e65d2
32 changed files with 6964 additions and 2406 deletions

View File

@@ -6,6 +6,9 @@ using UnityEngine;
[CreateAssetMenu(fileName = "Level", menuName = "Data/Level")]
public class Level : ScriptableObject
{
[SerializeField]
public string levelName;
[SerializeField]
public int health = 10;
@@ -17,4 +20,18 @@ public class Level : ScriptableObject
[SerializeField]
public Wave[] waves = new Wave[0];
[SerializeField]
[ReadOnly]
public string sceneName;
#if UNITY_EDITOR
public UnityEditor.SceneAsset SceneAsset;
private void OnValidate()
{
sceneName = SceneAsset?.name;
}
#endif
}