diff --git a/Assets/Fungus/FungusScript/Scripts/EventHandler.cs b/Assets/Fungus/FungusScript/Scripts/EventHandler.cs index e63e6168..846ab1ee 100644 --- a/Assets/Fungus/FungusScript/Scripts/EventHandler.cs +++ b/Assets/Fungus/FungusScript/Scripts/EventHandler.cs @@ -28,6 +28,8 @@ namespace Fungus * Add an EventHandlerInfo attibute and your new EventHandler class will automatically appear in the * 'Start Event' dropdown menu when a sequence is selected. */ + [RequireComponent(typeof(Sequence))] + [RequireComponent(typeof(FungusScript))] public class EventHandler : MonoBehaviour { [HideInInspector]