diff --git a/Assets/Fungus/FungusScript/Scripts/Sequence.cs b/Assets/Fungus/FungusScript/Scripts/Sequence.cs index 6f4b06bc..4676c434 100644 --- a/Assets/Fungus/FungusScript/Scripts/Sequence.cs +++ b/Assets/Fungus/FungusScript/Scripts/Sequence.cs @@ -27,7 +27,10 @@ namespace Fungus if (fungusScript == null) { // Legacy support for earlier system where Sequences were children of the FungusScript - fungusScript = GetComponentInParent(); + if (transform.parent != null) + { + fungusScript = transform.parent.GetComponent(); + } } return fungusScript;