34 lines
658 B
C#
Raw Normal View History

2025-08-22 20:43:18 +05:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
2025-08-22 20:43:18 +05:00
public abstract class Level : MonoBehaviour
{
public UnityEvent OnLevelEndEvent;
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()
{
// ObjectiveManager.Instance.Advance();
2025-08-22 20:43:18 +05:00
}
public virtual void OnLevelEnd()
{
OnLevelEndEvent?.Invoke();
2025-10-08 01:03:39 +05:00
ActivatorManager.Instance.TimeLineEvents.Add(OnLevelEndEvent);
2025-08-22 20:43:18 +05:00
}
}