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.
30 lines
753 B
30 lines
753 B
10 years ago
|
using UnityEditor;
|
||
|
using UnityEditorInternal;
|
||
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Fungus.Script
|
||
|
{
|
||
|
|
||
|
[CustomEditor (typeof(Jump))]
|
||
|
public class JumpEditor : FungusCommandEditor
|
||
|
{
|
||
|
public override void DrawCommandInspectorGUI()
|
||
|
{
|
||
|
Jump t = target as Jump;
|
||
|
|
||
|
EditorGUI.BeginChangeCheck();
|
||
|
|
||
|
Sequence newSequence = SequenceEditor.SequenceField(new GUIContent("Sequence", "Sequence to jump to"),
|
||
|
t.GetFungusScript(),
|
||
|
t.targetSequence);
|
||
|
if (EditorGUI.EndChangeCheck())
|
||
|
{
|
||
|
Undo.RecordObject(t, "Set Jump command");
|
||
|
t.targetSequence = newSequence;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|