An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
810 B

using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CustomEditor (typeof(Call))]
public class CallEditor : CommandEditor
{
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("<Continue>"),
fungusScript);
serializedObject.ApplyModifiedProperties();
}
}
}