using System;
using UnityEngine;
namespace TowerDefense.Level
{
///
/// Abstract base class representing a level intro
///
public abstract class LevelIntro : MonoBehaviour
{
///
/// Called when the Intro is completed
///
public event Action introCompleted;
///
/// Should be fired by the derived classes to mark that the intro is completed
///
protected void SafelyCallIntroCompleted()
{
if (introCompleted != null)
{
introCompleted();
}
}
}
}