From f5ad27b1c0ae2e2a09834619790dff6d03adbd84 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Fri, 14 Nov 2014 17:00:32 +0000 Subject: [PATCH] Add dependency on Sequence and Fungus Script components --- Assets/Fungus/FungusScript/Scripts/EventHandler.cs | 2 ++ 1 file changed, 2 insertions(+) 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]