34 lines
658 B
C#
34 lines
658 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
public abstract class Level : MonoBehaviour
|
|
{
|
|
public UnityEvent OnLevelEndEvent;
|
|
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()
|
|
{
|
|
// ObjectiveManager.Instance.Advance();
|
|
}
|
|
|
|
public virtual void OnLevelEnd()
|
|
{
|
|
OnLevelEndEvent?.Invoke();
|
|
ActivatorManager.Instance.TimeLineEvents.Add(OnLevelEndEvent);
|
|
}
|
|
|
|
}
|