【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
19
Assets/10.StoryEditor/Editor/Node/EndNodeEditor.cs
Normal file
19
Assets/10.StoryEditor/Editor/Node/EndNodeEditor.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEditor;
|
||||
using XNodeEditor;
|
||||
|
||||
namespace Stary.Evo.StoryEditor.Editor
|
||||
{
|
||||
[CustomNodeEditor(typeof(EndNode))]
|
||||
public class EndNodeEditor : NodeEditor
|
||||
{
|
||||
public override void OnBodyGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
EditorGUILayout.LabelField("剧本结束");
|
||||
base.OnBodyGUI();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user