using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Level : MonoBehaviour { public LevelConfig config; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public virtual void OnLevelStart() { if (config != null && ObjectiveManager.Instance != null) { ObjectiveManager.Instance.SetList(config.objectives, config.startObjectiveIndex); ObjectiveManager.Instance.autoAdvanceOnComplete = config.autoAdvanceOnComplete; } } public virtual void OnLevelEnd() { } }