├── .gitignore
├── Assets
├── ThirdParty
│ ├── LitJsonPolymorphism
│ │ ├── obj
│ │ │ ├── Debug
│ │ │ │ ├── ConsoleApplication1.csproj.CopyComplete
│ │ │ │ ├── ConsoleApplication1.csproj.CoreCompileInputs.cache
│ │ │ │ ├── LitJsonPolymorphism.csproj.CoreCompileInputs.cache
│ │ │ │ ├── ConsoleApplication1.exe
│ │ │ │ ├── ConsoleApplication1.pdb
│ │ │ │ ├── LitJsonPolymorphism.exe
│ │ │ │ ├── LitJsonPolymorphism.pdb
│ │ │ │ ├── ConsoleApplication1.csprojAssemblyReference.cache
│ │ │ │ ├── ConsoleApplication1.exe.meta
│ │ │ │ ├── ConsoleApplication1.pdb.meta
│ │ │ │ ├── LitJsonPolymorphism.exe.meta
│ │ │ │ ├── LitJsonPolymorphism.pdb.meta
│ │ │ │ ├── ConsoleApplication1.csproj.CopyComplete.meta
│ │ │ │ ├── ConsoleApplication1.csproj.CoreCompileInputs.cache.meta
│ │ │ │ ├── ConsoleApplication1.csproj.FileListAbsolute.txt.meta
│ │ │ │ ├── ConsoleApplication1.csprojAssemblyReference.cache.meta
│ │ │ │ ├── LitJsonPolymorphism.csproj.CoreCompileInputs.cache.meta
│ │ │ │ ├── LitJsonPolymorphism.csproj.FileListAbsolute.txt.meta
│ │ │ │ ├── .NETFramework,Version=v4.7.2.AssemblyAttributes.cs
│ │ │ │ ├── LitJsonPolymorphism.csproj.FileListAbsolute.txt
│ │ │ │ └── ConsoleApplication1.csproj.FileListAbsolute.txt
│ │ │ ├── Release
│ │ │ │ ├── ConsoleApplication1.csproj.CopyComplete
│ │ │ │ ├── LitJsonPolymorphism.csproj.CopyComplete
│ │ │ │ ├── ConsoleApplication1.csproj.CoreCompileInputs.cache
│ │ │ │ ├── LitJsonPolymorphism.csproj.CoreCompileInputs.cache
│ │ │ │ ├── ConsoleApplication1.exe
│ │ │ │ ├── ConsoleApplication1.pdb
│ │ │ │ ├── LitJsonPolymorphism.exe
│ │ │ │ ├── LitJsonPolymorphism.pdb
│ │ │ │ ├── ConsoleApplication1.csprojAssemblyReference.cache
│ │ │ │ ├── LitJsonPolymorphism.csprojAssemblyReference.cache
│ │ │ │ ├── ConsoleApplication1.exe.meta
│ │ │ │ ├── ConsoleApplication1.pdb.meta
│ │ │ │ ├── LitJsonPolymorphism.exe.meta
│ │ │ │ ├── LitJsonPolymorphism.pdb.meta
│ │ │ │ ├── ConsoleApplication1.csproj.CopyComplete.meta
│ │ │ │ ├── LitJsonPolymorphism.csproj.CopyComplete.meta
│ │ │ │ ├── ConsoleApplication1.csproj.CoreCompileInputs.cache.meta
│ │ │ │ ├── ConsoleApplication1.csproj.FileListAbsolute.txt.meta
│ │ │ │ ├── ConsoleApplication1.csprojAssemblyReference.cache.meta
│ │ │ │ ├── LitJsonPolymorphism.csproj.CoreCompileInputs.cache.meta
│ │ │ │ ├── LitJsonPolymorphism.csproj.FileListAbsolute.txt.meta
│ │ │ │ ├── LitJsonPolymorphism.csprojAssemblyReference.cache.meta
│ │ │ │ ├── .NETFramework,Version=v4.7.2.AssemblyAttributes.cs
│ │ │ │ ├── ConsoleApplication1.csproj.FileListAbsolute.txt
│ │ │ │ └── LitJsonPolymorphism.csproj.FileListAbsolute.txt
│ │ │ ├── Debug.meta
│ │ │ └── Release.meta
│ │ ├── UnityTypeBinding.cs.meta
│ │ ├── bin
│ │ │ ├── Release
│ │ │ │ ├── LitJSON.dll
│ │ │ │ ├── LitJsonPolymorphism.exe
│ │ │ │ ├── LitJsonPolymorphism.pdb
│ │ │ │ ├── LitJsonPolymorphism.exe.meta
│ │ │ │ ├── LitJsonPolymorphism.pdb.meta
│ │ │ │ └── LitJSON.dll.meta
│ │ │ ├── Debug
│ │ │ │ ├── LitJsonPolymorphism.exe
│ │ │ │ ├── LitJsonPolymorphism.pdb
│ │ │ │ ├── LitJsonPolymorphism.exe.meta
│ │ │ │ └── LitJsonPolymorphism.pdb.meta
│ │ │ ├── Debug.meta
│ │ │ └── Release.meta
│ │ ├── PolymorphismJsonAttribute.cs
│ │ ├── LitJsonPolymorphism.csproj.meta
│ │ ├── bin.meta
│ │ ├── obj.meta
│ │ ├── Properties.meta
│ │ ├── JsonData.cs.meta
│ │ ├── Lexer.cs.meta
│ │ ├── Program.cs.meta
│ │ ├── AssemblyInfo.cs.meta
│ │ ├── IJsonWrapper.cs.meta
│ │ ├── JsonException.cs.meta
│ │ ├── JsonMapper.cs.meta
│ │ ├── JsonReader.cs.meta
│ │ ├── JsonWriter.cs.meta
│ │ ├── ParserToken.cs.meta
│ │ ├── JsonMockWrapper.cs.meta
│ │ ├── Netstandard15Polyfill.cs.meta
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs.meta
│ │ │ └── AssemblyInfo.cs
│ │ ├── PolymorphismJsonAttribute.cs.meta
│ │ ├── AssemblyInfo.cs
│ │ ├── Netstandard15Polyfill.cs
│ │ ├── ParserToken.cs
│ │ ├── IJsonWrapper.cs
│ │ ├── JsonException.cs
│ │ ├── UnityTypeBinding.cs
│ │ ├── Program.cs
│ │ ├── LitJsonPolymorphism.csproj
│ │ └── JsonMockWrapper.cs
│ └── LitJsonPolymorphism.meta
├── Editor
│ ├── XNode
│ │ ├── Graph
│ │ │ ├── Editor.meta
│ │ │ ├── Editor
│ │ │ │ ├── DialogGraphEditor.cs.meta
│ │ │ │ └── DialogGraphEditor.cs
│ │ │ ├── DialogGraph.cs.meta
│ │ │ └── DialogGraph.cs
│ │ ├── Node
│ │ │ ├── EventNode.cs.meta
│ │ │ ├── RootNode.cs.meta
│ │ │ ├── BranchNode.cs.meta
│ │ │ ├── Editor
│ │ │ │ ├── BranchNodeEditor.cs.meta
│ │ │ │ ├── EventNodeEditor.cs.meta
│ │ │ │ ├── RootNodeEditor.cs.meta
│ │ │ │ ├── ChatNodeEditor.cs.meta
│ │ │ │ ├── RootNodeEditor.cs
│ │ │ │ ├── BranchNodeEditor.cs
│ │ │ │ ├── ChatNodeEditor.cs
│ │ │ │ └── EventNodeEditor.cs
│ │ │ ├── Editor.meta
│ │ │ ├── ChatNode.cs.meta
│ │ │ ├── DialogBaseNode.cs.meta
│ │ │ ├── RootNode.cs
│ │ │ ├── ChatNode.cs
│ │ │ ├── EventNode.cs
│ │ │ ├── BranchNode.cs
│ │ │ └── DialogBaseNode.cs
│ │ ├── Node.meta
│ │ ├── Graph.meta
│ │ ├── XNodeGraph.meta
│ │ └── XNodeGraph
│ │ │ ├── 0_0Dialog.asset.meta
│ │ │ ├── 0_1Dialog.asset.meta
│ │ │ ├── 0_2Dialog.asset.meta
│ │ │ ├── 0_3Dialog.asset.meta
│ │ │ ├── Ara_Dialog.asset.meta
│ │ │ └── Seele_Dialog.asset.meta
│ ├── xNode-1.8.0
│ │ ├── Scripts
│ │ │ ├── Editor
│ │ │ │ ├── Resources
│ │ │ │ │ ├── xnode_dot.png
│ │ │ │ │ ├── xnode_node.png
│ │ │ │ │ ├── xnode_dot_outer.png
│ │ │ │ │ ├── xnode_node_workfile.psd
│ │ │ │ │ ├── xnode_node_highlight.png
│ │ │ │ │ ├── ScriptTemplates
│ │ │ │ │ │ ├── xNode_NodeGraphTemplate.cs.txt
│ │ │ │ │ │ ├── xNode_NodeTemplate.cs.txt.meta
│ │ │ │ │ │ ├── xNode_NodeGraphTemplate.cs.txt.meta
│ │ │ │ │ │ └── xNode_NodeTemplate.cs.txt
│ │ │ │ │ ├── ScriptTemplates.meta
│ │ │ │ │ ├── xnode_node_highlight.png.meta
│ │ │ │ │ ├── xnode_dot.png.meta
│ │ │ │ │ ├── xnode_node.png.meta
│ │ │ │ │ ├── xnode_dot_outer.png.meta
│ │ │ │ │ └── xnode_node_workfile.psd.meta
│ │ │ │ ├── Internal.meta
│ │ │ │ ├── Drawers
│ │ │ │ │ ├── Odin.meta
│ │ │ │ │ ├── Odin
│ │ │ │ │ │ ├── InputAttributeDrawer.cs.meta
│ │ │ │ │ │ ├── OutputAttributeDrawer.cs.meta
│ │ │ │ │ │ ├── InNodeEditorAttributeProcessor.cs.meta
│ │ │ │ │ │ ├── InNodeEditorAttributeProcessor.cs
│ │ │ │ │ │ ├── InputAttributeDrawer.cs
│ │ │ │ │ │ └── OutputAttributeDrawer.cs
│ │ │ │ │ ├── NodeEnumDrawer.cs.meta
│ │ │ │ │ └── NodeEnumDrawer.cs
│ │ │ │ ├── Resources.meta
│ │ │ │ ├── Drawers.meta
│ │ │ │ ├── NodeEditorGUI.cs.meta
│ │ │ │ ├── GraphAndNodeEditor.cs.meta
│ │ │ │ ├── NodeGraphImporter.cs.meta
│ │ │ │ ├── SceneGraphEditor.cs.meta
│ │ │ │ ├── Internal
│ │ │ │ │ ├── RerouteReference.cs.meta
│ │ │ │ │ └── RerouteReference.cs
│ │ │ │ ├── GraphRenameFixAssetProcessor.cs.meta
│ │ │ │ ├── NodeEditor.cs.meta
│ │ │ │ ├── NodeGraphEditor.cs.meta
│ │ │ │ ├── NodeEditorAction.cs.meta
│ │ │ │ ├── NodeEditorGUILayout.cs.meta
│ │ │ │ ├── NodeEditorReflection.cs.meta
│ │ │ │ ├── NodeEditorResources.cs.meta
│ │ │ │ ├── NodeEditorUtilities.cs.meta
│ │ │ │ ├── NodeEditorWindow.cs.meta
│ │ │ │ ├── NodeEditorPreferences.cs.meta
│ │ │ │ ├── NodeEditorAssetModProcessor.cs.meta
│ │ │ │ ├── RenamePopup.cs.meta
│ │ │ │ ├── NodeEditorBase.cs.meta
│ │ │ │ ├── GraphRenameFixAssetProcessor.cs
│ │ │ │ ├── NodeGraphImporter.cs
│ │ │ │ ├── GraphAndNodeEditor.cs
│ │ │ │ ├── SceneGraphEditor.cs
│ │ │ │ ├── RenamePopup.cs
│ │ │ │ ├── NodeEditorBase.cs
│ │ │ │ ├── NodeEditorAssetModProcessor.cs
│ │ │ │ └── NodeEditorResources.cs
│ │ │ ├── Editor.meta
│ │ │ ├── Attributes.meta
│ │ │ ├── SceneGraph.cs.meta
│ │ │ ├── Node.cs.meta
│ │ │ ├── NodeGraph.cs.meta
│ │ │ ├── NodePort.cs.meta
│ │ │ ├── Attributes
│ │ │ │ ├── NodeEnum.cs
│ │ │ │ └── NodeEnum.cs.meta
│ │ │ ├── NodeDataCache.cs.meta
│ │ │ ├── SceneGraph.cs
│ │ │ └── NodeGraph.cs
│ │ ├── .editorconfig
│ │ ├── LICENSE.md.meta
│ │ ├── README.md.meta
│ │ ├── CONTRIBUTING.md.meta
│ │ ├── package.json.meta
│ │ ├── Scripts.meta
│ │ ├── package.json
│ │ ├── .gitignore
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── LICENSE.md
│ │ ├── CONTRIBUTING.md
│ │ └── README.md
│ ├── XNode.meta
│ └── xNode-1.8.0.meta
├── Script
│ ├── Dialog
│ │ ├── DialogTree.cs.meta
│ │ ├── BaseDialogNode.cs.meta
│ │ ├── DialogChatNode.cs.meta
│ │ ├── DialogEventNode.cs.meta
│ │ ├── DialogBranchNode.cs.meta
│ │ ├── DialogBranchNode.cs
│ │ ├── DialogChatNode.cs
│ │ ├── BaseDialogNode.cs
│ │ ├── DialogEventNode.cs
│ │ └── DialogTree.cs
│ ├── Dialog.meta
│ ├── Helper.meta
│ └── Helper
│ │ ├── JsonHelper.cs.meta
│ │ └── JsonHelper.cs
├── Editor.meta
├── Scenes.meta
├── Scenes
│ └── SampleScene.unity.meta
├── Script.meta
├── Resources.meta
├── ThirdParty.meta
└── Resources
│ ├── Dialog.meta
│ └── Dialog
│ ├── Seele_Dialog.txt.meta
│ └── Seele_Dialog.txt
├── ProjectSettings
├── ProjectVersion.txt
├── ClusterInputManager.asset
├── PresetManager.asset
├── EditorBuildSettings.asset
├── XRSettings.asset
├── VersionControlSettings.asset
├── TimeManager.asset
├── VFXManager.asset
├── AudioManager.asset
├── TagManager.asset
├── UnityConnectSettings.asset
├── EditorSettings.asset
├── PackageManagerSettings.asset
├── DynamicsManager.asset
├── NavMeshAreas.asset
├── Physics2DSettings.asset
├── GraphicsSettings.asset
└── InputManager.asset
├── obj
└── Debug
│ ├── Assembly-CSharp.csproj.AssemblyReference.cache
│ ├── Assembly-CSharp.csprojAssemblyReference.cache
│ ├── Assembly-CSharp-Editor.csprojAssemblyReference.cache
│ └── .NETFramework,Version=v4.7.1.AssemblyAttributes.cs
├── README.md
├── UserSettings
└── EditorUserSettings.asset
├── DialogXNode.sln
└── Packages
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | Temp/
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csproj.CopyComplete:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csproj.CopyComplete:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csproj.CopyComplete:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Graph/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e4120e46296b45649b87d30a73e796e6
3 | timeCreated: 1647059856
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/EventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 34b6df8309314f5a8e9222065fa4df15
3 | timeCreated: 1646989220
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/RootNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63f1bb0716cf49fabeaea9bec3bb8e6e
3 | timeCreated: 1647059153
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogTree.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 948614e0cab4458aadfe23b9855cc487
3 | timeCreated: 1646977235
--------------------------------------------------------------------------------
/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 2020.3.8f1c1
2 | m_EditorVersionWithRevision: 2020.3.8f1c1 (0b92326fa640)
3 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/BranchNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 268d4679b74f4d13bbb3a7222168c45a
3 | timeCreated: 1646979524
--------------------------------------------------------------------------------
/Assets/Script/Dialog/BaseDialogNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 61c16959f19443b59505c8a729f18833
3 | timeCreated: 1646977838
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogChatNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2a0930c2cd9144758c00d78518f1066c
3 | timeCreated: 1646977943
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6832f09a73354c019b3fdd76d749e3c1
3 | timeCreated: 1647053292
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | a6e9da73497e1590b15fc59f117a5e1ef99070d3
2 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 98cec54a5dbd3a115e390e2f9f0814ce0a721f9a
2 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/BranchNodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fae41c8652304911bfc88bda87349947
3 | timeCreated: 1646985461
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/EventNodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63b230148be54196a007d5e586c9d4f6
3 | timeCreated: 1646989313
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/RootNodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 43dd3359f13e4e128f95482e3b3b39d4
3 | timeCreated: 1647062830
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | cf9dd5c0a9ccd1ce80e3c328ba818e592acbd10f
2 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 8219b0e42904a5a937ae38a03e5631283bb6458d
2 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Graph/Editor/DialogGraphEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 44e528d5609944f288a5925eadd8ee8e
3 | timeCreated: 1647059848
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/UnityTypeBinding.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0e1910bc059f433eb4781f6146997e79
3 | timeCreated: 1682599612
--------------------------------------------------------------------------------
/obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Debug/Assembly-CSharp.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/obj/Debug/Assembly-CSharp.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJSON.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJSON.dll
--------------------------------------------------------------------------------
/ProjectSettings/ClusterInputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!236 &1
4 | ClusterInputManager:
5 | m_ObjectHideFlags: 0
6 | m_Inputs: []
7 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_dot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_dot.png
--------------------------------------------------------------------------------
/obj/Debug/Assembly-CSharp-Editor.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/obj/Debug/Assembly-CSharp-Editor.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node.png
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/PolymorphismJsonAttribute.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/PolymorphismJsonAttribute.cs
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_dot_outer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_dot_outer.png
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug/LitJsonPolymorphism.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug/LitJsonPolymorphism.exe
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug/LitJsonPolymorphism.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug/LitJsonPolymorphism.pdb
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.exe
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.pdb
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.exe
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.pdb
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*.cs]
4 | indent_style = space
5 | indent_size = 4
6 | end_of_line = crlf
7 | insert_final_newline = false
8 | trim_trailing_whitespace = true
9 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node_workfile.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node_workfile.psd
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJsonPolymorphism.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJsonPolymorphism.exe
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJsonPolymorphism.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJsonPolymorphism.pdb
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.exe
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.pdb
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.exe
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.pdb
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node_highlight.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node_highlight.png
--------------------------------------------------------------------------------
/ProjectSettings/PresetManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1386491679 &1
4 | PresetManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_DefaultPresets: {}
8 |
--------------------------------------------------------------------------------
/Assets/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2a1249b4d40202341ac3778a7233fa9a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7b3728f39ee3a234eaa94c2272b13366
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scenes/SampleScene.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9fc0d4010bbf28b4594072e72b8655ab
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Script.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 326a0889473a8b34fa5de2941eb68b5b
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 18078093f690ca64b9ec2696227d635a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/LICENSE.md.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 77523c356ccf04f56b53e6527c6b12fd
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/README.md.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 243efae3a6b7941ad8f8e54dcf38ce8c
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 02ec118cccb779042b8ad71478ddd56a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e0cd88c1e6ca0124585621b669a94db5
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a96d8da10ab24a30ac8f7db857137758
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/CONTRIBUTING.md.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bc1db8b29c76d44648c9c86c2dfade6d
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/package.json.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e9869d68f06b74538a01e9b8e406159e
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Resources/Dialog.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e478d28d02af9574cbeb52c37046f4a3
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Resources/Dialog/Seele_Dialog.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3e0b6b973f921674b93b2bb8671e021f
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Script/Dialog.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b1fe870e56a7b094ab5b6a102ff9503a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Script/Helper.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a441d9d12e40bda43a417df913a4363f
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1045 &1
4 | EditorBuildSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Scenes: []
8 | m_configObjects: {}
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Graph.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 066a4cad8f42a80448afa781ef612540
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 19bb98c3077501d44ab1d39bb548dd84
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/XRSettings.asset:
--------------------------------------------------------------------------------
1 | {
2 | "m_SettingKeys": [
3 | "VR Device Disabled",
4 | "VR Device User Alert"
5 | ],
6 | "m_SettingValues": [
7 | "False",
8 | "False"
9 | ]
10 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d4a8a2d89773450b83183f23abd3bfa8
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1eb22c0be30ab1e4ab550434ccc065c0
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ed564a4e2aa4d0648bb2c8f893b730cc
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/LitJsonPolymorphism.csproj.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a9476b2f611e3464a919359b58ecba2d
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 051aa466fa2c7c844a3be9d14ebe489c
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63cc039092142a74e8f955282ada5cdc
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Internal.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a6a1bbc054e282346a02e7bbddde3206
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Properties.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3595f901b7b41984681a9113abf8387a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e78dc0f0b585dd94fbd8f51c28a4fece
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 56f82ae20eff92040b252d195b0ecd2d
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 49225809ced0b55448f1da4416362bd7
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f818304daa819be41ba99106145b399c
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/petertan123/DialogEditor/HEAD/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 327994a52f523b641898a39ff7500a02
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug/LitJsonPolymorphism.exe.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ae12c79b32948734b9e694cc800d867d
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Debug/LitJsonPolymorphism.pdb.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2de65e6fe9fbe424ea3570e0b4d7b78e
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJsonPolymorphism.exe.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6d83e15d78278e64798c1560de88bb29
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJsonPolymorphism.pdb.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 01858ed7c3164b74b843a7954f21bec8
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.exe.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 863a277a2c70e114c910293fe77de14f
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.pdb.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7e6c3581f1800d44fb4e7a8d8bdabfd8
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.exe.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7e390c5877a28ac408049b680076df22
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.pdb.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7f5b76016935ff540b99b583a79792ee
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.exe.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e2a2ef70124e25e488ea99dd2f05d4b9
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.pdb.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b568808f54e0c7d4491f1a361ae7cc15
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.exe.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 23cc57c4bc317c042872ff9ca13ca398
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.pdb.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 16a81b0b1062c654ea9bebf2f2d032cf
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/ProjectSettings/VersionControlSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!890905787 &1
4 | VersionControlSettings:
5 | m_ObjectHideFlags: 0
6 | m_Mode: Visible Meta Files
7 | m_CollabEditorSettings:
8 | inProgressEnabled: 1
9 |
--------------------------------------------------------------------------------
/obj/Debug/.NETFramework,Version=v4.7.1.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.1", FrameworkDisplayName = "")]
5 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph/0_0Dialog.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c201680e62e92bc4bbdaae5c46d780a9
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph/0_1Dialog.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 08513d978d07b894e91e7d1b9e9e4b5d
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph/0_2Dialog.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d8d35b9261c7a264eb54138fd4af2c7a
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph/0_3Dialog.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a130a574df46c2f49912e58cb17e01e2
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph/Ara_Dialog.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4066cfdcf0517d94ab56890c840104f5
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/XNodeGraph/Seele_Dialog.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1cf54a2a118ee044e804414db942c9a4
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 657b15cb3ec32a24ca80faebf094d0f4
3 | folderAsset: yes
4 | timeCreated: 1505418321
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csproj.CopyComplete.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fed7ac1d3e09c1444b406ddd35afdfd2
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csproj.CopyComplete.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5a63a90d2edef2740855dd6db19c459f
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csproj.CopyComplete.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1b381c58458081c4a84532f3c6cd0e76
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 94d4fd78d9120634ebe0e8717610c412
3 | folderAsset: yes
4 | timeCreated: 1505418345
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!5 &1
4 | TimeManager:
5 | m_ObjectHideFlags: 0
6 | Fixed Timestep: 0.02
7 | Maximum Allowed Timestep: 0.33333334
8 | m_TimeScale: 1
9 | Maximum Particle Timestep: 0.03
10 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csproj.CoreCompileInputs.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8a700d3448400624680691f5bc81625d
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csproj.FileListAbsolute.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 30ce36a249dbfdf468894c974d16d5fa
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csprojAssemblyReference.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ab989e7dfbaee584c8225d65e100f820
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.csproj.CoreCompileInputs.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ef22db8075f580147a5142e2198b7964
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.csproj.FileListAbsolute.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a37055c31588c4a479338902b7841a03
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csproj.CoreCompileInputs.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e73678c7dfde5e24d958e6b8a4f9d616
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csproj.FileListAbsolute.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: faf150a205d91c44e83e001e6e305e88
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csprojAssemblyReference.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c6239f7cbfbca224295843fd298a0a6b
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csproj.CoreCompileInputs.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d8ebd091847559d41b64dc10edbd24bc
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csproj.FileListAbsolute.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 542edb63ddb62be41959de1c170c7a4e
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csprojAssemblyReference.cache.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0bbdcf3508e417449a2c5489a7877e69
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 964fc201163fe884ca6a20094b6f3b49
3 | folderAsset: yes
4 | timeCreated: 1506110871
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/ScriptTemplates/xNode_NodeGraphTemplate.cs.txt:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using XNode;
5 |
6 | [CreateAssetMenu]
7 | public class #SCRIPTNAME# : NodeGraph {
8 | #NOTRIM#
9 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "com.github.siccity.xnode",
3 | "description": "xNode provides a set of APIs and an editor interface for creating and editing custom node graphs.",
4 | "version": "1.8.0",
5 | "unity": "2018.1",
6 | "displayName": "xNode"
7 | }
8 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Attributes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5644dfc7eed151045af664a9d4fd1906
3 | folderAsset: yes
4 | timeCreated: 1541633926
5 | licenseType: Free
6 | DefaultImporter:
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7adf21edfb51f514fa991d7556ecd0ef
3 | folderAsset: yes
4 | timeCreated: 1541971984
5 | licenseType: Free
6 | DefaultImporter:
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
5 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
5 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/ScriptTemplates.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 86b677955452bb5449f9f4dd47b6ddfe
3 | folderAsset: yes
4 | timeCreated: 1519049391
5 | licenseType: Free
6 | DefaultImporter:
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/Assets/Script/Helper/JsonHelper.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6fdefc0e5b76424428fa7bde3fe3ca19
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/ChatNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 034fd5d383154ce6816e7e127e872928
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/ScriptTemplates/xNode_NodeTemplate.cs.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 85f6f570600a1a44d8e734cb111a8b89
3 | timeCreated: 1519049802
4 | licenseType: Free
5 | TextScriptImporter:
6 | externalObjects: {}
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Graph/DialogGraph.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 389c689540bae2d44a4a4d159a6d8b90
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/DialogBaseNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fe07d737ab134f2f845fecce73713bcd
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/ScriptTemplates/xNode_NodeGraphTemplate.cs.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8165767f64da7d94e925f61a38da668c
3 | timeCreated: 1519049802
4 | licenseType: Free
5 | TextScriptImporter:
6 | externalObjects: {}
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogBranchNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3cb18f880cbd5dc4bb2a54f573e1f797
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/ChatNodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a717eb4c4f1240339c7d175a2106ba61
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/SceneGraph.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7915171fc13472a40a0162003052d2db
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonData.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 105b77078062e6441bf526ec0ca2c89c
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Lexer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 373fa5bf3a0906344a237b1cab37305d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Program.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d4ea447f29d1dab4cb55622c123b6159
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/AssemblyInfo.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 83df41277901cbc47bca5222c12fa908
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/IJsonWrapper.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8aea74ac1701c9248a97253567af2e82
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonException.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7aa03c6a81ca57a42a7046da65c9e6bb
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonMapper.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4137ca2d01749934d8bd710311026e8c
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonReader.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b6cab32d1920f97418ead50c1907d20e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonWriter.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c64aaf33f37b1be4da9e18806bd82b02
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/ParserToken.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6a694c92abb9e884cb9953eb933682ea
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorGUI.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 756276bfe9a0c2f4da3930ba1964f58d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonMockWrapper.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 188982ad7b67cde43baa0b1954bb2984
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/GraphAndNodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bdd6e443125ccac4dad0665515759637
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeGraphImporter.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7a816f2790bf3da48a2d6d0035ebc9a0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/SceneGraphEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: aea725adabc311f44b5ea8161360a915
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Netstandard15Polyfill.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cacdda4609468a143a510e6131be6de3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Properties/AssemblyInfo.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 101fe17832d41e546ad79ec6a55b238b
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Internal/RerouteReference.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 399f3c5fb717b2c458c3e9746f8959a3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f26231e5ab9368746948d0ea49e8178a
3 | timeCreated: 1505419984
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/PolymorphismJsonAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63d7addcfe28c5449ab67d27b0abbf54
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/GraphRenameFixAssetProcessor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 65da1ff1c50a9984a9c95fd18799e8dd
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/NodeGraph.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 093f68ef2455d544fa2d14b80c811322
3 | timeCreated: 1505461376
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/NodePort.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7dd2f76ac25c6f44c9426dff3e7491a3
3 | timeCreated: 1505734054
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Attributes/NodeEnum.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | /// Draw enums correctly within nodes. Without it, enums show up at the wrong positions.
4 | /// Enums with this attribute are not detected by EditorGui.ChangeCheck due to waiting before executing
5 | public class NodeEnumAttribute : PropertyAttribute { }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin/InputAttributeDrawer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2fd590b2e9ea0bd49b6986a2ca9010ab
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin/OutputAttributeDrawer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e7ebd8f2b42e2384aa109551dc46af88
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 712c3fc5d9eeb4c45b1e23918df6018f
3 | timeCreated: 1505462176
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/NodeDataCache.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 64ea6af1e195d024d8df0ead1921e517
3 | timeCreated: 1507566823
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeGraphEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ddcbb5432255d3247a0718b15a9c193c
3 | timeCreated: 1505462176
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin/InNodeEditorAttributeProcessor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3cf2561fbfea9a041ac81efbbb5b3e0d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorAction.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: aa7d4286bf0ad2e4086252f2893d2cf5
3 | timeCreated: 1505426655
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorGUILayout.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1d6c2d118d1c77948a23f2f4a34d1f64
3 | timeCreated: 1507966608
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorReflection.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c78a0fa4a13abcd408ebe73006b7b1bb
3 | timeCreated: 1505419458
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorResources.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 69f55d341299026489b29443c3dd13d1
3 | timeCreated: 1505418919
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorUtilities.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 120960fe5b50aba418a8e8ad3c4c4bc8
3 | timeCreated: 1506073499
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorWindow.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5ce2bf59ec7a25c4ba691cad7819bf38
3 | timeCreated: 1505418450
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorPreferences.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6b1f47e387a6f714c9f2ff82a6888c85
3 | timeCreated: 1507920216
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorAssetModProcessor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e515e86efe8160243a68b7c06d730c9c
3 | timeCreated: 1507982232
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ProjectSettings/VFXManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!937362698 &1
4 | VFXManager:
5 | m_ObjectHideFlags: 0
6 | m_IndirectShader: {fileID: 0}
7 | m_CopyBufferShader: {fileID: 0}
8 | m_SortShader: {fileID: 0}
9 | m_StripUpdateShader: {fileID: 0}
10 | m_RenderPipeSettingsPath:
11 | m_FixedTimeStep: 0.016666668
12 | m_MaxDeltaTime: 0.05
13 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Attributes/NodeEnum.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 10a8338f6c985854697b35459181af0a
3 | timeCreated: 1541633942
4 | licenseType: Free
5 | MonoImporter:
6 | externalObjects: {}
7 | serializedVersion: 2
8 | defaultReferences: []
9 | executionOrder: 0
10 | icon: {instanceID: 0}
11 | userData:
12 | assetBundleName:
13 | assetBundleVariant:
14 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/RenamePopup.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4ef3ddc25518318469bce838980c64be
3 | timeCreated: 1552067957
4 | licenseType: Free
5 | MonoImporter:
6 | externalObjects: {}
7 | serializedVersion: 2
8 | defaultReferences: []
9 | executionOrder: 0
10 | icon: {instanceID: 0}
11 | userData:
12 | assetBundleName:
13 | assetBundleVariant:
14 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorBase.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e85122ded59aceb4eb4b1bd9d9202642
3 | timeCreated: 1511353946
4 | licenseType: Free
5 | MonoImporter:
6 | externalObjects: {}
7 | serializedVersion: 2
8 | defaultReferences: []
9 | executionOrder: 0
10 | icon: {instanceID: 0}
11 | userData:
12 | assetBundleName:
13 | assetBundleVariant:
14 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/NodeEnumDrawer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 83db81f92abadca439507e25d517cabe
3 | timeCreated: 1541633798
4 | licenseType: Free
5 | MonoImporter:
6 | externalObjects: {}
7 | serializedVersion: 2
8 | defaultReferences: []
9 | executionOrder: 0
10 | icon: {instanceID: 0}
11 | userData:
12 | assetBundleName:
13 | assetBundleVariant:
14 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/.gitignore:
--------------------------------------------------------------------------------
1 | /[Ll]ibrary/
2 | /[Tt]emp/
3 | /[Oo]bj/
4 | /[Bb]uild/
5 |
6 | # Autogenerated VS/MD solution and project files
7 | *.csproj
8 | *.unityproj
9 | *.sln
10 | *.suo
11 | *.tmp
12 | *.user
13 | *.userprefs
14 | *.pidb
15 | *.booproj
16 |
17 | # Unity3D generated meta files
18 | *.pidb.meta
19 |
20 | # Unity3D Generated File On Crash Reports
21 | sysinfo.txt
22 |
23 | /Examples/
24 |
25 | .git.meta
26 | .gitignore.meta
27 | .gitattributes.meta
28 |
29 | # OS X only:
30 | .DS_Store
--------------------------------------------------------------------------------
/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!11 &1
4 | AudioManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Volume: 1
8 | Rolloff Scale: 1
9 | Doppler Factor: 1
10 | Default Speaker Mode: 2
11 | m_SampleRate: 0
12 | m_DSPBufferSize: 1024
13 | m_VirtualVoiceCount: 512
14 | m_RealVoiceCount: 32
15 | m_SpatializerPlugin:
16 | m_AmbisonicDecoderPlugin:
17 | m_DisableAudio: 0
18 | m_VirtualizeEffects: 1
19 | m_RequestedDSPBufferSize: 1024
20 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/ScriptTemplates/xNode_NodeTemplate.cs.txt:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using XNode;
5 |
6 | public class #SCRIPTNAME# : Node {
7 |
8 | // Use this for initialization
9 | protected override void Init() {
10 | base.Init();
11 | #NOTRIM#
12 | }
13 |
14 | // Return the correct value of an output port when requested
15 | public override object GetValue(NodePort port) {
16 | return null; // Replace this
17 | }
18 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # DialogEditor
2 | Unity,Dialog,XNode
3 |
4 | ## LitJson修改
5 |
6 | 已对LitJson进行修改,支持key为int类型的字典,同时支持多态类。
7 |
8 | LitJson拓展思路参考
9 |
10 | 1. https://blog.csdn.net/qq_38680728/article/details/119672976
11 | 2. ET框架的LitJson部分
12 |
13 | 同时对ET部分的LitJson也进行了多态类的支持,算是把思路整合了一下,有朋友需要的话也可以放出来
14 |
15 |
16 |
17 | ## 基于XNode的DialogEditor对话剧情编辑
18 |
19 | 基于XNode实现,拓展了对应的Graph和结点,支持通过LitJson导出为Json,同时导出/读取类也已经设计完成,后续根据思路拓展即可
20 |
21 | 制作例子:
22 |
23 | 
24 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/LitJsonPolymorphism.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | D:\Develop\Project\LitJsonPolymorphism\LitJsonPolymorphism\bin\Debug\LitJsonPolymorphism.exe
2 | D:\Develop\Project\LitJsonPolymorphism\LitJsonPolymorphism\bin\Debug\LitJsonPolymorphism.pdb
3 | D:\Develop\Project\LitJsonPolymorphism\LitJsonPolymorphism\obj\Debug\LitJsonPolymorphism.csproj.CoreCompileInputs.cache
4 | D:\Develop\Project\LitJsonPolymorphism\LitJsonPolymorphism\obj\Debug\LitJsonPolymorphism.exe
5 | D:\Develop\Project\LitJsonPolymorphism\LitJsonPolymorphism\obj\Debug\LitJsonPolymorphism.pdb
6 |
--------------------------------------------------------------------------------
/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!78 &1
4 | TagManager:
5 | serializedVersion: 2
6 | tags: []
7 | layers:
8 | - Default
9 | - TransparentFX
10 | - Ignore Raycast
11 | -
12 | - Water
13 | - UI
14 | -
15 | -
16 | -
17 | -
18 | -
19 | -
20 | -
21 | -
22 | -
23 | -
24 | -
25 | -
26 | -
27 | -
28 | -
29 | -
30 | -
31 | -
32 | -
33 | -
34 | -
35 | -
36 | -
37 | -
38 | -
39 | -
40 | m_SortingLayers:
41 | - name: Default
42 | uniqueID: 0
43 | locked: 0
44 |
--------------------------------------------------------------------------------
/Assets/Script/Helper/JsonHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ET
4 | {
5 | public static class JsonHelper
6 | {
7 |
8 | public static string ToJson(object message)
9 | {
10 | return LitJson.JsonMapper.ToJson(message);
11 | }
12 |
13 | public static object FromJson(Type type, string json)
14 | {
15 | return LitJson.JsonMapper.ToObject(type, json);
16 | }
17 |
18 | public static T FromJson(string json)
19 | {
20 | return LitJson.JsonMapper.ToObject(json);
21 | }
22 |
23 | }
24 | }
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 |
5 |
6 | [assembly: CLSCompliant (true)]
7 |
8 | [assembly: AssemblyTitle ("LitJson")]
9 | [assembly: AssemblyDescription ("LitJSON library")]
10 | [assembly: AssemblyConfiguration ("")]
11 | [assembly: AssemblyCompany ("")]
12 | [assembly: AssemblyProduct ("LitJSON")]
13 | [assembly: AssemblyCopyright (
14 | "The authors disclaim copyright to this source code")]
15 | [assembly: AssemblyTrademark ("")]
16 | [assembly: AssemblyCulture ("")]
17 |
18 | [assembly: AssemblyVersion ("0.17.0")]
19 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Netstandard15Polyfill.cs:
--------------------------------------------------------------------------------
1 | #if NETSTANDARD1_5
2 | using System;
3 | using System.Reflection;
4 | namespace LitJson
5 | {
6 | internal static class Netstandard15Polyfill
7 | {
8 | internal static Type GetInterface(this Type type, string name)
9 | {
10 | return type.GetTypeInfo().GetInterface(name);
11 | }
12 |
13 | internal static bool IsClass(this Type type)
14 | {
15 | return type.GetTypeInfo().IsClass;
16 | }
17 |
18 | internal static bool IsEnum(this Type type)
19 | {
20 | return type.GetTypeInfo().IsEnum;
21 | }
22 | }
23 | }
24 | #endif
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: thorbrigsted
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: thorbrigsted
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/UserSettings/EditorUserSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!162 &1
4 | EditorUserSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 4
7 | m_ConfigSettings:
8 | RecentlyUsedScenePath-0:
9 | value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d
10 | flags: 0
11 | vcSharedLogLevel:
12 | value: 0d5e400f0650
13 | flags: 0
14 | m_VCAutomaticAdd: 1
15 | m_VCDebugCom: 0
16 | m_VCDebugCmd: 0
17 | m_VCDebugOut: 0
18 | m_SemanticMergeMode: 2
19 | m_VCShowFailedCheckout: 1
20 | m_VCOverwriteFailedCheckoutAssets: 1
21 | m_VCProjectOverlayIcons: 1
22 | m_VCHierarchyOverlayIcons: 1
23 | m_VCOtherOverlayIcons: 1
24 | m_VCAllowAsyncUpdate: 1
25 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/SceneGraph.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using XNode;
5 |
6 | namespace XNode {
7 | /// Lets you instantiate a node graph in the scene. This allows you to reference in-scene objects.
8 | public class SceneGraph : MonoBehaviour {
9 | public NodeGraph graph;
10 | }
11 |
12 | /// Derive from this class to create a SceneGraph with a specific graph type.
13 | ///
14 | ///
15 | /// public class MySceneGraph : SceneGraph {
16 | ///
17 | /// }
18 | ///
19 | ///
20 | public class SceneGraph : SceneGraph where T : NodeGraph {
21 | public new T graph { get { return base.graph as T; } set { base.graph = value; } }
22 | }
23 | }
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Debug/ConsoleApplication1.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
2 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb
3 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Debug\ConsoleApplication1.csprojAssemblyReference.cache
4 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Debug\ConsoleApplication1.csproj.CoreCompileInputs.cache
5 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Debug\ConsoleApplication1.exe
6 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Debug\ConsoleApplication1.pdb
7 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Debug\ConsoleApplication1.csproj.CopyComplete
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/ConsoleApplication1.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\bin\Release\ConsoleApplication1.exe
2 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\bin\Release\ConsoleApplication1.pdb
3 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Release\ConsoleApplication1.csprojAssemblyReference.cache
4 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Release\ConsoleApplication1.csproj.CoreCompileInputs.cache
5 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Release\ConsoleApplication1.csproj.CopyComplete
6 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Release\ConsoleApplication1.exe
7 | C:\Users\YH-10100\RiderProjects\TestDemo\ConsoleApplication1\obj\Release\ConsoleApplication1.pdb
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/obj/Release/LitJsonPolymorphism.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\bin\Release\LitJsonPolymorphism.exe
2 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\bin\Release\LitJsonPolymorphism.pdb
3 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\obj\Release\LitJsonPolymorphism.csprojAssemblyReference.cache
4 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\obj\Release\LitJsonPolymorphism.csproj.CoreCompileInputs.cache
5 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\obj\Release\LitJsonPolymorphism.csproj.CopyComplete
6 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\obj\Release\LitJsonPolymorphism.exe
7 | C:\Users\YH-10100\RiderProjects\TestDemo\LitJsonPolymorphism\obj\Release\LitJsonPolymorphism.pdb
8 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/bin/Release/LitJSON.dll.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 39b1b5afb4c01f246af87e4e55a5b158
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Any:
16 | second:
17 | enabled: 1
18 | settings: {}
19 | - first:
20 | Editor: Editor
21 | second:
22 | enabled: 0
23 | settings:
24 | DefaultValueInitialized: true
25 | - first:
26 | Windows Store Apps: WindowsStoreApps
27 | second:
28 | enabled: 0
29 | settings:
30 | CPU: AnyCPU
31 | userData:
32 | assetBundleName:
33 | assetBundleVariant:
34 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Internal/RerouteReference.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace XNodeEditor.Internal {
4 | public struct RerouteReference {
5 | public XNode.NodePort port;
6 | public int connectionIndex;
7 | public int pointIndex;
8 |
9 | public RerouteReference(XNode.NodePort port, int connectionIndex, int pointIndex) {
10 | this.port = port;
11 | this.connectionIndex = connectionIndex;
12 | this.pointIndex = pointIndex;
13 | }
14 |
15 | public void InsertPoint(Vector2 pos) { port.GetReroutePoints(connectionIndex).Insert(pointIndex, pos); }
16 | public void SetPoint(Vector2 pos) { port.GetReroutePoints(connectionIndex) [pointIndex] = pos; }
17 | public void RemovePoint() { port.GetReroutePoints(connectionIndex).RemoveAt(pointIndex); }
18 | public Vector2 GetPoint() { return port.GetReroutePoints(connectionIndex) [pointIndex]; }
19 | }
20 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/RootNodeEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using XNodeEditor;
4 |
5 | namespace ET
6 | {
7 | [NodeEditor.CustomNodeEditorAttribute(typeof(RootNode))]
8 | public class RootNodeEditor:NodeEditor
9 | {
10 | public override void OnHeaderGUI()
11 | {
12 | GUI.color = Color.white;
13 | ChatNode node = target as ChatNode;
14 |
15 | string title = this.target.name;
16 | GUILayout.Label(title,NodeEditorResources.styles.nodeHeader,GUILayout.Height(30));
17 | }
18 |
19 | public override void OnBodyGUI()
20 | {
21 | this.serializedObject.Update();
22 | RootNode node = this.target as RootNode;
23 | EditorGUILayout.LabelField("NodeId: ",$"{node.NodeId}");
24 |
25 | NodeEditorGUILayout.PortField(GUIContent.none,this.target.GetOutputPort("Output"),GUILayout.MinWidth(0));
26 |
27 | this.serializedObject.ApplyModifiedProperties();
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/ProjectSettings/UnityConnectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!310 &1
4 | UnityConnectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 1
7 | m_Enabled: 0
8 | m_TestMode: 0
9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com
12 | m_DashboardUrl: https://dashboard.unity3d.com
13 | m_TestInitMode: 0
14 | CrashReportingSettings:
15 | m_EventUrl: https://perf-events.cloud.unity.cn
16 | m_Enabled: 0
17 | m_LogBufferSize: 10
18 | m_CaptureEditorExceptions: 1
19 | UnityPurchasingSettings:
20 | m_Enabled: 0
21 | m_TestMode: 0
22 | UnityAnalyticsSettings:
23 | m_Enabled: 0
24 | m_TestMode: 0
25 | m_InitializeOnStartup: 1
26 | UnityAdsSettings:
27 | m_Enabled: 0
28 | m_InitializeOnStartup: 1
29 | m_TestMode: 0
30 | m_IosGameId:
31 | m_AndroidGameId:
32 | m_GameIds: {}
33 | m_GameId:
34 | PerformanceReportingSettings:
35 | m_Enabled: 0
36 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/ParserToken.cs:
--------------------------------------------------------------------------------
1 | #region Header
2 | /**
3 | * ParserToken.cs
4 | * Internal representation of the tokens used by the lexer and the parser.
5 | *
6 | * The authors disclaim copyright to this source code. For more details, see
7 | * the COPYING file included with this distribution.
8 | **/
9 | #endregion
10 |
11 |
12 | namespace LitJson
13 | {
14 | internal enum ParserToken
15 | {
16 | // Lexer tokens (see section A.1.1. of the manual)
17 | None = System.Char.MaxValue + 1,
18 | Number,
19 | True,
20 | False,
21 | Null,
22 | CharSeq,
23 | // Single char
24 | Char,
25 |
26 | // Parser Rules (see section A.2.1 of the manual)
27 | Text,
28 | Object,
29 | ObjectPrime,
30 | Pair,
31 | PairRest,
32 | Array,
33 | ArrayPrime,
34 | Value,
35 | ValueRest,
36 | String,
37 |
38 | // End of input
39 | End,
40 |
41 | // The empty rule
42 | Epsilon
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!159 &1
4 | EditorSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 11
7 | m_ExternalVersionControlSupport: Visible Meta Files
8 | m_SerializationMode: 2
9 | m_LineEndingsForNewScripts: 0
10 | m_DefaultBehaviorMode: 0
11 | m_PrefabRegularEnvironment: {fileID: 0}
12 | m_PrefabUIEnvironment: {fileID: 0}
13 | m_SpritePackerMode: 0
14 | m_SpritePackerPaddingPower: 1
15 | m_EtcTextureCompressorBehavior: 1
16 | m_EtcTextureFastCompressor: 1
17 | m_EtcTextureNormalCompressor: 2
18 | m_EtcTextureBestCompressor: 4
19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref
20 | m_ProjectGenerationRootNamespace:
21 | m_CollabEditorSettings:
22 | inProgressEnabled: 1
23 | m_EnableTextureStreamingInEditMode: 1
24 | m_EnableTextureStreamingInPlayMode: 1
25 | m_AsyncShaderCompilation: 1
26 | m_EnterPlayModeOptionsEnabled: 0
27 | m_EnterPlayModeOptions: 3
28 | m_ShowLightmapResolutionOverlay: 1
29 | m_UseLegacyProbeSampleCount: 0
30 | m_SerializeInlineMappingsOnOneLine: 1
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/RootNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using XNode;
3 |
4 | namespace ET
5 | {
6 | //一张图中只允许出现一个,作为树的根结点使用
7 | [CreateNodeMenu("RootNode")]
8 | public class RootNode:DialogBaseNode
9 | {
10 | protected override void Init()
11 | {
12 | DialogGraph dialogGraph = this.graph as DialogGraph;
13 | dialogGraph.SetRootNode(this);
14 | }
15 |
16 | private void OnDestroy()
17 | {
18 | DialogGraph dialogGraph = this.graph as DialogGraph;
19 | dialogGraph.ClearRootNode();
20 | }
21 |
22 | public override void Trigger(DialogTree dialogTree)
23 | {
24 | base.Trigger(dialogTree);
25 | NodePort connection = this.GetOutputPort("Output").Connection;
26 | if (connection != null)
27 | {
28 | DialogBaseNode toNode = connection.node as DialogBaseNode;
29 | toNode.Trigger(dialogTree);
30 | //MARKER:设置其为rootNode
31 | dialogTree.SetRootNodeId(toNode.NodeId);
32 | }
33 |
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogBranchNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace ET
5 | {
6 | [Serializable]
7 | public class Answer
8 | {
9 | public string text;
10 | public string musicName;
11 |
12 | public long nextNodeId;
13 | }
14 |
15 | [Serializable]
16 | public class DialogBranchNode:BaseDialogNode
17 | {
18 |
19 | public List answers = new List();
20 |
21 | public void AddAnswer(string _text, string _musicName, long _nextNodeId)
22 | {
23 | Answer answer = new Answer();
24 | answer.text = _text;
25 | answer.musicName = _musicName;
26 | answer.nextNodeId = _nextNodeId;
27 |
28 | this.answers.Add(answer);
29 | }
30 |
31 | public DialogBranchNode()
32 | {
33 |
34 | }
35 |
36 | public DialogBranchNode(long _nodeId, List _previousNodeIds, long _nextNodeId):base(_nodeId, _previousNodeIds, _nextNodeId)
37 | {
38 | this.type = DialogNodeType.Branch;
39 | }
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Thor Brigsted
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ProjectSettings/PackageManagerSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | m_EnablePreviewPackages: 0
16 | m_EnablePackageDependencies: 0
17 | m_AdvancedSettingsExpanded: 1
18 | m_ScopedRegistriesSettingsExpanded: 1
19 | oneTimeWarningShown: 0
20 | m_Registries:
21 | - m_Id: main
22 | m_Name:
23 | m_Url: https://packages.unity.cn
24 | m_Scopes: []
25 | m_IsDefault: 1
26 | m_Capabilities: 7
27 | m_UserSelectedRegistryName:
28 | m_UserAddingNewScopedRegistry: 0
29 | m_RegistryInfoDraft:
30 | m_ErrorMessage:
31 | m_Original:
32 | m_Id:
33 | m_Name:
34 | m_Url:
35 | m_Scopes: []
36 | m_IsDefault: 0
37 | m_Capabilities: 0
38 | m_Modified: 0
39 | m_Name:
40 | m_Url:
41 | m_Scopes:
42 | -
43 | m_SelectedScopeIndex: 0
44 |
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogChatNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | namespace ET
6 | {
7 | [Serializable]
8 | public class DialogChatNode:BaseDialogNode
9 | {
10 | //MARKER:需要与nodeGraph中的内容一一对应
11 |
12 | ///
13 | /// 当前的对话Id
14 | ///
15 | public int dialogId;
16 |
17 | ///
18 | /// 当前对话的人物名
19 | ///
20 | public string name;
21 |
22 | ///
23 | /// 当前对话的人物头像
24 | ///
25 | //public Sprite avatarSprite;
26 |
27 | ///
28 | /// 当前对话人物头像路径
29 | ///
30 | public string avatarPath;
31 |
32 | ///
33 | /// 当前的对话内容
34 | ///
35 | public string content;
36 |
37 | public DialogChatNode()
38 | {
39 |
40 | }
41 |
42 | public DialogChatNode(long _nodeId, List _previousNodeIds, long _nextNodeId):base(_nodeId, _previousNodeIds, _nextNodeId)
43 | {
44 | this.type = DialogNodeType.Chat;
45 | }
46 |
47 |
48 |
49 | }
50 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Graph/Editor/DialogGraphEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using XNodeEditor;
4 |
5 | namespace ET
6 | {
7 | [NodeGraphEditor.CustomNodeGraphEditorAttribute(typeof(DialogGraph))]
8 | public class DialogGraphEditor:NodeGraphEditor
9 | {
10 | public override void OnGUI()
11 | {
12 | base.OnGUI();
13 | GUILayout.BeginArea(new Rect(this.window.position.width - 100,0,100,60));
14 | if(GUILayout.Button("导出",GUILayout.MinHeight(30)))
15 | {
16 | this.OutputTree();
17 | }
18 |
19 | if (GUILayout.Button("清空", GUILayout.MinHeight(30)))
20 | {
21 | DialogGraph graph = this.target as DialogGraph;
22 | graph.Clear();
23 | }
24 | GUILayout.EndArea();
25 | }
26 |
27 | private void OutputTree()
28 | {
29 | DialogGraph graph = this.target as DialogGraph;
30 | DialogTree dialogTree = graph.OutputTree();
31 |
32 | if (dialogTree != null)
33 | {
34 | //MARKER:存储dialogTree
35 | dialogTree.SaveAsJson(graph.name);
36 | }
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Graph/DialogGraph.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEngine;
3 | using XNode;
4 |
5 |
6 | namespace ET
7 | {
8 | [Serializable,CreateAssetMenu(fileName = "New DialogGraph",menuName = "xNode Graph/DialogGraph")]
9 | public class DialogGraph:NodeGraph
10 | {
11 | //用于导出DialogTree
12 | public DialogTree m_tree;
13 |
14 | //当前Graph的根结点
15 | private DialogBaseNode rootNode;
16 |
17 | public DialogTree OutputTree()
18 | {
19 | if (this.rootNode == null)
20 | {
21 | Debug.LogWarning("Must Has One RootNode!");
22 | return null;
23 | }
24 |
25 | this.m_tree = new DialogTree();
26 | this.rootNode.Trigger(this.m_tree);
27 | return this.m_tree;
28 | }
29 |
30 | public void SetRootNode(DialogBaseNode baseNode)
31 | {
32 | if (this.rootNode != null)
33 | {
34 | Debug.LogWarning("Must Only Has One RootNode!");
35 | return;
36 | }
37 | this.rootNode = baseNode;
38 | }
39 |
40 | public void ClearRootNode()
41 | {
42 | this.rootNode = null;
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/ProjectSettings/DynamicsManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!55 &1
4 | PhysicsManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 11
7 | m_Gravity: {x: 0, y: -9.81, z: 0}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_BounceThreshold: 2
10 | m_SleepThreshold: 0.005
11 | m_DefaultContactOffset: 0.01
12 | m_DefaultSolverIterations: 6
13 | m_DefaultSolverVelocityIterations: 1
14 | m_QueriesHitBackfaces: 0
15 | m_QueriesHitTriggers: 1
16 | m_EnableAdaptiveForce: 0
17 | m_ClothInterCollisionDistance: 0
18 | m_ClothInterCollisionStiffness: 0
19 | m_ContactsGeneration: 1
20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
21 | m_AutoSimulation: 1
22 | m_AutoSyncTransforms: 0
23 | m_ReuseCollisionCallbacks: 1
24 | m_ClothInterCollisionSettingsToggle: 0
25 | m_ContactPairsMode: 0
26 | m_BroadphaseType: 0
27 | m_WorldBounds:
28 | m_Center: {x: 0, y: 0, z: 0}
29 | m_Extent: {x: 250, y: 250, z: 250}
30 | m_WorldSubdivisions: 8
31 | m_FrictionType: 0
32 | m_EnableEnhancedDeterminism: 0
33 | m_EnableUnifiedHeightmaps: 1
34 | m_DefaultMaxAngluarSpeed: 7
35 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin/InNodeEditorAttributeProcessor.cs:
--------------------------------------------------------------------------------
1 | #if UNITY_EDITOR && ODIN_INSPECTOR
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Reflection;
5 | using Sirenix.OdinInspector.Editor;
6 | using UnityEngine;
7 | using XNode;
8 |
9 | namespace XNodeEditor {
10 | internal class OdinNodeInGraphAttributeProcessor : OdinAttributeProcessor where T : Node {
11 | public override bool CanProcessSelfAttributes(InspectorProperty property) {
12 | return false;
13 | }
14 |
15 | public override bool CanProcessChildMemberAttributes(InspectorProperty parentProperty, MemberInfo member) {
16 | if (!NodeEditor.inNodeEditor)
17 | return false;
18 |
19 | if (member.MemberType == MemberTypes.Field) {
20 | switch (member.Name) {
21 | case "graph":
22 | case "position":
23 | case "ports":
24 | return true;
25 |
26 | default:
27 | break;
28 | }
29 | }
30 |
31 | return false;
32 | }
33 |
34 | public override void ProcessChildMemberAttributes(InspectorProperty parentProperty, MemberInfo member, List attributes) {
35 | switch (member.Name) {
36 | case "graph":
37 | case "position":
38 | case "ports":
39 | attributes.Add(new HideInInspector());
40 | break;
41 |
42 | default:
43 | break;
44 | }
45 | }
46 | }
47 | }
48 | #endif
--------------------------------------------------------------------------------
/DialogXNode.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{40abebaa-d3d8-3b7a-0a57-a7fc27b6a143}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{88204e11-93ed-fad0-1b0b-d9764e44c477}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {40abebaa-d3d8-3b7a-0a57-a7fc27b6a143}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {40abebaa-d3d8-3b7a-0a57-a7fc27b6a143}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {40abebaa-d3d8-3b7a-0a57-a7fc27b6a143}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {40abebaa-d3d8-3b7a-0a57-a7fc27b6a143}.Release|Any CPU.Build.0 = Release|Any CPU
18 | {88204e11-93ed-fad0-1b0b-d9764e44c477}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {88204e11-93ed-fad0-1b0b-d9764e44c477}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {88204e11-93ed-fad0-1b0b-d9764e44c477}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {88204e11-93ed-fad0-1b0b-d9764e44c477}.Release|Any CPU.Build.0 = Release|Any CPU
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/BranchNodeEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using XNode;
4 | using XNodeEditor;
5 |
6 | namespace ET
7 | {
8 | [CustomNodeEditor(typeof(BranchNode))]
9 | public class BranchNodeEditor:NodeEditor
10 | {
11 | public override void OnHeaderGUI()
12 | {
13 |
14 | GUI.color = Color.white;
15 |
16 | string title = this.target.name;
17 | GUIStyle style = new GUIStyle(NodeEditorResources.styles.nodeHeader);
18 | style.normal.textColor = Color.cyan;
19 |
20 | GUILayout.Label(title,style,GUILayout.Height(30));
21 | }
22 |
23 | public override void OnBodyGUI()
24 | {
25 | this.serializedObject.Update();
26 |
27 | BranchNode node = this.target as BranchNode;
28 |
29 | node.NodeId = EditorGUILayout.LongField("NodeId", node.NodeId);
30 |
31 | NodeEditorGUILayout.PortField(GUIContent.none,this.target.GetInputPort("Input"));
32 |
33 | //MARKER:绘制Answers
34 | NodeEditorGUILayout.DynamicPortList("Answers",typeof(DialogBaseNode),this.serializedObject,NodePort.IO.Output,Node.ConnectionType.Override);
35 |
36 | this.serializedObject.ApplyModifiedProperties();
37 | }
38 |
39 | public override int GetWidth()
40 | {
41 | return 300;
42 | }
43 | }
44 | }
--------------------------------------------------------------------------------
/Assets/Script/Dialog/BaseDialogNode.cs:
--------------------------------------------------------------------------------
1 |
2 | using System;
3 | using System.Collections.Generic;
4 | using LitJson;
5 | using UnityEngine;
6 |
7 | namespace ET
8 | {
9 | //等待后续拓展类型
10 | public enum DialogNodeType
11 | {
12 | Chat, //对话
13 | Branch, //分支
14 | Event, //事件
15 | }
16 |
17 | [PolymorphismJson]
18 | [Serializable]
19 | //MARKER:可以有多个输入但只能有一个输出
20 | public class BaseDialogNode
21 | {
22 | public DialogNodeType type;
23 |
24 | public string Type
25 | {
26 | set
27 | {
28 | this.type = (DialogNodeType)System.Enum.Parse(typeof (DialogNodeType), value);
29 | }
30 | }
31 |
32 | ///
33 | /// 结点索引
34 | ///
35 | ///
36 | public long nodeID;
37 |
38 | ///
39 | /// 前驱结点Id
40 | ///
41 | [SerializeField] public List previousNodeIds = new List();
42 |
43 | ///
44 | /// 后继结点Id
45 | ///
46 | public long nextNodeId;
47 |
48 | public BaseDialogNode()
49 | {
50 |
51 | }
52 |
53 | public BaseDialogNode(long _nodeId, List _previousNodeIds,long _nextNodeId)
54 | {
55 | this.nodeID = _nodeId;
56 | this.previousNodeIds = _previousNodeIds;
57 | this.nextNodeId = _nextNodeId;
58 | }
59 |
60 | }
61 | }
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | // [assembly: AssemblyTitle("LitJsonPolymorphism")]
8 | // [assembly: AssemblyDescription("")]
9 | // [assembly: AssemblyConfiguration("")]
10 | // [assembly: AssemblyCompany("")]
11 | // [assembly: AssemblyProduct("LitJsonPolymorphism")]
12 | // [assembly: AssemblyCopyright("Copyright © 2021")]
13 | // [assembly: AssemblyTrademark("")]
14 | // [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("561794F5-EABC-4539-BA49-7A1E1F677785")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | // [assembly: AssemblyVersion("1.0.0.0")]
35 | // [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/IJsonWrapper.cs:
--------------------------------------------------------------------------------
1 | #region Header
2 | /**
3 | * IJsonWrapper.cs
4 | * Interface that represents a type capable of handling all kinds of JSON
5 | * data. This is mainly used when mapping objects through JsonMapper, and
6 | * it's implemented by JsonData.
7 | *
8 | * The authors disclaim copyright to this source code. For more details, see
9 | * the COPYING file included with this distribution.
10 | **/
11 | #endregion
12 |
13 |
14 | using System.Collections;
15 | using System.Collections.Specialized;
16 |
17 |
18 | namespace LitJson
19 | {
20 | public enum JsonType
21 | {
22 | None,
23 |
24 | Object,
25 | Array,
26 | String,
27 | Int,
28 | Long,
29 | Double,
30 | Boolean
31 | }
32 |
33 | public interface IJsonWrapper : IList, IOrderedDictionary
34 | {
35 | bool IsArray { get; }
36 | bool IsBoolean { get; }
37 | bool IsDouble { get; }
38 | bool IsInt { get; }
39 | bool IsLong { get; }
40 | bool IsObject { get; }
41 | bool IsString { get; }
42 |
43 | bool GetBoolean ();
44 | double GetDouble ();
45 | int GetInt ();
46 | JsonType GetJsonType ();
47 | long GetLong ();
48 | string GetString ();
49 |
50 | void SetBoolean (bool val);
51 | void SetDouble (double val);
52 | void SetInt (int val);
53 | void SetJsonType (JsonType type);
54 | void SetLong (long val);
55 | void SetString (string val);
56 |
57 | string ToJson ();
58 | void ToJson (JsonWriter writer);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/ProjectSettings/NavMeshAreas.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!126 &1
4 | NavMeshProjectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | areas:
8 | - name: Walkable
9 | cost: 1
10 | - name: Not Walkable
11 | cost: 1
12 | - name: Jump
13 | cost: 2
14 | - name:
15 | cost: 1
16 | - name:
17 | cost: 1
18 | - name:
19 | cost: 1
20 | - name:
21 | cost: 1
22 | - name:
23 | cost: 1
24 | - name:
25 | cost: 1
26 | - name:
27 | cost: 1
28 | - name:
29 | cost: 1
30 | - name:
31 | cost: 1
32 | - name:
33 | cost: 1
34 | - name:
35 | cost: 1
36 | - name:
37 | cost: 1
38 | - name:
39 | cost: 1
40 | - name:
41 | cost: 1
42 | - name:
43 | cost: 1
44 | - name:
45 | cost: 1
46 | - name:
47 | cost: 1
48 | - name:
49 | cost: 1
50 | - name:
51 | cost: 1
52 | - name:
53 | cost: 1
54 | - name:
55 | cost: 1
56 | - name:
57 | cost: 1
58 | - name:
59 | cost: 1
60 | - name:
61 | cost: 1
62 | - name:
63 | cost: 1
64 | - name:
65 | cost: 1
66 | - name:
67 | cost: 1
68 | - name:
69 | cost: 1
70 | - name:
71 | cost: 1
72 | m_LastAgentTypeID: -887442657
73 | m_Settings:
74 | - serializedVersion: 2
75 | agentTypeID: 0
76 | agentRadius: 0.5
77 | agentHeight: 2
78 | agentSlope: 45
79 | agentClimb: 0.75
80 | ledgeDropHeight: 0
81 | maxJumpAcrossDistance: 0
82 | minRegionArea: 2
83 | manualCellSize: 0
84 | cellSize: 0.16666667
85 | manualTileSize: 0
86 | tileSize: 256
87 | accuratePlacement: 0
88 | debug:
89 | m_Flags: 0
90 | m_SettingNames:
91 | - Humanoid
92 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonException.cs:
--------------------------------------------------------------------------------
1 | #region Header
2 | /**
3 | * JsonException.cs
4 | * Base class throwed by LitJSON when a parsing error occurs.
5 | *
6 | * The authors disclaim copyright to this source code. For more details, see
7 | * the COPYING file included with this distribution.
8 | **/
9 | #endregion
10 |
11 |
12 | using System;
13 |
14 |
15 | namespace LitJson
16 | {
17 | public class JsonException :
18 | #if NETSTANDARD1_5
19 | Exception
20 | #else
21 | ApplicationException
22 | #endif
23 | {
24 | public JsonException () : base ()
25 | {
26 | }
27 |
28 | internal JsonException (ParserToken token) :
29 | base (String.Format (
30 | "Invalid token '{0}' in input string", token))
31 | {
32 | }
33 |
34 | internal JsonException (ParserToken token,
35 | Exception inner_exception) :
36 | base (String.Format (
37 | "Invalid token '{0}' in input string", token),
38 | inner_exception)
39 | {
40 | }
41 |
42 | internal JsonException (int c) :
43 | base (String.Format (
44 | "Invalid character '{0}' in input string", (char) c))
45 | {
46 | }
47 |
48 | internal JsonException (int c, Exception inner_exception) :
49 | base (String.Format (
50 | "Invalid character '{0}' in input string", (char) c),
51 | inner_exception)
52 | {
53 | }
54 |
55 |
56 | public JsonException (string message) : base (message)
57 | {
58 | }
59 |
60 | public JsonException (string message, Exception inner_exception) :
61 | base (message, inner_exception)
62 | {
63 | }
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contributing to xNode
2 | 💙Thank you for taking the time to contribute💙
3 |
4 | If you haven't already, join our [Discord channel](https://discord.gg/qgPrHv4)!
5 |
6 | ## Pull Requests
7 | Try to keep your pull requests relevant, neat, and manageable. If you are adding multiple features, split them into separate PRs.
8 | These are the main points to follow:
9 |
10 | 1) Use formatting which is consistent with the rest of xNode base (see below)
11 | 2) Keep _one feature_ per PR (see below)
12 | 3) xNode aims to be compatible with C# 4.x, do not use new language features
13 | 4) Avoid including irellevant whitespace or formatting changes
14 | 5) Comment your code
15 | 6) Spell check your code / comments
16 | 7) Use concrete types, not *var*
17 | 8) Use english language
18 |
19 | ## New features
20 | xNode aims to be simple and extendible, not trying to fix all of Unity's shortcomings.
21 |
22 | Approved changes might be rejected if bundled with rejected changes, so keep PRs as separate as possible.
23 |
24 | If your feature aims to cover something not related to editing nodes, it generally won't be accepted. If in doubt, ask on the Discord channel.
25 |
26 | ## Coding conventions
27 | Using consistent formatting is key to having a clean git history. Skim through the code and you'll get the hang of it quickly.
28 | * Methods, Types and properties PascalCase
29 | * Variables camelCase
30 | * Public methods XML commented. Params described if not obvious
31 | * Explicit usage of brackets when doing multiple math operations on the same line
32 |
33 | ## Formatting
34 | I use VSCode with the C# FixFormat extension and the following setting overrides:
35 | ```json
36 | "csharpfixformat.style.spaces.beforeParenthesis": false,
37 | "csharpfixformat.style.indent.regionIgnored": true
38 | ```
39 | * Open braces on same line as condition
40 | * 4 spaces for indentation.
41 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin/InputAttributeDrawer.cs:
--------------------------------------------------------------------------------
1 | #if UNITY_EDITOR && ODIN_INSPECTOR
2 | using Sirenix.OdinInspector;
3 | using Sirenix.OdinInspector.Editor;
4 | using Sirenix.Utilities.Editor;
5 | using UnityEngine;
6 | using XNode;
7 |
8 | namespace XNodeEditor {
9 | public class InputAttributeDrawer : OdinAttributeDrawer {
10 | protected override bool CanDrawAttributeProperty(InspectorProperty property) {
11 | Node node = property.Tree.WeakTargets[0] as Node;
12 | return node != null;
13 | }
14 |
15 | protected override void DrawPropertyLayout(GUIContent label) {
16 | Node node = Property.Tree.WeakTargets[0] as Node;
17 | NodePort port = node.GetInputPort(Property.Name);
18 |
19 | if (!NodeEditor.inNodeEditor) {
20 | if (Attribute.backingValue == XNode.Node.ShowBackingValue.Always || Attribute.backingValue == XNode.Node.ShowBackingValue.Unconnected && !port.IsConnected)
21 | CallNextDrawer(label);
22 | return;
23 | }
24 |
25 | if (Property.Tree.WeakTargets.Count > 1) {
26 | SirenixEditorGUI.WarningMessageBox("Cannot draw ports with multiple nodes selected");
27 | return;
28 | }
29 |
30 | if (port != null) {
31 | var portPropoerty = Property.Tree.GetUnityPropertyForPath(Property.UnityPropertyPath);
32 | if (portPropoerty == null) {
33 | SirenixEditorGUI.ErrorMessageBox("Port property missing at: " + Property.UnityPropertyPath);
34 | return;
35 | } else {
36 | var labelWidth = Property.GetAttribute();
37 | if (labelWidth != null)
38 | GUIHelper.PushLabelWidth(labelWidth.Width);
39 |
40 | NodeEditorGUILayout.PropertyField(portPropoerty, label == null ? GUIContent.none : label, true, GUILayout.MinWidth(30));
41 |
42 | if (labelWidth != null)
43 | GUIHelper.PopLabelWidth();
44 | }
45 | }
46 | }
47 | }
48 | }
49 | #endif
--------------------------------------------------------------------------------
/Packages/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.unity.collab-proxy": "1.3.9",
4 | "com.unity.ide.rider": "2.0.7",
5 | "com.unity.ide.visualstudio": "2.0.7",
6 | "com.unity.ide.vscode": "1.2.3",
7 | "com.unity.test-framework": "1.1.24",
8 | "com.unity.textmeshpro": "3.0.4",
9 | "com.unity.timeline": "1.4.7",
10 | "com.unity.ugui": "1.0.0",
11 | "com.unity.modules.ai": "1.0.0",
12 | "com.unity.modules.androidjni": "1.0.0",
13 | "com.unity.modules.animation": "1.0.0",
14 | "com.unity.modules.assetbundle": "1.0.0",
15 | "com.unity.modules.audio": "1.0.0",
16 | "com.unity.modules.cloth": "1.0.0",
17 | "com.unity.modules.director": "1.0.0",
18 | "com.unity.modules.imageconversion": "1.0.0",
19 | "com.unity.modules.imgui": "1.0.0",
20 | "com.unity.modules.jsonserialize": "1.0.0",
21 | "com.unity.modules.particlesystem": "1.0.0",
22 | "com.unity.modules.physics": "1.0.0",
23 | "com.unity.modules.physics2d": "1.0.0",
24 | "com.unity.modules.screencapture": "1.0.0",
25 | "com.unity.modules.terrain": "1.0.0",
26 | "com.unity.modules.terrainphysics": "1.0.0",
27 | "com.unity.modules.tilemap": "1.0.0",
28 | "com.unity.modules.ui": "1.0.0",
29 | "com.unity.modules.uielements": "1.0.0",
30 | "com.unity.modules.umbra": "1.0.0",
31 | "com.unity.modules.unityanalytics": "1.0.0",
32 | "com.unity.modules.unitywebrequest": "1.0.0",
33 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
34 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
35 | "com.unity.modules.unitywebrequesttexture": "1.0.0",
36 | "com.unity.modules.unitywebrequestwww": "1.0.0",
37 | "com.unity.modules.vehicles": "1.0.0",
38 | "com.unity.modules.video": "1.0.0",
39 | "com.unity.modules.vr": "1.0.0",
40 | "com.unity.modules.wind": "1.0.0",
41 | "com.unity.modules.xr": "1.0.0"
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/Odin/OutputAttributeDrawer.cs:
--------------------------------------------------------------------------------
1 | #if UNITY_EDITOR && ODIN_INSPECTOR
2 | using Sirenix.OdinInspector;
3 | using Sirenix.OdinInspector.Editor;
4 | using Sirenix.Utilities.Editor;
5 | using UnityEngine;
6 | using XNode;
7 |
8 | namespace XNodeEditor {
9 | public class OutputAttributeDrawer : OdinAttributeDrawer {
10 | protected override bool CanDrawAttributeProperty(InspectorProperty property) {
11 | Node node = property.Tree.WeakTargets[0] as Node;
12 | return node != null;
13 | }
14 |
15 | protected override void DrawPropertyLayout(GUIContent label) {
16 | Node node = Property.Tree.WeakTargets[0] as Node;
17 | NodePort port = node.GetOutputPort(Property.Name);
18 |
19 | if (!NodeEditor.inNodeEditor) {
20 | if (Attribute.backingValue == XNode.Node.ShowBackingValue.Always || Attribute.backingValue == XNode.Node.ShowBackingValue.Unconnected && !port.IsConnected)
21 | CallNextDrawer(label);
22 | return;
23 | }
24 |
25 | if (Property.Tree.WeakTargets.Count > 1) {
26 | SirenixEditorGUI.WarningMessageBox("Cannot draw ports with multiple nodes selected");
27 | return;
28 | }
29 |
30 | if (port != null) {
31 | var portPropoerty = Property.Tree.GetUnityPropertyForPath(Property.UnityPropertyPath);
32 | if (portPropoerty == null) {
33 | SirenixEditorGUI.ErrorMessageBox("Port property missing at: " + Property.UnityPropertyPath);
34 | return;
35 | } else {
36 | var labelWidth = Property.GetAttribute();
37 | if (labelWidth != null)
38 | GUIHelper.PushLabelWidth(labelWidth.Width);
39 |
40 | NodeEditorGUILayout.PropertyField(portPropoerty, label == null ? GUIContent.none : label, true, GUILayout.MinWidth(30));
41 |
42 | if (labelWidth != null)
43 | GUIHelper.PopLabelWidth();
44 | }
45 | }
46 | }
47 | }
48 | }
49 | #endif
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/UnityTypeBinding.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace LitJson
4 | {
5 | public static class Extensions {
6 |
7 | public static void WriteProperty(this JsonWriter w,string name,long value){
8 | w.WritePropertyName(name);
9 | w.Write(value);
10 | }
11 |
12 | public static void WriteProperty(this JsonWriter w,string name,string value){
13 | w.WritePropertyName(name);
14 | w.Write(value);
15 | }
16 |
17 | public static void WriteProperty(this JsonWriter w,string name,bool value){
18 | w.WritePropertyName(name);
19 | w.Write(value);
20 | }
21 |
22 | public static void WriteProperty(this JsonWriter w,string name,double value){
23 | w.WritePropertyName(name);
24 | w.Write(value);
25 | }
26 |
27 | }
28 |
29 | public class UnityTypeBindings
30 | {
31 | public static void Register()
32 | {
33 | JsonMapper.RegisterExporter((v, w) =>
34 | {
35 | w.WriteObjectStart();
36 | w.WriteProperty("x", v.x);
37 | w.WriteProperty("y", v.y);
38 | w.WriteObjectEnd();
39 | });
40 |
41 | JsonMapper.RegisterExporter((v, w) =>
42 | {
43 | w.WriteObjectStart();
44 | w.WriteProperty("x", v.x);
45 | w.WriteProperty("y", v.y);
46 | w.WriteProperty("z", v.z);
47 | w.WriteObjectEnd();
48 | });
49 |
50 | JsonMapper.RegisterExporter((v, w) =>
51 | {
52 | w.WriteObjectStart();
53 | w.WriteProperty("x", v.x);
54 | w.WriteProperty("y", v.y);
55 | w.WriteProperty("z", v.z);
56 | w.WriteProperty("w", v.w);
57 | w.WriteObjectEnd();
58 | });
59 | }
60 | }
61 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/GraphRenameFixAssetProcessor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using XNode;
3 |
4 | namespace XNodeEditor {
5 | ///
6 | /// This asset processor resolves an issue with the new v2 AssetDatabase system present on 2019.3 and later. When
7 | /// renaming a asset, it appears that sometimes the v2 AssetDatabase will swap which asset
8 | /// is the main asset (present at top level) between the and one of its
9 | /// sub-assets. As a workaround until Unity fixes this, this asset processor checks all renamed assets and if it
10 | /// finds a case where a has been made the main asset it will swap it back to being a sub-asset
11 | /// and rename the node to the default name for that node type.
12 | ///
13 | internal sealed class GraphRenameFixAssetProcessor : AssetPostprocessor {
14 | private static void OnPostprocessAllAssets(
15 | string[] importedAssets,
16 | string[] deletedAssets,
17 | string[] movedAssets,
18 | string[] movedFromAssetPaths) {
19 | for (int i = 0; i < movedAssets.Length; i++) {
20 | Node nodeAsset = AssetDatabase.LoadMainAssetAtPath(movedAssets[i]) as Node;
21 |
22 | // If the renamed asset is a node graph, but the v2 AssetDatabase has swapped a sub-asset node to be its
23 | // main asset, reset the node graph to be the main asset and rename the node asset back to its default
24 | // name.
25 | if (nodeAsset != null && AssetDatabase.IsMainAsset(nodeAsset)) {
26 | AssetDatabase.SetMainObject(nodeAsset.graph, movedAssets[i]);
27 | AssetDatabase.ImportAsset(movedAssets[i]);
28 |
29 | nodeAsset.name = NodeEditorUtilities.NodeDefaultName(nodeAsset.GetType());
30 | EditorUtility.SetDirty(nodeAsset);
31 | }
32 | }
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/ProjectSettings/Physics2DSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!19 &1
4 | Physics2DSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 4
7 | m_Gravity: {x: 0, y: -9.81}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_VelocityIterations: 8
10 | m_PositionIterations: 3
11 | m_VelocityThreshold: 1
12 | m_MaxLinearCorrection: 0.2
13 | m_MaxAngularCorrection: 8
14 | m_MaxTranslationSpeed: 100
15 | m_MaxRotationSpeed: 360
16 | m_BaumgarteScale: 0.2
17 | m_BaumgarteTimeOfImpactScale: 0.75
18 | m_TimeToSleep: 0.5
19 | m_LinearSleepTolerance: 0.01
20 | m_AngularSleepTolerance: 2
21 | m_DefaultContactOffset: 0.01
22 | m_JobOptions:
23 | serializedVersion: 2
24 | useMultithreading: 0
25 | useConsistencySorting: 0
26 | m_InterpolationPosesPerJob: 100
27 | m_NewContactsPerJob: 30
28 | m_CollideContactsPerJob: 100
29 | m_ClearFlagsPerJob: 200
30 | m_ClearBodyForcesPerJob: 200
31 | m_SyncDiscreteFixturesPerJob: 50
32 | m_SyncContinuousFixturesPerJob: 50
33 | m_FindNearestContactsPerJob: 100
34 | m_UpdateTriggerContactsPerJob: 100
35 | m_IslandSolverCostThreshold: 100
36 | m_IslandSolverBodyCostScale: 1
37 | m_IslandSolverContactCostScale: 10
38 | m_IslandSolverJointCostScale: 10
39 | m_IslandSolverBodiesPerJob: 50
40 | m_IslandSolverContactsPerJob: 50
41 | m_AutoSimulation: 1
42 | m_QueriesHitTriggers: 1
43 | m_QueriesStartInColliders: 1
44 | m_CallbacksOnDisable: 1
45 | m_ReuseCollisionCallbacks: 1
46 | m_AutoSyncTransforms: 0
47 | m_AlwaysShowColliders: 0
48 | m_ShowColliderSleep: 1
49 | m_ShowColliderContacts: 0
50 | m_ShowColliderAABB: 0
51 | m_ContactArrowScale: 0.2
52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
57 |
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogEventNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | namespace ET
6 | {
7 | public enum DoorType
8 | {
9 | SwitchScene,
10 | EndGame,
11 | EnterGame,
12 | }
13 |
14 | [Serializable]
15 | public class InitPos
16 | {
17 | public string posX;
18 | public string posY;
19 | public string posZ;
20 |
21 | public InitPos()
22 | {
23 |
24 | }
25 |
26 | public InitPos(string _posX, string _posY, string _posZ)
27 | {
28 | this.posX = _posX;
29 | this.posY = _posY;
30 | this.posZ = _posZ;
31 | }
32 | }
33 |
34 | public enum DialogEventType
35 | {
36 | Normal, //通用事件
37 | Init, //在某个坐标点生成物体
38 | }
39 |
40 | public enum InitType
41 | {
42 | Normal, //通用类型
43 | Door, //用于传输场景的门
44 | }
45 | public class DialogEventNode:BaseDialogNode
46 | {
47 | public DialogEventType eventType;
48 |
49 | public string EventType
50 | {
51 | set
52 | {
53 | this.eventType = (DialogEventType)System.Enum.Parse(typeof (DialogEventType), value);
54 | }
55 | }
56 |
57 | //Normal类型
58 | public string eventName;
59 |
60 | //Init类型
61 | //public string gameObject;
62 | public string goPath;
63 | public InitPos initPoint;
64 | public InitType initType;
65 | public DoorType doorType;
66 | public bool cameraChase;
67 | //public bool isEndGame;
68 | public string targetScene;
69 |
70 | public string InitType
71 | {
72 | set
73 | {
74 | this.initType = (InitType)System.Enum.Parse(typeof (InitType), value);
75 | }
76 | }
77 |
78 |
79 | public DialogEventNode()
80 | {
81 |
82 | }
83 |
84 | public DialogEventNode(long _nodeId, List _previousNodeIds, long _nextNodeId): base(_nodeId, _previousNodeIds,
85 | _nextNodeId)
86 | {
87 | this.type = DialogNodeType.Event;
88 | }
89 |
90 | }
91 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/ChatNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text.RegularExpressions;
4 | using LitJson;
5 | using UnityEditor;
6 | using UnityEngine;
7 | using XNode;
8 |
9 | namespace ET
10 | {
11 | [CreateNodeMenu("ChatNode")]
12 | public class ChatNode:DialogBaseNode
13 | {
14 | public int DialogId; //当前的对话Id
15 | public string Name; //当前对话的人物名
16 | public Sprite Sprite;//当前对话的人物头像
17 |
18 | [TextArea]
19 | public string Content; //当前对话内容
20 |
21 |
22 | public override void Trigger(DialogTree dialogTree)
23 | {
24 | // DialogGraph graph = this.graph as DialogGraph;
25 | //
26 | // //生成一个新的DialogChatNode并初始化
27 | // DialogChatNode dialogChatNode = new DialogChatNode();
28 | // dialogChatNode.dialogId = this.DialogId;
29 | // dialogChatNode.name = this.Name;
30 | // if (this.Texture != null)
31 | // {
32 | // dialogChatNode.avatarSprite = Sprite.Create(this.Texture, new Rect(0, 0, this.Texture.width, this.Texture.height), Vector2.zero);
33 | // }
34 | base.Trigger(dialogTree);
35 | DialogChatNode chatNode = new DialogChatNode(this.NodeId, this.Input, this.Output);
36 |
37 | chatNode.dialogId = this.DialogId;
38 | chatNode.name = this.Name;
39 | if (this.Sprite != null)
40 | {
41 | string path = AssetDatabase.GetAssetPath(this.Sprite);
42 | path = path.Substring(0,path.LastIndexOf('.'));
43 | path = Regex.Replace(path, ".*Resources/", "");
44 | chatNode.avatarPath = path;
45 | //chatNode.avatarSprite = Sprite.Create(this.Texture, new Rect(0,0,this.Texture.width,this.Texture.height),Vector2.zero);
46 | }
47 |
48 | chatNode.content = this.Content;
49 |
50 | dialogTree.AddNode(chatNode);
51 |
52 | NodePort connection = this.GetOutputPort("Output").Connection;
53 | if (connection != null)
54 | {
55 | (connection.node as DialogBaseNode).Trigger(dialogTree);
56 | }
57 |
58 | }
59 |
60 |
61 | }
62 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeGraphImporter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Linq;
4 | using UnityEditor;
5 | using UnityEditor.Experimental.AssetImporters;
6 | using UnityEngine;
7 | using XNode;
8 |
9 | namespace XNodeEditor {
10 | /// Deals with modified assets
11 | class NodeGraphImporter : AssetPostprocessor {
12 | private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) {
13 | foreach (string path in importedAssets) {
14 | // Skip processing anything without the .asset extension
15 | if (Path.GetExtension(path) != ".asset") continue;
16 |
17 | // Get the object that is requested for deletion
18 | NodeGraph graph = AssetDatabase.LoadAssetAtPath(path);
19 | if (graph == null) continue;
20 |
21 | // Get attributes
22 | Type graphType = graph.GetType();
23 | NodeGraph.RequireNodeAttribute[] attribs = Array.ConvertAll(
24 | graphType.GetCustomAttributes(typeof(NodeGraph.RequireNodeAttribute), true), x => x as NodeGraph.RequireNodeAttribute);
25 |
26 | Vector2 position = Vector2.zero;
27 | foreach (NodeGraph.RequireNodeAttribute attrib in attribs) {
28 | if (attrib.type0 != null) AddRequired(graph, attrib.type0, ref position);
29 | if (attrib.type1 != null) AddRequired(graph, attrib.type1, ref position);
30 | if (attrib.type2 != null) AddRequired(graph, attrib.type2, ref position);
31 | }
32 | }
33 | }
34 |
35 | private static void AddRequired(NodeGraph graph, Type type, ref Vector2 position) {
36 | if (!graph.nodes.Any(x => x.GetType() == type)) {
37 | XNode.Node node = graph.AddNode(type);
38 | node.position = position;
39 | position.x += 200;
40 | if (node.name == null || node.name.Trim() == "") node.name = NodeEditorUtilities.NodeDefaultName(type);
41 | if (!string.IsNullOrEmpty(AssetDatabase.GetAssetPath(graph))) AssetDatabase.AddObjectToAsset(node, graph);
42 | }
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node_highlight.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2ab2b92d7e1771b47bba0a46a6f0f6d5
3 | timeCreated: 1516610730
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 0
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: 1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: -1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 0
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 2
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | - buildTarget: Standalone
70 | maxTextureSize: 2048
71 | resizeAlgorithm: 0
72 | textureFormat: -1
73 | textureCompression: 1
74 | compressionQuality: 50
75 | crunchedCompression: 0
76 | allowsAlphaSplitting: 0
77 | overridden: 0
78 | androidETC2FallbackOverride: 0
79 | spriteSheet:
80 | serializedVersion: 2
81 | sprites: []
82 | outline: []
83 | physicsShape: []
84 | spritePackingTag:
85 | userData:
86 | assetBundleName:
87 | assetBundleVariant:
88 |
--------------------------------------------------------------------------------
/Assets/Resources/Dialog/Seele_Dialog.txt:
--------------------------------------------------------------------------------
1 | {"_t":"DialogTree","rootNodeId":1,"id2Nodes":{"1":{"__ASSEMBLY__":"Assembly-CSharp, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null","__TYPE__":"ET.DialogChatNode","_t":"DialogChatNode","dialogId":0,"name":"\u827E\u62C9","avatarPath":null,"content":"\u8FD9\u91CC\u6709\u8BB8\u591A\u5546\u54C1\uFF0C\u6709\u4EC0\u4E48\u8981\u4E70\u7684\u5417","type":0,"nodeID":1,"previousNodeIds":[0],"nextNodeId":2},"2":{"__ASSEMBLY__":"Assembly-CSharp, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null","__TYPE__":"ET.DialogBranchNode","_t":"DialogBranchNode","answers":[{"_t":"Answer","text":"\u5443\uFF0C\u8FD9\u662F\u54EA\uFF1F","musicName":"","nextNodeId":3},{"_t":"Answer","text":"\u6211\u770B\u770B\u6709\u4EC0\u4E48\u4E1C\u897F","musicName":"","nextNodeId":5}],"type":1,"nodeID":2,"previousNodeIds":[0],"nextNodeId":0},"3":{"__ASSEMBLY__":"Assembly-CSharp, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null","__TYPE__":"ET.DialogChatNode","_t":"DialogChatNode","dialogId":1,"name":"\u827E\u62C9","avatarPath":null,"content":"\u5982\u679C\u662F\u95EE\u8FD9\u4E2A\u7684\u8BDD\uFF0C\u5176\u5B9E\u6211\u4E5F\u4E0D\u592A\u6E05\u695A\uFF0C\u6211\u88AB\u4F20\u9001\u8FDB\u6765\u4EE5\u540E\u4E5F\u4E0D\u592A\u77E5\u60C5\uFF0C\u4F46\u662F\u540E\u9762\u5C31\u9009\u62E9\u5F53\u4E00\u4E2A\u5546\u4EBA\u4E86","type":0,"nodeID":3,"previousNodeIds":[0],"nextNodeId":4},"4":{"__ASSEMBLY__":"Assembly-CSharp, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null","__TYPE__":"ET.DialogChatNode","_t":"DialogChatNode","dialogId":2,"name":"\u8389\u4E9A","avatarPath":null,"content":"\u597D\u5427\uFF0C\u770B\u6765\u5F97\u7EE7\u7EED\u627E\u627E\u539F\u56E0\u5462","type":0,"nodeID":4,"previousNodeIds":[0],"nextNodeId":0},"5":{"__ASSEMBLY__":"Assembly-CSharp, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null","__TYPE__":"ET.DialogChatNode","_t":"DialogChatNode","dialogId":3,"name":"\u827E\u62C9","avatarPath":null,"content":"\u55EF\uFF0C\u63D0\u5347\u540E\u624D\u80FD\u66F4\u8F7B\u677E\u5730\u51FB\u8D25\u602A\u7269\u561B","type":0,"nodeID":5,"previousNodeIds":[0],"nextNodeId":6},"6":{"__ASSEMBLY__":"Assembly-CSharp, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null","__TYPE__":"ET.DialogEventNode","_t":"DialogEventNode","eventType":0,"eventName":"OpenShop","goPath":null,"initPoint":null,"initType":0,"doorType":0,"cameraChase":false,"targetScene":null,"type":2,"nodeID":6,"previousNodeIds":[0],"nextNodeId":0}}}
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/ChatNodeEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using XNode;
4 | using XNodeEditor;
5 |
6 | namespace ET
7 | {
8 | [CustomNodeEditor(typeof(ChatNode))]
9 | public class ChatNodeEditor:NodeEditor
10 | {
11 | public override void OnHeaderGUI()
12 | {
13 | //base.OnHeaderGUI();
14 |
15 | GUI.color = Color.white;
16 | ChatNode node = target as ChatNode;
17 |
18 |
19 | GUIStyle style = new GUIStyle(NodeEditorResources.styles.nodeHeader);
20 | style.normal.textColor = Color.green;
21 | string title = this.target.name;
22 | GUILayout.Label(title,style,GUILayout.Height(30));
23 | }
24 |
25 | public override void OnBodyGUI()
26 | {
27 | this.serializedObject.Update();
28 | ChatNode node = target as ChatNode;
29 |
30 | // GUILayout.BeginVertical();
31 | // //MARKER:点击传输的enter和exit按钮
32 | // NodeEditorGUILayout.PortField(new GUIContent("enter"),this.target.GetInputPort("enter"),GUILayout.MinWidth(0));
33 | // NodeEditorGUILayout.PortField(new GUIContent("exit"),this.target.GetOutputPort("exit"),GUILayout.MinWidth(0));
34 | // GUILayout.EndVertical();
35 |
36 |
37 | //MARKER:绘制node界面
38 | node.NodeId = EditorGUILayout.LongField("NodeId", node.NodeId);
39 | node.DialogId = EditorGUILayout.IntField("DialogId", node.DialogId);
40 | node.Name = EditorGUILayout.TextField("Name", node.Name);
41 | //MARKER:绘制对应的Object来展示和接收贴图
42 | node.Sprite = EditorGUILayout.ObjectField("贴图",node.Sprite,typeof(Sprite),true) as Sprite;
43 | //MARKER:显示Label和对应content的textArea
44 | EditorGUILayout.LabelField("Content");
45 | GUILayout.Space(-30);
46 | //MARKER:绘制Input,Output
47 | GUILayout.BeginHorizontal();
48 | NodeEditorGUILayout.PortField(GUIContent.none,this.target.GetInputPort("Input"),GUILayout.MinWidth(0));
49 | NodeEditorGUILayout.PortField(GUIContent.none,this.target.GetOutputPort("Output"),GUILayout.MinWidth(0));
50 | GUILayout.EndHorizontal();
51 | NodeEditorGUILayout.PropertyField(this.serializedObject.FindProperty("Content"), GUIContent.none);
52 |
53 | this.serializedObject.ApplyModifiedProperties();
54 |
55 | }
56 |
57 | }
58 | }
--------------------------------------------------------------------------------
/ProjectSettings/GraphicsSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!30 &1
4 | GraphicsSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 13
7 | m_Deferred:
8 | m_Mode: 1
9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
10 | m_DeferredReflections:
11 | m_Mode: 1
12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
13 | m_ScreenSpaceShadows:
14 | m_Mode: 1
15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
16 | m_LegacyDeferred:
17 | m_Mode: 1
18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
19 | m_DepthNormals:
20 | m_Mode: 1
21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
22 | m_MotionVectors:
23 | m_Mode: 1
24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
25 | m_LightHalo:
26 | m_Mode: 1
27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
28 | m_LensFlare:
29 | m_Mode: 1
30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
31 | m_AlwaysIncludedShaders:
32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0}
35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
38 | m_PreloadedShaders: []
39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
40 | type: 0}
41 | m_CustomRenderPipeline: {fileID: 0}
42 | m_TransparencySortMode: 0
43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1}
44 | m_DefaultRenderingPath: 1
45 | m_DefaultMobileRenderingPath: 1
46 | m_TierSettings: []
47 | m_LightmapStripping: 0
48 | m_FogStripping: 0
49 | m_InstancingStripping: 0
50 | m_LightmapKeepPlain: 1
51 | m_LightmapKeepDirCombined: 1
52 | m_LightmapKeepDynamicPlain: 1
53 | m_LightmapKeepDynamicDirCombined: 1
54 | m_LightmapKeepShadowMask: 1
55 | m_LightmapKeepSubtractive: 1
56 | m_FogKeepLinear: 1
57 | m_FogKeepExp: 1
58 | m_FogKeepExp2: 1
59 | m_AlbedoSwatchInfos: []
60 | m_LightsUseLinearIntensity: 0
61 | m_LightsUseColorTemperature: 0
62 | m_LogWhenShaderIsCompiled: 0
63 | m_AllowEnlightenSupportForUpgradedProject: 0
64 |
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/EventNode.cs:
--------------------------------------------------------------------------------
1 | using System.Text.RegularExpressions;
2 | using UnityEditor;
3 | using UnityEngine;
4 | using XNode;
5 |
6 | namespace ET
7 | {
8 | [CreateNodeMenu("EventNode")]
9 | public class EventNode:DialogBaseNode
10 | {
11 | public DialogEventType EventType;
12 |
13 | [Header("Normal Type")]
14 | public string EventName; //当前需要触发的事件名
15 |
16 | [Header("Init Type")]
17 | public GameObject Prefab;
18 | public Vector3 InitPoint;
19 | public InitType InitType;
20 | public DoorType DoorType;
21 | public bool CameraChase;
22 | //public bool IsEndGame;
23 | public string TargetScene;
24 |
25 |
26 | public override void Trigger(DialogTree dialogTree)
27 | {
28 | base.Trigger(dialogTree);
29 | DialogEventNode eventNode = new DialogEventNode(this.NodeId, this.Input, this.Output);
30 |
31 |
32 | eventNode.eventType = this.EventType;
33 | //eventNode.gameObject = this.Prefab;
34 |
35 | switch (this.EventType)
36 | {
37 | case DialogEventType.Normal:
38 | eventNode.eventName = this.EventName;
39 | break;
40 | case DialogEventType.Init:
41 | if (this.Prefab != null)
42 | {
43 | string goPath = AssetDatabase.GetAssetPath(this.Prefab);
44 | goPath = goPath.Substring(0, goPath.LastIndexOf('.'));
45 | goPath = Regex.Replace(goPath, ".*Resources/", "");
46 | eventNode.goPath = goPath;
47 | }
48 | eventNode.initPoint = new InitPos(this.InitPoint.x.ToString(),this.InitPoint.y.ToString(),this.InitPoint.z.ToString());
49 | eventNode.initType = this.InitType;
50 | eventNode.cameraChase = this.CameraChase;
51 | //eventNode.isEndGame = this.IsEndGame;
52 | eventNode.doorType = this.DoorType;
53 | eventNode.targetScene = this.TargetScene;
54 | break;
55 | }
56 |
57 |
58 |
59 | dialogTree.AddNode(eventNode);
60 |
61 | NodePort connection = this.GetOutputPort("Output").Connection;
62 | if (connection != null)
63 | {
64 | (connection.node as DialogBaseNode).Trigger(dialogTree);
65 | }
66 |
67 | }
68 |
69 | }
70 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_dot.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 75a1fe0b102226a418486ed823c9a7fb
3 | timeCreated: 1506110357
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | serializedVersion: 4
8 | mipmaps:
9 | mipMapMode: 0
10 | enableMipMap: 0
11 | sRGBTexture: 0
12 | linearTexture: 0
13 | fadeOut: 0
14 | borderMipMap: 0
15 | mipMapsPreserveCoverage: 0
16 | alphaTestReferenceValue: 0.5
17 | mipMapFadeDistanceStart: 1
18 | mipMapFadeDistanceEnd: 3
19 | bumpmap:
20 | convertToNormalMap: 0
21 | externalNormalMap: 0
22 | heightScale: 0.25
23 | normalMapFilter: 0
24 | isReadable: 0
25 | grayScaleToAlpha: 0
26 | generateCubemap: 6
27 | cubemapConvolution: 0
28 | seamlessCubemap: 0
29 | textureFormat: 1
30 | maxTextureSize: 2048
31 | textureSettings:
32 | serializedVersion: 2
33 | filterMode: -1
34 | aniso: 1
35 | mipBias: -1
36 | wrapU: 1
37 | wrapV: -1
38 | wrapW: -1
39 | nPOTScale: 0
40 | lightmap: 0
41 | compressionQuality: 50
42 | spriteMode: 0
43 | spriteExtrude: 1
44 | spriteMeshType: 1
45 | alignment: 0
46 | spritePivot: {x: 0.5, y: 0.5}
47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
48 | spritePixelsToUnits: 100
49 | alphaUsage: 1
50 | alphaIsTransparency: 1
51 | spriteTessellationDetail: -1
52 | textureType: 2
53 | textureShape: 1
54 | maxTextureSizeSet: 0
55 | compressionQualitySet: 0
56 | textureFormatSet: 0
57 | platformSettings:
58 | - buildTarget: DefaultTexturePlatform
59 | maxTextureSize: 2048
60 | textureFormat: -1
61 | textureCompression: 1
62 | compressionQuality: 50
63 | crunchedCompression: 0
64 | allowsAlphaSplitting: 0
65 | overridden: 0
66 | - buildTarget: Standalone
67 | maxTextureSize: 2048
68 | textureFormat: -1
69 | textureCompression: 1
70 | compressionQuality: 50
71 | crunchedCompression: 0
72 | allowsAlphaSplitting: 0
73 | overridden: 0
74 | - buildTarget: Android
75 | maxTextureSize: 2048
76 | textureFormat: -1
77 | textureCompression: 1
78 | compressionQuality: 50
79 | crunchedCompression: 0
80 | allowsAlphaSplitting: 0
81 | overridden: 0
82 | - buildTarget: WebGL
83 | maxTextureSize: 2048
84 | textureFormat: -1
85 | textureCompression: 1
86 | compressionQuality: 50
87 | crunchedCompression: 0
88 | allowsAlphaSplitting: 0
89 | overridden: 0
90 | spriteSheet:
91 | serializedVersion: 2
92 | sprites: []
93 | outline: []
94 | physicsShape: []
95 | spritePackingTag:
96 | userData:
97 | assetBundleName:
98 | assetBundleVariant:
99 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2fea1dcb24935ef4ca514d534eb6aa3d
3 | timeCreated: 1507454532
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | serializedVersion: 4
8 | mipmaps:
9 | mipMapMode: 0
10 | enableMipMap: 0
11 | sRGBTexture: 0
12 | linearTexture: 0
13 | fadeOut: 0
14 | borderMipMap: 0
15 | mipMapsPreserveCoverage: 0
16 | alphaTestReferenceValue: 0.5
17 | mipMapFadeDistanceStart: 1
18 | mipMapFadeDistanceEnd: 3
19 | bumpmap:
20 | convertToNormalMap: 0
21 | externalNormalMap: 0
22 | heightScale: 0.25
23 | normalMapFilter: 0
24 | isReadable: 0
25 | grayScaleToAlpha: 0
26 | generateCubemap: 6
27 | cubemapConvolution: 0
28 | seamlessCubemap: 0
29 | textureFormat: 1
30 | maxTextureSize: 2048
31 | textureSettings:
32 | serializedVersion: 2
33 | filterMode: -1
34 | aniso: 1
35 | mipBias: -1
36 | wrapU: 1
37 | wrapV: 1
38 | wrapW: 1
39 | nPOTScale: 0
40 | lightmap: 0
41 | compressionQuality: 50
42 | spriteMode: 0
43 | spriteExtrude: 1
44 | spriteMeshType: 1
45 | alignment: 0
46 | spritePivot: {x: 0.5, y: 0.5}
47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
48 | spritePixelsToUnits: 100
49 | alphaUsage: 1
50 | alphaIsTransparency: 1
51 | spriteTessellationDetail: -1
52 | textureType: 2
53 | textureShape: 1
54 | maxTextureSizeSet: 0
55 | compressionQualitySet: 0
56 | textureFormatSet: 0
57 | platformSettings:
58 | - buildTarget: DefaultTexturePlatform
59 | maxTextureSize: 2048
60 | textureFormat: -1
61 | textureCompression: 1
62 | compressionQuality: 50
63 | crunchedCompression: 0
64 | allowsAlphaSplitting: 0
65 | overridden: 0
66 | - buildTarget: Standalone
67 | maxTextureSize: 2048
68 | textureFormat: -1
69 | textureCompression: 1
70 | compressionQuality: 50
71 | crunchedCompression: 0
72 | allowsAlphaSplitting: 0
73 | overridden: 0
74 | - buildTarget: Android
75 | maxTextureSize: 2048
76 | textureFormat: -1
77 | textureCompression: 1
78 | compressionQuality: 50
79 | crunchedCompression: 0
80 | allowsAlphaSplitting: 0
81 | overridden: 0
82 | - buildTarget: WebGL
83 | maxTextureSize: 2048
84 | textureFormat: -1
85 | textureCompression: 1
86 | compressionQuality: 50
87 | crunchedCompression: 0
88 | allowsAlphaSplitting: 0
89 | overridden: 0
90 | spriteSheet:
91 | serializedVersion: 2
92 | sprites: []
93 | outline: []
94 | physicsShape: []
95 | spritePackingTag:
96 | userData:
97 | assetBundleName:
98 | assetBundleVariant:
99 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_dot_outer.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 434ca8b4bdfa5574abb0002bbc9b65ad
3 | timeCreated: 1506110357
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | serializedVersion: 4
8 | mipmaps:
9 | mipMapMode: 0
10 | enableMipMap: 0
11 | sRGBTexture: 0
12 | linearTexture: 0
13 | fadeOut: 0
14 | borderMipMap: 0
15 | mipMapsPreserveCoverage: 0
16 | alphaTestReferenceValue: 0.5
17 | mipMapFadeDistanceStart: 1
18 | mipMapFadeDistanceEnd: 3
19 | bumpmap:
20 | convertToNormalMap: 0
21 | externalNormalMap: 0
22 | heightScale: 0.25
23 | normalMapFilter: 0
24 | isReadable: 0
25 | grayScaleToAlpha: 0
26 | generateCubemap: 6
27 | cubemapConvolution: 0
28 | seamlessCubemap: 0
29 | textureFormat: 1
30 | maxTextureSize: 2048
31 | textureSettings:
32 | serializedVersion: 2
33 | filterMode: -1
34 | aniso: 1
35 | mipBias: -1
36 | wrapU: 1
37 | wrapV: -1
38 | wrapW: -1
39 | nPOTScale: 0
40 | lightmap: 0
41 | compressionQuality: 50
42 | spriteMode: 0
43 | spriteExtrude: 1
44 | spriteMeshType: 1
45 | alignment: 0
46 | spritePivot: {x: 0.5, y: 0.5}
47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
48 | spritePixelsToUnits: 100
49 | alphaUsage: 1
50 | alphaIsTransparency: 1
51 | spriteTessellationDetail: -1
52 | textureType: 2
53 | textureShape: 1
54 | maxTextureSizeSet: 0
55 | compressionQualitySet: 0
56 | textureFormatSet: 0
57 | platformSettings:
58 | - buildTarget: DefaultTexturePlatform
59 | maxTextureSize: 2048
60 | textureFormat: -1
61 | textureCompression: 1
62 | compressionQuality: 50
63 | crunchedCompression: 0
64 | allowsAlphaSplitting: 0
65 | overridden: 0
66 | - buildTarget: Standalone
67 | maxTextureSize: 2048
68 | textureFormat: -1
69 | textureCompression: 1
70 | compressionQuality: 50
71 | crunchedCompression: 0
72 | allowsAlphaSplitting: 0
73 | overridden: 0
74 | - buildTarget: Android
75 | maxTextureSize: 2048
76 | textureFormat: -1
77 | textureCompression: 1
78 | compressionQuality: 50
79 | crunchedCompression: 0
80 | allowsAlphaSplitting: 0
81 | overridden: 0
82 | - buildTarget: WebGL
83 | maxTextureSize: 2048
84 | textureFormat: -1
85 | textureCompression: 1
86 | compressionQuality: 50
87 | crunchedCompression: 0
88 | allowsAlphaSplitting: 0
89 | overridden: 0
90 | spriteSheet:
91 | serializedVersion: 2
92 | sprites: []
93 | outline: []
94 | physicsShape: []
95 | spritePackingTag:
96 | userData:
97 | assetBundleName:
98 | assetBundleVariant:
99 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Resources/xnode_node_workfile.psd.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2267efa6e1e349348ae0b28fb659a6e2
3 | timeCreated: 1507454532
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | serializedVersion: 4
8 | mipmaps:
9 | mipMapMode: 0
10 | enableMipMap: 0
11 | sRGBTexture: 0
12 | linearTexture: 0
13 | fadeOut: 0
14 | borderMipMap: 0
15 | mipMapsPreserveCoverage: 0
16 | alphaTestReferenceValue: 0.5
17 | mipMapFadeDistanceStart: 1
18 | mipMapFadeDistanceEnd: 3
19 | bumpmap:
20 | convertToNormalMap: 0
21 | externalNormalMap: 0
22 | heightScale: 0.25
23 | normalMapFilter: 0
24 | isReadable: 0
25 | grayScaleToAlpha: 0
26 | generateCubemap: 6
27 | cubemapConvolution: 0
28 | seamlessCubemap: 0
29 | textureFormat: 1
30 | maxTextureSize: 2048
31 | textureSettings:
32 | serializedVersion: 2
33 | filterMode: -1
34 | aniso: 1
35 | mipBias: -1
36 | wrapU: 1
37 | wrapV: -1
38 | wrapW: -1
39 | nPOTScale: 0
40 | lightmap: 0
41 | compressionQuality: 50
42 | spriteMode: 0
43 | spriteExtrude: 1
44 | spriteMeshType: 1
45 | alignment: 0
46 | spritePivot: {x: 0.5, y: 0.5}
47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
48 | spritePixelsToUnits: 100
49 | alphaUsage: 1
50 | alphaIsTransparency: 1
51 | spriteTessellationDetail: -1
52 | textureType: 2
53 | textureShape: 1
54 | maxTextureSizeSet: 0
55 | compressionQualitySet: 0
56 | textureFormatSet: 0
57 | platformSettings:
58 | - buildTarget: DefaultTexturePlatform
59 | maxTextureSize: 2048
60 | textureFormat: -1
61 | textureCompression: 1
62 | compressionQuality: 50
63 | crunchedCompression: 0
64 | allowsAlphaSplitting: 0
65 | overridden: 0
66 | - buildTarget: Standalone
67 | maxTextureSize: 2048
68 | textureFormat: -1
69 | textureCompression: 1
70 | compressionQuality: 50
71 | crunchedCompression: 0
72 | allowsAlphaSplitting: 0
73 | overridden: 0
74 | - buildTarget: Android
75 | maxTextureSize: 2048
76 | textureFormat: -1
77 | textureCompression: 1
78 | compressionQuality: 50
79 | crunchedCompression: 0
80 | allowsAlphaSplitting: 0
81 | overridden: 0
82 | - buildTarget: WebGL
83 | maxTextureSize: 2048
84 | textureFormat: -1
85 | textureCompression: 1
86 | compressionQuality: 50
87 | crunchedCompression: 0
88 | allowsAlphaSplitting: 0
89 | overridden: 0
90 | spriteSheet:
91 | serializedVersion: 2
92 | sprites: []
93 | outline: []
94 | physicsShape: []
95 | spritePackingTag:
96 | userData:
97 | assetBundleName:
98 | assetBundleVariant:
99 |
--------------------------------------------------------------------------------
/Assets/Script/Dialog/DialogTree.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using LitJson;
5 | using UnityEngine;
6 |
7 | namespace ET
8 | {
9 | public class DialogTree
10 | {
11 | public long rootNodeId;
12 |
13 | //public List nodeIds = new List();
14 | //public List nodes = new List();
15 |
16 | public Dictionary id2Nodes = new Dictionary();
17 |
18 | ///
19 | /// 设置DialogTree中的根结点Id
20 | ///
21 | ///
22 | public void SetRootNodeId(long _rootNodeId)
23 | {
24 | this.rootNodeId = _rootNodeId;
25 | }
26 |
27 | ///
28 | /// 根据结点Id获取Tree中对应结点
29 | ///
30 | ///
31 | ///
32 | public BaseDialogNode GetNodeById(long _nodeId)
33 | {
34 | BaseDialogNode node = null;
35 | this.id2Nodes.TryGetValue(_nodeId, out node);
36 | return node;
37 | }
38 |
39 |
40 | ///
41 | /// 往DialogTree中添加对应的结点
42 | ///
43 | ///
44 | public void AddNode(BaseDialogNode node)
45 | {
46 | if (!this.id2Nodes.ContainsKey(node.nodeID))
47 | {
48 | this.id2Nodes.Add(node.nodeID,node);
49 | }
50 |
51 | }
52 |
53 |
54 | ///
55 | /// 删除DialogTree中对应的结点
56 | ///
57 | ///
58 | public void RemoveNode(long nodeId)
59 | {
60 | if (this.id2Nodes.ContainsKey(nodeId))
61 | {
62 | this.id2Nodes.Remove(nodeId);
63 | }
64 | }
65 |
66 |
67 | public void SaveAsJson(string name)
68 | {
69 | string jsonStr = JsonHelper.ToJson(this);
70 | string path = "Assets/Resources/Dialog/"+$"{name}.txt";
71 | try
72 | {
73 | StreamWriter sw = new StreamWriter(path);
74 | sw.Write(jsonStr);
75 | sw.Close();
76 | }
77 | catch(Exception ex)
78 | {
79 | Debug.LogError("Exception:" + ex);
80 | }
81 |
82 | }
83 |
84 | public static DialogTree LoadFromJson(string jsonData)
85 | {
86 | DialogTree dialogTree = JsonHelper.FromJson(jsonData);
87 | return dialogTree;
88 | }
89 |
90 |
91 | }
92 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/Drawers/NodeEnumDrawer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using UnityEditor;
5 | using UnityEngine;
6 | using XNode;
7 | using XNodeEditor;
8 |
9 | namespace XNodeEditor {
10 | [CustomPropertyDrawer(typeof(NodeEnumAttribute))]
11 | public class NodeEnumDrawer : PropertyDrawer {
12 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
13 | EditorGUI.BeginProperty(position, label, property);
14 |
15 | EnumPopup(position, property, label);
16 |
17 | EditorGUI.EndProperty();
18 | }
19 |
20 | public static void EnumPopup(Rect position, SerializedProperty property, GUIContent label) {
21 | // Throw error on wrong type
22 | if (property.propertyType != SerializedPropertyType.Enum) {
23 | throw new ArgumentException("Parameter selected must be of type System.Enum");
24 | }
25 |
26 | // Add label
27 | position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
28 |
29 | // Get current enum name
30 | string enumName = "";
31 | if (property.enumValueIndex >= 0 && property.enumValueIndex < property.enumDisplayNames.Length) enumName = property.enumDisplayNames[property.enumValueIndex];
32 |
33 | #if UNITY_2017_1_OR_NEWER
34 | // Display dropdown
35 | if (EditorGUI.DropdownButton(position, new GUIContent(enumName), FocusType.Passive)) {
36 | // Position is all wrong if we show the dropdown during the node draw phase.
37 | // Instead, add it to onLateGUI to display it later.
38 | NodeEditorWindow.current.onLateGUI += () => ShowContextMenuAtMouse(property);
39 | }
40 | #else
41 | // Display dropdown
42 | if (GUI.Button(position, new GUIContent(enumName), "MiniPopup")) {
43 | // Position is all wrong if we show the dropdown during the node draw phase.
44 | // Instead, add it to onLateGUI to display it later.
45 | NodeEditorWindow.current.onLateGUI += () => ShowContextMenuAtMouse(property);
46 | }
47 | #endif
48 | }
49 |
50 | public static void ShowContextMenuAtMouse(SerializedProperty property) {
51 | // Initialize menu
52 | GenericMenu menu = new GenericMenu();
53 |
54 | // Add all enum display names to menu
55 | for (int i = 0; i < property.enumDisplayNames.Length; i++) {
56 | int index = i;
57 | menu.AddItem(new GUIContent(property.enumDisplayNames[i]), false, () => SetEnum(property, index));
58 | }
59 |
60 | // Display at cursor position
61 | Rect r = new Rect(Event.current.mousePosition, new Vector2(0, 0));
62 | menu.DropDown(r);
63 | }
64 |
65 | private static void SetEnum(SerializedProperty property, int index) {
66 | property.enumValueIndex = index;
67 | property.serializedObject.ApplyModifiedProperties();
68 | property.serializedObject.Update();
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/GraphAndNodeEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | #if ODIN_INSPECTOR
4 | using Sirenix.OdinInspector.Editor;
5 | using Sirenix.Utilities;
6 | using Sirenix.Utilities.Editor;
7 | #endif
8 |
9 | namespace XNodeEditor {
10 | /// Override graph inspector to show an 'Open Graph' button at the top
11 | [CustomEditor(typeof(XNode.NodeGraph), true)]
12 | #if ODIN_INSPECTOR
13 | public class GlobalGraphEditor : OdinEditor {
14 | public override void OnInspectorGUI() {
15 | if (GUILayout.Button("Edit graph", GUILayout.Height(40))) {
16 | NodeEditorWindow.Open(serializedObject.targetObject as XNode.NodeGraph);
17 | }
18 | base.OnInspectorGUI();
19 | }
20 | }
21 | #else
22 | public class GlobalGraphEditor : Editor {
23 | public override void OnInspectorGUI() {
24 | serializedObject.Update();
25 |
26 | if (GUILayout.Button("Edit graph", GUILayout.Height(40))) {
27 | NodeEditorWindow.Open(serializedObject.targetObject as XNode.NodeGraph);
28 | }
29 |
30 | GUILayout.Space(EditorGUIUtility.singleLineHeight);
31 | GUILayout.Label("Raw data", "BoldLabel");
32 |
33 | DrawDefaultInspector();
34 |
35 | serializedObject.ApplyModifiedProperties();
36 | }
37 | }
38 | #endif
39 |
40 | [CustomEditor(typeof(XNode.Node), true)]
41 | #if ODIN_INSPECTOR
42 | public class GlobalNodeEditor : OdinEditor {
43 | public override void OnInspectorGUI() {
44 | if (GUILayout.Button("Edit graph", GUILayout.Height(40))) {
45 | SerializedProperty graphProp = serializedObject.FindProperty("graph");
46 | NodeEditorWindow w = NodeEditorWindow.Open(graphProp.objectReferenceValue as XNode.NodeGraph);
47 | w.Home(); // Focus selected node
48 | }
49 | base.OnInspectorGUI();
50 | }
51 | }
52 | #else
53 | public class GlobalNodeEditor : Editor {
54 | public override void OnInspectorGUI() {
55 | serializedObject.Update();
56 |
57 | if (GUILayout.Button("Edit graph", GUILayout.Height(40))) {
58 | SerializedProperty graphProp = serializedObject.FindProperty("graph");
59 | NodeEditorWindow w = NodeEditorWindow.Open(graphProp.objectReferenceValue as XNode.NodeGraph);
60 | w.Home(); // Focus selected node
61 | }
62 |
63 | GUILayout.Space(EditorGUIUtility.singleLineHeight);
64 | GUILayout.Label("Raw data", "BoldLabel");
65 |
66 | // Now draw the node itself.
67 | DrawDefaultInspector();
68 |
69 | serializedObject.ApplyModifiedProperties();
70 | }
71 | }
72 | #endif
73 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/Editor/EventNodeEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using XNodeEditor;
4 |
5 | namespace ET
6 | {
7 | [NodeEditor.CustomNodeEditorAttribute(typeof(EventNode))]
8 | public class EventNodeEditor:NodeEditor
9 | {
10 | public override void OnHeaderGUI()
11 | {
12 | GUI.color = Color.white;
13 |
14 | string title = this.target.name;
15 | GUIStyle style = new GUIStyle(NodeEditorResources.styles.nodeHeader);
16 | style.normal.textColor = Color.yellow;
17 |
18 | GUILayout.Label(title,style,GUILayout.Height(30));
19 |
20 | }
21 |
22 | public override void OnBodyGUI()
23 | {
24 | this.serializedObject.Update(); //更新属性
25 | EventNode node = this.target as EventNode;
26 |
27 | node.NodeId = EditorGUILayout.LongField("NodeId", node.NodeId);
28 |
29 | NodeEditorGUILayout.PortField(GUIContent.none, this.target.GetInputPort("Input"));
30 | NodeEditorGUILayout.PortField(GUIContent.none,this.target.GetOutputPort("Output"));
31 |
32 | //事件类型选择
33 | EditorGUILayout.LabelField("EventType");
34 | EditorGUILayout.PropertyField(this.serializedObject.FindProperty("EventType"), GUIContent.none);
35 |
36 | //根据类型绘制
37 | switch (node.EventType)
38 | {
39 | case DialogEventType.Normal:
40 | node.EventName = EditorGUILayout.TextField("EventName", node.EventName);
41 | break;
42 | case DialogEventType.Init:
43 | node.Prefab = EditorGUILayout.ObjectField("Prefab",node.Prefab,typeof(GameObject),false) as GameObject;
44 | node.InitPoint = EditorGUILayout.Vector3Field("InitPoint", node.InitPoint);
45 | EditorGUILayout.LabelField("InitType");
46 | EditorGUILayout.PropertyField(this.serializedObject.FindProperty("InitType"), GUIContent.none);
47 | switch (node.InitType)
48 | {
49 | case InitType.Normal:
50 | break;
51 | case InitType.Door:
52 | node.CameraChase = EditorGUILayout.Toggle("CameraChase", node.CameraChase);
53 | //node.IsEndGame = EditorGUILayout.Toggle("IsEndGame", node.IsEndGame);
54 | EditorGUILayout.PropertyField(this.serializedObject.FindProperty("DoorType"), GUIContent.none);
55 | node.TargetScene = EditorGUILayout.TextField("TargetScene", node.TargetScene);
56 | break;
57 | }
58 |
59 | break;
60 | }
61 |
62 | this.serializedObject.ApplyModifiedProperties(); //应用属性更新
63 | }
64 | }
65 |
66 |
67 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/BranchNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using XNode;
5 |
6 | namespace ET
7 | {
8 | //MARKER:对于BranchNode来说Output是无用的
9 | [CreateNodeMenu("BranchNode")]
10 | public class BranchNode:DialogBaseNode
11 | {
12 | [Output(dynamicPortList = true)]public List Answers = new List();
13 |
14 | [Serializable]
15 | public class Answer
16 | {
17 | public string text;
18 | public string musicName;
19 | }
20 |
21 |
22 |
23 | // public override void OnCreateConnection(NodePort @from, NodePort to)
24 | // {
25 | // DialogBaseNode fromNode = from.node as DialogBaseNode;
26 | // DialogBaseNode toNode = to.node as DialogBaseNode;
27 | //
28 | // //判断是否是从自身延伸出去
29 | // if (fromNode == this)
30 | // {
31 | // if (!toNode.Input.Contains(fromNode.NodeId))
32 | // {
33 | // toNode.Input.Add(fromNode.NodeId);
34 | // }
35 | //
36 | // //获取到对应的Answer
37 | // int index = from.fieldName.Split(' ')[1].ToInt32();
38 | // Answer answer = this.Answers[index];
39 | //
40 | // answer.nextNodeId = toNode.NodeId;
41 | // }
42 | // else
43 | // {
44 | // base.OnCreateConnection(from,to);
45 | // }
46 | // }
47 | //
48 | // public override void OnRemoveConnection(NodePort port)
49 | // {
50 | // //判断是否是自身延伸出去
51 | // if (port.node == this)
52 | // {
53 | // int index = port.fieldName.Split(' ')[1].ToInt32();
54 | // Answer answer = this.Answers[index];
55 | //
56 | // answer.nextNodeId = 0;
57 | // }
58 | // else
59 | // {
60 | // base.OnRemoveConnection(port);
61 | // }
62 | // }
63 |
64 | public override void Trigger(DialogTree dialogTree)
65 | {
66 | base.Trigger(dialogTree);
67 | DialogBranchNode branchNode = new DialogBranchNode(this.NodeId,this.Input,this.Output);
68 |
69 | //添加answers
70 | for (int i = 0; i < this.Answers.Count; i++)
71 | {
72 | NodePort connection = this.GetOutputPort($"Answers {i}").Connection;
73 | DialogBaseNode toNode = connection.node as DialogBaseNode;
74 | Answer answer = this.Answers[i];
75 | branchNode.AddAnswer(answer.text,answer.musicName,toNode.NodeId);
76 | }
77 | dialogTree.AddNode(branchNode);
78 |
79 | //处理每个Answer的Connection
80 | for (int i = 0; i < this.Answers.Count; i++)
81 | {
82 | NodePort connection = this.GetOutputPort($"Answers {i}").Connection;
83 | if(connection == null) continue;
84 | DialogBaseNode toNode = connection.node as DialogBaseNode;
85 | toNode.Trigger(dialogTree);
86 | }
87 | }
88 | }
89 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/SceneGraphEditor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using UnityEditor;
5 | using UnityEngine;
6 | using XNode;
7 |
8 | namespace XNodeEditor {
9 | [CustomEditor(typeof(SceneGraph), true)]
10 | public class SceneGraphEditor : Editor {
11 | private SceneGraph sceneGraph;
12 | private bool removeSafely;
13 | private Type graphType;
14 |
15 | public override void OnInspectorGUI() {
16 | if (sceneGraph.graph == null) {
17 | if (GUILayout.Button("New graph", GUILayout.Height(40))) {
18 | if (graphType == null) {
19 | Type[] graphTypes = NodeEditorReflection.GetDerivedTypes(typeof(NodeGraph));
20 | GenericMenu menu = new GenericMenu();
21 | for (int i = 0; i < graphTypes.Length; i++) {
22 | Type graphType = graphTypes[i];
23 | menu.AddItem(new GUIContent(graphType.Name), false, () => CreateGraph(graphType));
24 | }
25 | menu.ShowAsContext();
26 | } else {
27 | CreateGraph(graphType);
28 | }
29 | }
30 | } else {
31 | if (GUILayout.Button("Open graph", GUILayout.Height(40))) {
32 | NodeEditorWindow.Open(sceneGraph.graph);
33 | }
34 | if (removeSafely) {
35 | GUILayout.BeginHorizontal();
36 | GUILayout.Label("Really remove graph?");
37 | GUI.color = new Color(1, 0.8f, 0.8f);
38 | if (GUILayout.Button("Remove")) {
39 | removeSafely = false;
40 | Undo.RecordObject(sceneGraph, "Removed graph");
41 | sceneGraph.graph = null;
42 | }
43 | GUI.color = Color.white;
44 | if (GUILayout.Button("Cancel")) {
45 | removeSafely = false;
46 | }
47 | GUILayout.EndHorizontal();
48 | } else {
49 | GUI.color = new Color(1, 0.8f, 0.8f);
50 | if (GUILayout.Button("Remove graph")) {
51 | removeSafely = true;
52 | }
53 | GUI.color = Color.white;
54 | }
55 | }
56 | }
57 |
58 | private void OnEnable() {
59 | sceneGraph = target as SceneGraph;
60 | Type sceneGraphType = sceneGraph.GetType();
61 | if (sceneGraphType == typeof(SceneGraph)) {
62 | graphType = null;
63 | } else {
64 | Type baseType = sceneGraphType.BaseType;
65 | if (baseType.IsGenericType) {
66 | graphType = sceneGraphType = baseType.GetGenericArguments() [0];
67 | }
68 | }
69 | }
70 |
71 | public void CreateGraph(Type type) {
72 | Undo.RecordObject(sceneGraph, "Create graph");
73 | sceneGraph.graph = ScriptableObject.CreateInstance(type) as NodeGraph;
74 | sceneGraph.graph.name = sceneGraph.name + "-graph";
75 | }
76 | }
77 | }
--------------------------------------------------------------------------------
/Assets/Editor/XNode/Node/DialogBaseNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using XNode;
5 | using Node = XNode.Node;
6 |
7 | namespace ET
8 | {
9 | [Serializable]
10 | public abstract class DialogBaseNode:Node
11 | {
12 | [Header("BaseValue")]
13 | public long NodeId; //结点ID
14 |
15 | //MARKER:可以有多个输入,但是只能有一个输出
16 | [Input(ShowBackingValue.Never)]
17 | [HideInInspector]
18 | public List Input = new List();
19 |
20 | [Output(ShowBackingValue.Never)]
21 | [HideInInspector]
22 | public long Output;
23 |
24 |
25 | public virtual void Trigger(DialogTree dialogTree)
26 | {
27 | this.LoadAllConnected();// 只在Trigger时获取
28 | }
29 |
30 | protected void LoadAllConnected()
31 | {
32 | this.Input.Clear();
33 | foreach (var nodeId in this.GetInputValues("Input"))
34 | {
35 | this.Input.Add(nodeId);
36 | }
37 |
38 | NodePort connection = this.GetOutputPort("Output").Connection;
39 | if (connection != null)
40 | {
41 | DialogBaseNode toNode = connection.node as DialogBaseNode;
42 | this.Output = toNode.NodeId;
43 | }
44 | else
45 | {
46 | this.Output = 0;
47 | }
48 | }
49 |
50 |
51 | public override object GetValue(NodePort port)
52 | {
53 | return this.NodeId;
54 | }
55 |
56 |
57 | // public override void OnCreateConnection(NodePort from, NodePort to)
58 | // {
59 | // DialogBaseNode fromNode = from.node as DialogBaseNode;
60 | // DialogBaseNode toNode = to.node as DialogBaseNode;
61 | //
62 | // if (fromNode == this)
63 | // {
64 | // if (fromNode.isConnectedOutput)
65 | // {
66 | // Debug.LogError("Output can only has one connection!");
67 | // }
68 | // else
69 | // {
70 | // fromNode.Output = toNode.NodeId;
71 | // fromNode.isConnectedOutput = true;
72 | // }
73 | // }
74 | // else if (toNode == this)
75 | // {
76 | // if (!toNode.Input.Contains(fromNode.NodeId))
77 | // {
78 | // toNode.Input.Add(fromNode.NodeId);
79 | // }
80 | // }
81 | //
82 | //
83 | //
84 | //
85 | // }
86 | //
87 | // public override void OnRemoveConnection(NodePort port)
88 | // {
89 | // if (port.IsInput)
90 | // {
91 | // //直接重新刷新this.Input
92 | // this.Input.Clear();
93 | // foreach (long nodeId in port.GetInputValues())
94 | // {
95 | // this.Input.Add(nodeId);
96 | // }
97 | // }
98 | // else if (port.IsOutput)
99 | // {
100 | // this.isConnectedOutput = false;
101 | // }
102 | // }
103 | }
104 | }
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/Program.cs:
--------------------------------------------------------------------------------
1 | using LitJson;
2 | using System;
3 | using System.CodeDom.Compiler;
4 | using System.Collections.Generic;
5 | using System.Reflection;
6 | using Microsoft.CSharp;
7 |
8 |
9 | [LitJson.PolymorphismJson]
10 | public interface IPolymorphismFromJson
11 | {
12 | }
13 |
14 |
15 | [Serializable]
16 | public class ClassBaseA : IPolymorphismFromJson
17 | {
18 | public int a;
19 | }
20 |
21 | [Serializable]
22 | public class ClassExtendB : ClassBaseA
23 | {
24 | public int b;
25 | }
26 |
27 | [Serializable]
28 | public class ClassExtendC : ClassBaseA
29 | {
30 | public int c;
31 | }
32 |
33 | [Serializable]
34 | public class ClassExtendD : ClassExtendB
35 | {
36 | public int d;
37 | }
38 |
39 | [Serializable]
40 | public class SerializeClass
41 | {
42 | public int normalField = 1;
43 | public ClassBaseA specialFiled;
44 | }
45 |
46 | class Program
47 | {
48 | public static int Add(int a, int b)
49 | {
50 | return a * b;
51 | }
52 |
53 | public static int RealAdd(int a, int b)
54 | {
55 | return a + b;
56 | }
57 |
58 | public static void Main(string[] args)
59 | {
60 | var b = new ClassExtendB() {a = 1, b = 2};
61 | SerializeClass toJsonObject = new SerializeClass() {specialFiled = b};
62 |
63 | var d = new ClassExtendD() {a = 2, b = 5, d = 8};
64 | SerializeClass toJsonObject2 = new SerializeClass() {normalField = 2, specialFiled = d};
65 |
66 | var c = new ClassExtendC() {a = 3, c = 6};
67 | SerializeClass toJsonObject3 = new SerializeClass() {normalField = 3, specialFiled = c};
68 |
69 | List lists = new List() {toJsonObject, toJsonObject2, toJsonObject3};
70 |
71 | // 序列化
72 | var jsonString = LitJson.JsonMapper.ToJson(toJsonObject);
73 | Console.WriteLine(jsonString);
74 |
75 | // 反序列化
76 | SerializeClass fromJsonObject = LitJson.JsonMapper.ToObject(jsonString);
77 | Console.WriteLine(LitJson.JsonMapper.ToJson(fromJsonObject));
78 |
79 | Console.WriteLine("==================");
80 |
81 | // 序列化
82 | var jsonString2 = LitJson.JsonMapper.ToJson(toJsonObject2);
83 | Console.WriteLine(jsonString2);
84 |
85 | // 反序列化
86 | SerializeClass fromJsonObject2 = LitJson.JsonMapper.ToObject(jsonString2);
87 | Console.WriteLine(LitJson.JsonMapper.ToJson(fromJsonObject2));
88 |
89 | Console.WriteLine("==================");
90 |
91 | // 序列化
92 | var jsonString3 = LitJson.JsonMapper.ToJson(toJsonObject3);
93 | Console.WriteLine(jsonString3);
94 |
95 | // 反序列化
96 | SerializeClass fromJsonObject3 = LitJson.JsonMapper.ToObject(jsonString3);
97 | Console.WriteLine(LitJson.JsonMapper.ToJson(fromJsonObject3));
98 |
99 | Console.WriteLine("==================");
100 |
101 | // 序列化
102 | var jsonString4 = LitJson.JsonMapper.ToJson(lists);
103 | Console.WriteLine(jsonString4);
104 |
105 | // 反序列化
106 | var fromJsonObject4 = LitJson.JsonMapper.ToObject>(jsonString4);
107 | Console.WriteLine(LitJson.JsonMapper.ToJson(fromJsonObject4));
108 |
109 | Console.ReadKey();
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/LitJsonPolymorphism.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {561794F5-EABC-4539-BA49-7A1E1F677785}
8 | Exe
9 | Properties
10 | LitJsonPolymorphism
11 | LitJsonPolymorphism
12 | v4.7.2
13 | 512
14 | true
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | AnyCPU
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 |
37 | bin\Debug\LitJSON.dll
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/RenamePopup.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 |
4 | namespace XNodeEditor {
5 | /// Utility for renaming assets
6 | public class RenamePopup : EditorWindow {
7 | private const string inputControlName = "nameInput";
8 |
9 | public static RenamePopup current { get; private set; }
10 | public Object target;
11 | public string input;
12 |
13 | private bool firstFrame = true;
14 |
15 | /// Show a rename popup for an asset at mouse position. Will trigger reimport of the asset on apply.
16 | public static RenamePopup Show(Object target, float width = 200) {
17 | RenamePopup window = EditorWindow.GetWindow(true, "Rename " + target.name, true);
18 | if (current != null) current.Close();
19 | current = window;
20 | window.target = target;
21 | window.input = target.name;
22 | window.minSize = new Vector2(100, 44);
23 | window.position = new Rect(0, 0, width, 44);
24 | window.UpdatePositionToMouse();
25 | return window;
26 | }
27 |
28 | private void UpdatePositionToMouse() {
29 | if (Event.current == null) return;
30 | Vector3 mousePoint = GUIUtility.GUIToScreenPoint(Event.current.mousePosition);
31 | Rect pos = position;
32 | pos.x = mousePoint.x - position.width * 0.5f;
33 | pos.y = mousePoint.y - 10;
34 | position = pos;
35 | }
36 |
37 | private void OnLostFocus() {
38 | // Make the popup close on lose focus
39 | Close();
40 | }
41 |
42 | private void OnGUI() {
43 | if (firstFrame) {
44 | UpdatePositionToMouse();
45 | firstFrame = false;
46 | }
47 | GUI.SetNextControlName(inputControlName);
48 | input = EditorGUILayout.TextField(input);
49 | EditorGUI.FocusTextInControl(inputControlName);
50 | Event e = Event.current;
51 | // If input is empty, revert name to default instead
52 | if (input == null || input.Trim() == "") {
53 | if (GUILayout.Button("Revert to default") || (e.isKey && e.keyCode == KeyCode.Return)) {
54 | target.name = NodeEditorUtilities.NodeDefaultName(target.GetType());
55 | NodeEditor.GetEditor((XNode.Node)target, NodeEditorWindow.current).OnRename();
56 | AssetDatabase.SetMainObject((target as XNode.Node).graph, AssetDatabase.GetAssetPath(target));
57 | AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(target));
58 | Close();
59 | target.TriggerOnValidate();
60 | }
61 | }
62 | // Rename asset to input text
63 | else {
64 | if (GUILayout.Button("Apply") || (e.isKey && e.keyCode == KeyCode.Return)) {
65 | target.name = input;
66 | NodeEditor.GetEditor((XNode.Node)target, NodeEditorWindow.current).OnRename();
67 | AssetDatabase.SetMainObject((target as XNode.Node).graph, AssetDatabase.GetAssetPath(target));
68 | AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(target));
69 | Close();
70 | target.TriggerOnValidate();
71 | }
72 | }
73 |
74 | if (e.isKey && e.keyCode == KeyCode.Escape) {
75 | Close();
76 | }
77 | }
78 |
79 | private void OnDestroy() {
80 | EditorGUIUtility.editingTextField = false;
81 | }
82 | }
83 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Reflection;
5 | using UnityEditor;
6 | using UnityEngine;
7 | #if ODIN_INSPECTOR
8 | using Sirenix.OdinInspector.Editor;
9 | #endif
10 |
11 | namespace XNodeEditor.Internal {
12 | /// Handles caching of custom editor classes and their target types. Accessible with GetEditor(Type type)
13 | /// Editor Type. Should be the type of the deriving script itself (eg. NodeEditor)
14 | /// Attribute Type. The attribute used to connect with the runtime type (eg. CustomNodeEditorAttribute)
15 | /// Runtime Type. The ScriptableObject this can be an editor for (eg. Node)
16 | public abstract class NodeEditorBase where A : Attribute, NodeEditorBase.INodeEditorAttrib where T : NodeEditorBase where K : ScriptableObject {
17 | /// Custom editors defined with [CustomNodeEditor]
18 | private static Dictionary editorTypes;
19 | private static Dictionary editors = new Dictionary();
20 | public NodeEditorWindow window;
21 | public K target;
22 | public SerializedObject serializedObject;
23 | #if ODIN_INSPECTOR
24 | private PropertyTree _objectTree;
25 | public PropertyTree objectTree {
26 | get {
27 | if (this._objectTree == null) {
28 | try {
29 | bool wasInEditor = NodeEditor.inNodeEditor;
30 | NodeEditor.inNodeEditor = true;
31 | this._objectTree = PropertyTree.Create(this.serializedObject);
32 | NodeEditor.inNodeEditor = wasInEditor;
33 | } catch (ArgumentException ex) {
34 | Debug.Log(ex);
35 | }
36 | }
37 | return this._objectTree;
38 | }
39 | }
40 | #endif
41 |
42 | public static T GetEditor(K target, NodeEditorWindow window) {
43 | if (target == null) return null;
44 | T editor;
45 | if (!editors.TryGetValue(target, out editor)) {
46 | Type type = target.GetType();
47 | Type editorType = GetEditorType(type);
48 | editor = Activator.CreateInstance(editorType) as T;
49 | editor.target = target;
50 | editor.serializedObject = new SerializedObject(target);
51 | editor.window = window;
52 | editor.OnCreate();
53 | editors.Add(target, editor);
54 | }
55 | if (editor.target == null) editor.target = target;
56 | if (editor.window != window) editor.window = window;
57 | if (editor.serializedObject == null) editor.serializedObject = new SerializedObject(target);
58 | return editor;
59 | }
60 |
61 | private static Type GetEditorType(Type type) {
62 | if (type == null) return null;
63 | if (editorTypes == null) CacheCustomEditors();
64 | Type result;
65 | if (editorTypes.TryGetValue(type, out result)) return result;
66 | //If type isn't found, try base type
67 | return GetEditorType(type.BaseType);
68 | }
69 |
70 | private static void CacheCustomEditors() {
71 | editorTypes = new Dictionary();
72 |
73 | //Get all classes deriving from NodeEditor via reflection
74 | Type[] nodeEditors = typeof(T).GetDerivedTypes();
75 | for (int i = 0; i < nodeEditors.Length; i++) {
76 | if (nodeEditors[i].IsAbstract) continue;
77 | var attribs = nodeEditors[i].GetCustomAttributes(typeof(A), false);
78 | if (attribs == null || attribs.Length == 0) continue;
79 | A attrib = attribs[0] as A;
80 | editorTypes.Add(attrib.GetInspectedType(), nodeEditors[i]);
81 | }
82 | }
83 |
84 | /// Called on creation, after references have been set
85 | public virtual void OnCreate() { }
86 |
87 | public interface INodeEditorAttrib {
88 | Type GetInspectedType();
89 | }
90 | }
91 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorAssetModProcessor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using System.IO;
4 |
5 | namespace XNodeEditor {
6 | /// Deals with modified assets
7 | class NodeEditorAssetModProcessor : UnityEditor.AssetModificationProcessor {
8 |
9 | /// Automatically delete Node sub-assets before deleting their script.
10 | /// This is important to do, because you can't delete null sub assets.
11 | /// For another workaround, see: https://gitlab.com/RotaryHeart-UnityShare/subassetmissingscriptdelete
12 | private static AssetDeleteResult OnWillDeleteAsset (string path, RemoveAssetOptions options) {
13 | // Skip processing anything without the .cs extension
14 | if (Path.GetExtension(path) != ".cs") return AssetDeleteResult.DidNotDelete;
15 |
16 | // Get the object that is requested for deletion
17 | UnityEngine.Object obj = AssetDatabase.LoadAssetAtPath (path);
18 |
19 | // If we aren't deleting a script, return
20 | if (!(obj is UnityEditor.MonoScript)) return AssetDeleteResult.DidNotDelete;
21 |
22 | // Check script type. Return if deleting a non-node script
23 | UnityEditor.MonoScript script = obj as UnityEditor.MonoScript;
24 | System.Type scriptType = script.GetClass ();
25 | if (scriptType == null || (scriptType != typeof (XNode.Node) && !scriptType.IsSubclassOf (typeof (XNode.Node)))) return AssetDeleteResult.DidNotDelete;
26 |
27 | // Find all ScriptableObjects using this script
28 | string[] guids = AssetDatabase.FindAssets ("t:" + scriptType);
29 | for (int i = 0; i < guids.Length; i++) {
30 | string assetpath = AssetDatabase.GUIDToAssetPath (guids[i]);
31 | Object[] objs = AssetDatabase.LoadAllAssetRepresentationsAtPath (assetpath);
32 | for (int k = 0; k < objs.Length; k++) {
33 | XNode.Node node = objs[k] as XNode.Node;
34 | if (node.GetType () == scriptType) {
35 | if (node != null && node.graph != null) {
36 | // Delete the node and notify the user
37 | Debug.LogWarning (node.name + " of " + node.graph + " depended on deleted script and has been removed automatically.", node.graph);
38 | node.graph.RemoveNode (node);
39 | }
40 | }
41 | }
42 | }
43 | // We didn't actually delete the script. Tell the internal system to carry on with normal deletion procedure
44 | return AssetDeleteResult.DidNotDelete;
45 | }
46 |
47 | /// Automatically re-add loose node assets to the Graph node list
48 | [InitializeOnLoadMethod]
49 | private static void OnReloadEditor () {
50 | // Find all NodeGraph assets
51 | string[] guids = AssetDatabase.FindAssets ("t:" + typeof (XNode.NodeGraph));
52 | for (int i = 0; i < guids.Length; i++) {
53 | string assetpath = AssetDatabase.GUIDToAssetPath (guids[i]);
54 | XNode.NodeGraph graph = AssetDatabase.LoadAssetAtPath (assetpath, typeof (XNode.NodeGraph)) as XNode.NodeGraph;
55 | graph.nodes.RemoveAll(x => x == null); //Remove null items
56 | Object[] objs = AssetDatabase.LoadAllAssetRepresentationsAtPath (assetpath);
57 | // Ensure that all sub node assets are present in the graph node list
58 | for (int u = 0; u < objs.Length; u++) {
59 | // Ignore null sub assets
60 | if (objs[u] == null) continue;
61 | if (!graph.nodes.Contains (objs[u] as XNode.Node)) graph.nodes.Add(objs[u] as XNode.Node);
62 | }
63 | }
64 | }
65 | }
66 | }
--------------------------------------------------------------------------------
/Assets/ThirdParty/LitJsonPolymorphism/JsonMockWrapper.cs:
--------------------------------------------------------------------------------
1 | #region Header
2 | /**
3 | * JsonMockWrapper.cs
4 | * Mock object implementing IJsonWrapper, to facilitate actions like
5 | * skipping data more efficiently.
6 | *
7 | * The authors disclaim copyright to this source code. For more details, see
8 | * the COPYING file included with this distribution.
9 | **/
10 | #endregion
11 |
12 |
13 | using System;
14 | using System.Collections;
15 | using System.Collections.Specialized;
16 |
17 |
18 | namespace LitJson
19 | {
20 | public class JsonMockWrapper : IJsonWrapper
21 | {
22 | public bool IsArray { get { return false; } }
23 | public bool IsBoolean { get { return false; } }
24 | public bool IsDouble { get { return false; } }
25 | public bool IsInt { get { return false; } }
26 | public bool IsLong { get { return false; } }
27 | public bool IsObject { get { return false; } }
28 | public bool IsString { get { return false; } }
29 |
30 | public bool GetBoolean () { return false; }
31 | public double GetDouble () { return 0.0; }
32 | public int GetInt () { return 0; }
33 | public JsonType GetJsonType () { return JsonType.None; }
34 | public long GetLong () { return 0L; }
35 | public string GetString () { return ""; }
36 |
37 | public void SetBoolean (bool val) {}
38 | public void SetDouble (double val) {}
39 | public void SetInt (int val) {}
40 | public void SetJsonType (JsonType type) {}
41 | public void SetLong (long val) {}
42 | public void SetString (string val) {}
43 |
44 | public string ToJson () { return ""; }
45 | public void ToJson (JsonWriter writer) {}
46 |
47 |
48 | bool IList.IsFixedSize { get { return true; } }
49 | bool IList.IsReadOnly { get { return true; } }
50 |
51 | object IList.this[int index] {
52 | get { return null; }
53 | set {}
54 | }
55 |
56 | int IList.Add (object value) { return 0; }
57 | void IList.Clear () {}
58 | bool IList.Contains (object value) { return false; }
59 | int IList.IndexOf (object value) { return -1; }
60 | void IList.Insert (int i, object v) {}
61 | void IList.Remove (object value) {}
62 | void IList.RemoveAt (int index) {}
63 |
64 |
65 | int ICollection.Count { get { return 0; } }
66 | bool ICollection.IsSynchronized { get { return false; } }
67 | object ICollection.SyncRoot { get { return null; } }
68 |
69 | void ICollection.CopyTo (Array array, int index) {}
70 |
71 |
72 | IEnumerator IEnumerable.GetEnumerator () { return null; }
73 |
74 |
75 | bool IDictionary.IsFixedSize { get { return true; } }
76 | bool IDictionary.IsReadOnly { get { return true; } }
77 |
78 | ICollection IDictionary.Keys { get { return null; } }
79 | ICollection IDictionary.Values { get { return null; } }
80 |
81 | object IDictionary.this[object key] {
82 | get { return null; }
83 | set {}
84 | }
85 |
86 | void IDictionary.Add (object k, object v) {}
87 | void IDictionary.Clear () {}
88 | bool IDictionary.Contains (object key) { return false; }
89 | void IDictionary.Remove (object key) {}
90 |
91 | IDictionaryEnumerator IDictionary.GetEnumerator () { return null; }
92 |
93 |
94 | object IOrderedDictionary.this[int idx] {
95 | get { return null; }
96 | set {}
97 | }
98 |
99 | IDictionaryEnumerator IOrderedDictionary.GetEnumerator () {
100 | return null;
101 | }
102 | void IOrderedDictionary.Insert (int i, object k, object v) {}
103 | void IOrderedDictionary.RemoveAt (int i) {}
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/Editor/NodeEditorResources.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 |
4 | namespace XNodeEditor {
5 | public static class NodeEditorResources {
6 | // Textures
7 | public static Texture2D dot { get { return _dot != null ? _dot : _dot = Resources.Load("xnode_dot"); } }
8 | private static Texture2D _dot;
9 | public static Texture2D dotOuter { get { return _dotOuter != null ? _dotOuter : _dotOuter = Resources.Load("xnode_dot_outer"); } }
10 | private static Texture2D _dotOuter;
11 | public static Texture2D nodeBody { get { return _nodeBody != null ? _nodeBody : _nodeBody = Resources.Load("xnode_node"); } }
12 | private static Texture2D _nodeBody;
13 | public static Texture2D nodeHighlight { get { return _nodeHighlight != null ? _nodeHighlight : _nodeHighlight = Resources.Load("xnode_node_highlight"); } }
14 | private static Texture2D _nodeHighlight;
15 |
16 | // Styles
17 | public static Styles styles { get { return _styles != null ? _styles : _styles = new Styles(); } }
18 | public static Styles _styles = null;
19 | public static GUIStyle OutputPort { get { return new GUIStyle(EditorStyles.label) { alignment = TextAnchor.UpperRight }; } }
20 | public class Styles {
21 | public GUIStyle inputPort, nodeHeader, nodeBody, tooltip, nodeHighlight;
22 |
23 | public Styles() {
24 | GUIStyle baseStyle = new GUIStyle("Label");
25 | baseStyle.fixedHeight = 18;
26 |
27 | inputPort = new GUIStyle(baseStyle);
28 | inputPort.alignment = TextAnchor.UpperLeft;
29 | inputPort.padding.left = 10;
30 |
31 | nodeHeader = new GUIStyle();
32 | nodeHeader.alignment = TextAnchor.MiddleCenter;
33 | nodeHeader.fontStyle = FontStyle.Bold;
34 | nodeHeader.normal.textColor = Color.white;
35 |
36 | nodeBody = new GUIStyle();
37 | nodeBody.normal.background = NodeEditorResources.nodeBody;
38 | nodeBody.border = new RectOffset(32, 32, 32, 32);
39 | nodeBody.padding = new RectOffset(16, 16, 4, 16);
40 |
41 | nodeHighlight = new GUIStyle();
42 | nodeHighlight.normal.background = NodeEditorResources.nodeHighlight;
43 | nodeHighlight.border = new RectOffset(32, 32, 32, 32);
44 |
45 | tooltip = new GUIStyle("helpBox");
46 | tooltip.alignment = TextAnchor.MiddleCenter;
47 | }
48 | }
49 |
50 | public static Texture2D GenerateGridTexture(Color line, Color bg) {
51 | Texture2D tex = new Texture2D(64, 64);
52 | Color[] cols = new Color[64 * 64];
53 | for (int y = 0; y < 64; y++) {
54 | for (int x = 0; x < 64; x++) {
55 | Color col = bg;
56 | if (y % 16 == 0 || x % 16 == 0) col = Color.Lerp(line, bg, 0.65f);
57 | if (y == 63 || x == 63) col = Color.Lerp(line, bg, 0.35f);
58 | cols[(y * 64) + x] = col;
59 | }
60 | }
61 | tex.SetPixels(cols);
62 | tex.wrapMode = TextureWrapMode.Repeat;
63 | tex.filterMode = FilterMode.Bilinear;
64 | tex.name = "Grid";
65 | tex.Apply();
66 | return tex;
67 | }
68 |
69 | public static Texture2D GenerateCrossTexture(Color line) {
70 | Texture2D tex = new Texture2D(64, 64);
71 | Color[] cols = new Color[64 * 64];
72 | for (int y = 0; y < 64; y++) {
73 | for (int x = 0; x < 64; x++) {
74 | Color col = line;
75 | if (y != 31 && x != 31) col.a = 0;
76 | cols[(y * 64) + x] = col;
77 | }
78 | }
79 | tex.SetPixels(cols);
80 | tex.wrapMode = TextureWrapMode.Clamp;
81 | tex.filterMode = FilterMode.Bilinear;
82 | tex.name = "Grid";
83 | tex.Apply();
84 | return tex;
85 | }
86 | }
87 | }
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | [](https://discord.gg/qgPrHv4)
4 | [](https://github.com/Siccity/xNode/issues)
5 | [](https://raw.githubusercontent.com/Siccity/xNode/master/LICENSE.md)
6 | [](https://github.com/Siccity/xNode/wiki)
7 |
8 | [Downloads](https://github.com/Siccity/xNode/releases) / [Asset Store](http://u3d.as/108S) / [Documentation](https://github.com/Siccity/xNode/wiki)
9 |
10 | Support xNode on [Ko-fi](https://ko-fi.com/Z8Z5DYWA) or [Patreon](https://www.patreon.com/thorbrigsted)
11 |
12 | ### xNode
13 | Thinking of developing a node-based plugin? Then this is for you. You can download it as an archive and unpack to a new unity project, or connect it as git submodule.
14 |
15 | xNode is super userfriendly, intuitive and will help you reap the benefits of node graphs in no time.
16 | With a minimal footprint, it is ideal as a base for custom state machines, dialogue systems, decision makers etc.
17 |
18 |
19 |
20 |
21 |
22 | ### Key features
23 | * Lightweight in runtime
24 | * Very little boilerplate code
25 | * Strong separation of editor and runtime code
26 | * No runtime reflection (unless you need to edit/build node graphs at runtime. In this case, all reflection is cached.)
27 | * Does not rely on any 3rd party plugins
28 | * Custom node inspector code is very similar to regular custom inspector code
29 | * Supported from Unity 5.3 and up
30 |
31 | ### Wiki
32 | * [Getting started](https://github.com/Siccity/xNode/wiki/Getting%20Started) - create your very first node node and graph
33 | * [Examples branch](https://github.com/Siccity/xNode/tree/examples) - look at other small projects
34 |
35 | ### Installing with Unity Package Manager
36 | *(Requires Unity version 2018.3.0b7 or above)*
37 |
38 | To install this project as a [Git dependency](https://docs.unity3d.com/Manual/upm-git.html) using the Unity Package Manager,
39 | add the following line to your project's `manifest.json`:
40 |
41 | ```
42 | "com.github.siccity.xnode": "https://github.com/siccity/xNode.git"
43 | ```
44 |
45 | You will need to have Git installed and available in your system's PATH.
46 |
47 | If you are using [Assembly Definitions](https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html) in your project, you will need to add `XNode` and/or `XNodeEditor` as Assembly Definition References.
48 |
49 | ### Node example:
50 | ```csharp
51 | // public classes deriving from Node are registered as nodes for use within a graph
52 | public class MathNode : Node {
53 | // Adding [Input] or [Output] is all you need to do to register a field as a valid port on your node
54 | [Input] public float a;
55 | [Input] public float b;
56 | // The value of an output node field is not used for anything, but could be used for caching output results
57 | [Output] public float result;
58 | [Output] public float sum;
59 |
60 | // The value of 'mathType' will be displayed on the node in an editable format, similar to the inspector
61 | public MathType mathType = MathType.Add;
62 | public enum MathType { Add, Subtract, Multiply, Divide}
63 |
64 | // GetValue should be overridden to return a value for any specified output port
65 | public override object GetValue(NodePort port) {
66 |
67 | // Get new a and b values from input connections. Fallback to field values if input is not connected
68 | float a = GetInputValue("a", this.a);
69 | float b = GetInputValue("b", this.b);
70 |
71 | // After you've gotten your input values, you can perform your calculations and return a value
72 | if (port.fieldName == "result")
73 | switch(mathType) {
74 | case MathType.Add: default: return a + b;
75 | case MathType.Subtract: return a - b;
76 | case MathType.Multiply: return a * b;
77 | case MathType.Divide: return a / b;
78 | }
79 | else if (port.fieldName == "sum") return a + b;
80 | else return 0f;
81 | }
82 | }
83 | ```
84 |
85 | Join the [Discord](https://discord.gg/qgPrHv4 "Join Discord server") server to leave feedback or get support.
86 | Feel free to also leave suggestions/requests in the [issues](https://github.com/Siccity/xNode/issues "Go to Issues") page.
87 |
--------------------------------------------------------------------------------
/Assets/Editor/xNode-1.8.0/Scripts/NodeGraph.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | namespace XNode {
6 | /// Base class for all node graphs
7 | [Serializable]
8 | public abstract class NodeGraph : ScriptableObject {
9 |
10 | /// All nodes in the graph.
11 | /// See:
12 | [SerializeField] public List nodes = new List();
13 |
14 | /// Add a node to the graph by type (convenience method - will call the System.Type version)
15 | public T AddNode() where T : Node {
16 | return AddNode(typeof(T)) as T;
17 | }
18 |
19 | /// Add a node to the graph by type
20 | public virtual Node AddNode(Type type) {
21 | Node.graphHotfix = this;
22 | Node node = ScriptableObject.CreateInstance(type) as Node;
23 | node.graph = this;
24 | nodes.Add(node);
25 | return node;
26 | }
27 |
28 | /// Creates a copy of the original node in the graph
29 | public virtual Node CopyNode(Node original) {
30 | Node.graphHotfix = this;
31 | Node node = ScriptableObject.Instantiate(original);
32 | node.graph = this;
33 | node.ClearConnections();
34 | nodes.Add(node);
35 | return node;
36 | }
37 |
38 | /// Safely remove a node and all its connections
39 | /// The node to remove
40 | public virtual void RemoveNode(Node node) {
41 | node.ClearConnections();
42 | nodes.Remove(node);
43 | if (Application.isPlaying) Destroy(node);
44 | }
45 |
46 | /// Remove all nodes and connections from the graph
47 | public virtual void Clear() {
48 | if (Application.isPlaying) {
49 | for (int i = 0; i < nodes.Count; i++) {
50 | Destroy(nodes[i]);
51 | }
52 | }
53 | nodes.Clear();
54 | }
55 |
56 | /// Create a new deep copy of this graph
57 | public virtual XNode.NodeGraph Copy() {
58 | // Instantiate a new nodegraph instance
59 | NodeGraph graph = Instantiate(this);
60 | // Instantiate all nodes inside the graph
61 | for (int i = 0; i < nodes.Count; i++) {
62 | if (nodes[i] == null) continue;
63 | Node.graphHotfix = graph;
64 | Node node = Instantiate(nodes[i]) as Node;
65 | node.graph = graph;
66 | graph.nodes[i] = node;
67 | }
68 |
69 | // Redirect all connections
70 | for (int i = 0; i < graph.nodes.Count; i++) {
71 | if (graph.nodes[i] == null) continue;
72 | foreach (NodePort port in graph.nodes[i].Ports) {
73 | port.Redirect(nodes, graph.nodes);
74 | }
75 | }
76 |
77 | return graph;
78 | }
79 |
80 | protected virtual void OnDestroy() {
81 | // Remove all nodes prior to graph destruction
82 | Clear();
83 | }
84 |
85 | #region Attributes
86 | /// Automatically ensures the existance of a certain node type, and prevents it from being deleted.
87 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
88 | public class RequireNodeAttribute : Attribute {
89 | public Type type0;
90 | public Type type1;
91 | public Type type2;
92 |
93 | /// Automatically ensures the existance of a certain node type, and prevents it from being deleted
94 | public RequireNodeAttribute(Type type) {
95 | this.type0 = type;
96 | this.type1 = null;
97 | this.type2 = null;
98 | }
99 |
100 | /// Automatically ensures the existance of a certain node type, and prevents it from being deleted
101 | public RequireNodeAttribute(Type type, Type type2) {
102 | this.type0 = type;
103 | this.type1 = type2;
104 | this.type2 = null;
105 | }
106 |
107 | /// Automatically ensures the existance of a certain node type, and prevents it from being deleted
108 | public RequireNodeAttribute(Type type, Type type2, Type type3) {
109 | this.type0 = type;
110 | this.type1 = type2;
111 | this.type2 = type3;
112 | }
113 |
114 | public bool Requires(Type type) {
115 | if (type == null) return false;
116 | if (type == type0) return true;
117 | else if (type == type1) return true;
118 | else if (type == type2) return true;
119 | return false;
120 | }
121 | }
122 | #endregion
123 | }
124 | }
--------------------------------------------------------------------------------
/ProjectSettings/InputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!13 &1
4 | InputManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Axes:
8 | - serializedVersion: 3
9 | m_Name: Horizontal
10 | descriptiveName:
11 | descriptiveNegativeName:
12 | negativeButton: left
13 | positiveButton: right
14 | altNegativeButton: a
15 | altPositiveButton: d
16 | gravity: 3
17 | dead: 0.001
18 | sensitivity: 3
19 | snap: 1
20 | invert: 0
21 | type: 0
22 | axis: 0
23 | joyNum: 0
24 | - serializedVersion: 3
25 | m_Name: Vertical
26 | descriptiveName:
27 | descriptiveNegativeName:
28 | negativeButton: down
29 | positiveButton: up
30 | altNegativeButton: s
31 | altPositiveButton: w
32 | gravity: 3
33 | dead: 0.001
34 | sensitivity: 3
35 | snap: 1
36 | invert: 0
37 | type: 0
38 | axis: 0
39 | joyNum: 0
40 | - serializedVersion: 3
41 | m_Name: Fire1
42 | descriptiveName:
43 | descriptiveNegativeName:
44 | negativeButton:
45 | positiveButton: left ctrl
46 | altNegativeButton:
47 | altPositiveButton: mouse 0
48 | gravity: 1000
49 | dead: 0.001
50 | sensitivity: 1000
51 | snap: 0
52 | invert: 0
53 | type: 0
54 | axis: 0
55 | joyNum: 0
56 | - serializedVersion: 3
57 | m_Name: Fire2
58 | descriptiveName:
59 | descriptiveNegativeName:
60 | negativeButton:
61 | positiveButton: left alt
62 | altNegativeButton:
63 | altPositiveButton: mouse 1
64 | gravity: 1000
65 | dead: 0.001
66 | sensitivity: 1000
67 | snap: 0
68 | invert: 0
69 | type: 0
70 | axis: 0
71 | joyNum: 0
72 | - serializedVersion: 3
73 | m_Name: Fire3
74 | descriptiveName:
75 | descriptiveNegativeName:
76 | negativeButton:
77 | positiveButton: left shift
78 | altNegativeButton:
79 | altPositiveButton: mouse 2
80 | gravity: 1000
81 | dead: 0.001
82 | sensitivity: 1000
83 | snap: 0
84 | invert: 0
85 | type: 0
86 | axis: 0
87 | joyNum: 0
88 | - serializedVersion: 3
89 | m_Name: Jump
90 | descriptiveName:
91 | descriptiveNegativeName:
92 | negativeButton:
93 | positiveButton: space
94 | altNegativeButton:
95 | altPositiveButton:
96 | gravity: 1000
97 | dead: 0.001
98 | sensitivity: 1000
99 | snap: 0
100 | invert: 0
101 | type: 0
102 | axis: 0
103 | joyNum: 0
104 | - serializedVersion: 3
105 | m_Name: Mouse X
106 | descriptiveName:
107 | descriptiveNegativeName:
108 | negativeButton:
109 | positiveButton:
110 | altNegativeButton:
111 | altPositiveButton:
112 | gravity: 0
113 | dead: 0
114 | sensitivity: 0.1
115 | snap: 0
116 | invert: 0
117 | type: 1
118 | axis: 0
119 | joyNum: 0
120 | - serializedVersion: 3
121 | m_Name: Mouse Y
122 | descriptiveName:
123 | descriptiveNegativeName:
124 | negativeButton:
125 | positiveButton:
126 | altNegativeButton:
127 | altPositiveButton:
128 | gravity: 0
129 | dead: 0
130 | sensitivity: 0.1
131 | snap: 0
132 | invert: 0
133 | type: 1
134 | axis: 1
135 | joyNum: 0
136 | - serializedVersion: 3
137 | m_Name: Mouse ScrollWheel
138 | descriptiveName:
139 | descriptiveNegativeName:
140 | negativeButton:
141 | positiveButton:
142 | altNegativeButton:
143 | altPositiveButton:
144 | gravity: 0
145 | dead: 0
146 | sensitivity: 0.1
147 | snap: 0
148 | invert: 0
149 | type: 1
150 | axis: 2
151 | joyNum: 0
152 | - serializedVersion: 3
153 | m_Name: Horizontal
154 | descriptiveName:
155 | descriptiveNegativeName:
156 | negativeButton:
157 | positiveButton:
158 | altNegativeButton:
159 | altPositiveButton:
160 | gravity: 0
161 | dead: 0.19
162 | sensitivity: 1
163 | snap: 0
164 | invert: 0
165 | type: 2
166 | axis: 0
167 | joyNum: 0
168 | - serializedVersion: 3
169 | m_Name: Vertical
170 | descriptiveName:
171 | descriptiveNegativeName:
172 | negativeButton:
173 | positiveButton:
174 | altNegativeButton:
175 | altPositiveButton:
176 | gravity: 0
177 | dead: 0.19
178 | sensitivity: 1
179 | snap: 0
180 | invert: 1
181 | type: 2
182 | axis: 1
183 | joyNum: 0
184 | - serializedVersion: 3
185 | m_Name: Fire1
186 | descriptiveName:
187 | descriptiveNegativeName:
188 | negativeButton:
189 | positiveButton: joystick button 0
190 | altNegativeButton:
191 | altPositiveButton:
192 | gravity: 1000
193 | dead: 0.001
194 | sensitivity: 1000
195 | snap: 0
196 | invert: 0
197 | type: 0
198 | axis: 0
199 | joyNum: 0
200 | - serializedVersion: 3
201 | m_Name: Fire2
202 | descriptiveName:
203 | descriptiveNegativeName:
204 | negativeButton:
205 | positiveButton: joystick button 1
206 | altNegativeButton:
207 | altPositiveButton:
208 | gravity: 1000
209 | dead: 0.001
210 | sensitivity: 1000
211 | snap: 0
212 | invert: 0
213 | type: 0
214 | axis: 0
215 | joyNum: 0
216 | - serializedVersion: 3
217 | m_Name: Fire3
218 | descriptiveName:
219 | descriptiveNegativeName:
220 | negativeButton:
221 | positiveButton: joystick button 2
222 | altNegativeButton:
223 | altPositiveButton:
224 | gravity: 1000
225 | dead: 0.001
226 | sensitivity: 1000
227 | snap: 0
228 | invert: 0
229 | type: 0
230 | axis: 0
231 | joyNum: 0
232 | - serializedVersion: 3
233 | m_Name: Jump
234 | descriptiveName:
235 | descriptiveNegativeName:
236 | negativeButton:
237 | positiveButton: joystick button 3
238 | altNegativeButton:
239 | altPositiveButton:
240 | gravity: 1000
241 | dead: 0.001
242 | sensitivity: 1000
243 | snap: 0
244 | invert: 0
245 | type: 0
246 | axis: 0
247 | joyNum: 0
248 | - serializedVersion: 3
249 | m_Name: Submit
250 | descriptiveName:
251 | descriptiveNegativeName:
252 | negativeButton:
253 | positiveButton: return
254 | altNegativeButton:
255 | altPositiveButton: joystick button 0
256 | gravity: 1000
257 | dead: 0.001
258 | sensitivity: 1000
259 | snap: 0
260 | invert: 0
261 | type: 0
262 | axis: 0
263 | joyNum: 0
264 | - serializedVersion: 3
265 | m_Name: Submit
266 | descriptiveName:
267 | descriptiveNegativeName:
268 | negativeButton:
269 | positiveButton: enter
270 | altNegativeButton:
271 | altPositiveButton: space
272 | gravity: 1000
273 | dead: 0.001
274 | sensitivity: 1000
275 | snap: 0
276 | invert: 0
277 | type: 0
278 | axis: 0
279 | joyNum: 0
280 | - serializedVersion: 3
281 | m_Name: Cancel
282 | descriptiveName:
283 | descriptiveNegativeName:
284 | negativeButton:
285 | positiveButton: escape
286 | altNegativeButton:
287 | altPositiveButton: joystick button 1
288 | gravity: 1000
289 | dead: 0.001
290 | sensitivity: 1000
291 | snap: 0
292 | invert: 0
293 | type: 0
294 | axis: 0
295 | joyNum: 0
296 |
--------------------------------------------------------------------------------