Ejemplo n.º 1
0
        public static bool OpenDialogue(int assetInstanceID, int line)
        {
            NPCConversation conversation = EditorUtility.InstanceIDToObject(assetInstanceID) as NPCConversation;

            if (conversation != null)
            {
                DialogueEditorWindow window = ShowWindow();
                window.LoadNewAsset(conversation);
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public static void OpenWindow()
        {
            DialogueEditorWindow _window = GetWindow <DialogueEditorWindow>();

            _window.titleContent = new GUIContent("Dialogue Editor");
        }