【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
19
Assets/10.StoryEditor/Editor/Node/BeginNodeEditor.cs
Normal file
19
Assets/10.StoryEditor/Editor/Node/BeginNodeEditor.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEditor;
|
||||
using XNodeEditor;
|
||||
|
||||
namespace Stary.Evo.StoryEditor.Editor
|
||||
{
|
||||
[CustomNodeEditor(typeof(BeginNode))]
|
||||
public class BeginNodeEditor : NodeEditor
|
||||
{
|
||||
public override void OnBodyGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
EditorGUILayout.LabelField("剧本开始");
|
||||
base.OnBodyGUI();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/10.StoryEditor/Editor/Node/BeginNodeEditor.cs.meta
Normal file
11
Assets/10.StoryEditor/Editor/Node/BeginNodeEditor.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ec8ed12f5fca194db8bf75ce458fb23
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/10.StoryEditor/Editor/Node/EndNodeEditor.cs.meta
Normal file
11
Assets/10.StoryEditor/Editor/Node/EndNodeEditor.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3651de4913e805c459198efe5e22e685
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user