24 lines
832 B
C#
24 lines
832 B
C#
|
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;
|
||
|
|
||
|
}
|