20 lines
494 B
C#
20 lines
494 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using Unity.GraphToolkit.Editor;
|
|
|
|
namespace Editor.Dialogue
|
|
{
|
|
[Serializable]
|
|
[Graph(AssetExtension)]
|
|
public class DialogueGraph : Graph
|
|
{
|
|
public const string AssetExtension = "dialoguegraph";
|
|
|
|
[MenuItem("Assets/Create/Dialogue Graph", false)]
|
|
private static void CreateAssetFile()
|
|
{
|
|
GraphDatabase.PromptInProjectBrowserToCreateNewAsset<DialogueGraph>();
|
|
}
|
|
}
|
|
} |