24 lines
832 B
C#
Raw Normal View History

2025-08-27 13:49:26 +05:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Levels/Level Config")]
public class LevelConfig : ScriptableObject
{
[Header("Objectives")]
[TextArea] public List<string> objectives = new List<string>();
[Tooltip("Which objective should be shown first")]
public int startObjectiveIndex = 0;
[Tooltip("Auto-advance the HUD to next objective when one is completed")]
public bool autoAdvanceOnComplete = true;
[Tooltip("Index in 'objectives' that represents 'Clear all waves' (set -1 to skip)")]
public int clearWavesObjectiveIndex = -1;
[Header("Waves (optional)")]
[Tooltip("If assigned, Level1 will push these into the WaveSpawner at runtime")]
public WaveSpawner.Wave[] waves;
public float timeBetweenWaves = 3f;
}