Snapshot before project reorganization
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.Collections.Generic;
|
||||
using Unheimlich.Data.Dialogues;
|
||||
|
||||
[CustomEditor(typeof(DialogueConversation))]
|
||||
@@ -99,7 +98,7 @@ public class DialogueConversationEditor : Editor
|
||||
string path = AssetDatabase.GetAssetPath(conversation);
|
||||
string directory = System.IO.Path.GetDirectoryName(path);
|
||||
|
||||
DialogueNode newNode = ScriptableObject.CreateInstance<DialogueNode>();
|
||||
DialogueNode newNode = CreateInstance<DialogueNode>();
|
||||
newNode.name = $"Node_{conversation.DialogueNodes.Count + 1}";
|
||||
|
||||
string nodePath = AssetDatabase.GenerateUniqueAssetPath($"{directory}/{newNode.name}.asset");
|
||||
|
||||
Reference in New Issue
Block a user