35 lines
721 B
C#
Raw Normal View History

2025-08-22 20:43:18 +05:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Level : MonoBehaviour
{
2025-08-27 13:49:26 +05:00
public LevelConfig config;
2025-08-22 20:43:18 +05:00
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public virtual void OnLevelStart()
{
2025-08-27 13:49:26 +05:00
if (config != null && ObjectiveManager.Instance != null)
{
ObjectiveManager.Instance.SetList(config.objectives, config.startObjectiveIndex);
ObjectiveManager.Instance.autoAdvanceOnComplete = config.autoAdvanceOnComplete;
}
2025-08-22 20:43:18 +05:00
}
public virtual void OnLevelEnd()
{
}
}