using UnityEditor; using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Fungus.Script { [CustomEditor (typeof(Call))] public class CallEditor : FungusCommandEditor { SerializedProperty targetSequenceProp; void OnEnable() { targetSequenceProp = serializedObject.FindProperty("targetSequence"); } public override void DrawCommandGUI() { serializedObject.Update(); Call t = target as Call; FungusScript fungusScript = t.GetFungusScript(); if (fungusScript == null) { return; } SequenceEditor.SequenceField(targetSequenceProp, new GUIContent("Target Sequence", "Sequence to call"), new GUIContent(""), fungusScript); serializedObject.ApplyModifiedProperties(); } } }