using System;
namespace Unity.Tutorials.Core.Editor
{
internal abstract class Controller
{
protected TutorialWindow Application => TutorialWindow.Instance;
///
/// Subscribes to an AppEvent
///
/// Callback for an AppEvent
internal void AddListener(Action evt) where T : AppEvent
{
Application.EventManager.AddListener(evt);
}
internal void RemoveListener(Action evt) where T : AppEvent
{
Application.EventManager.RemoveListener(evt);
}
internal abstract void RemoveListeners();
}
}