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.
34 lines
889 B
34 lines
889 B
using UnityEditor; |
|
using UnityEngine; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
|
|
namespace Fungus.Script |
|
{ |
|
|
|
[CustomEditor (typeof(Call))] |
|
public class CallEditor : FungusCommandEditor |
|
{ |
|
public override void DrawCommandGUI() |
|
{ |
|
Call t = target as Call; |
|
|
|
FungusScript fungusScript = t.GetFungusScript(); |
|
if (fungusScript == null) |
|
{ |
|
return; |
|
} |
|
|
|
Sequence targetSequence = SequenceEditor.SequenceField(new GUIContent("Target Sequence", "Sequence to call"), |
|
new GUIContent("<Continue>"), |
|
fungusScript, |
|
t.targetSequence); |
|
if (targetSequence != t.targetSequence) |
|
{ |
|
Undo.RecordObject(t, "Set Target Sequence"); |
|
t.targetSequence = targetSequence; |
|
} |
|
} |
|
} |
|
|
|
}
|
|
|