├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── NetworkManager.asset ├── TimeManager.asset ├── EditorBuildSettings.asset ├── PresetManager.asset ├── AudioManager.asset ├── TagManager.asset ├── EditorSettings.asset ├── UnityConnectSettings.asset ├── DynamicsManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset └── QualitySettings.asset ├── .gitattributes ├── Assets ├── 1px.psd ├── kongtext.ttf ├── Scripts │ ├── Nodes.meta │ ├── Nodes │ │ ├── And.cs.meta │ │ ├── Nor.cs.meta │ │ ├── Not.cs.meta │ │ ├── Or.cs.meta │ │ ├── Xor.cs.meta │ │ ├── Clock.cs.meta │ │ ├── Delayer.cs.meta │ │ ├── Label.cs.meta │ │ ├── Nand.cs.meta │ │ ├── Pulse.cs.meta │ │ ├── SRLatch.cs.meta │ │ ├── Xnor.cs.meta │ │ ├── BitDisplay.cs.meta │ │ ├── ColorDisplay.cs.meta │ │ ├── EditableNode.cs.meta │ │ ├── JKFlipFlop.cs.meta │ │ ├── PushButton.cs.meta │ │ ├── ToggleButton.cs.meta │ │ ├── EditableNode.cs │ │ ├── Label.cs │ │ ├── ToggleButton.cs │ │ ├── And.cs │ │ ├── Or.cs │ │ ├── Nand.cs │ │ ├── Nor.cs │ │ ├── Xnor.cs │ │ ├── Not.cs │ │ ├── Xor.cs │ │ ├── BitDisplay.cs │ │ ├── PushButton.cs │ │ ├── SRLatch.cs │ │ ├── ColorDisplay.cs │ │ ├── Clock.cs │ │ ├── JKFlipFlop.cs │ │ ├── Pulse.cs │ │ └── Delayer.cs │ ├── Point.cs.meta │ ├── PointIn.cs.meta │ ├── PointOut.cs.meta │ ├── Extenshions.cs.meta │ ├── MainManager.cs.meta │ ├── SaveManager.cs.meta │ ├── Node.cs.meta │ ├── PointOut.cs │ ├── PointIn.cs │ ├── Point.cs │ ├── Extenshions.cs │ ├── Node.cs │ ├── SaveManager.cs │ └── MainManager.cs ├── LineDraw │ ├── Sprites │ │ ├── pixel.PNG │ │ └── pixel.PNG.meta │ ├── Documentation │ │ ├── Read Me.pdf │ │ ├── Read Me.pdf.meta │ │ ├── Read Me.txt.meta │ │ └── Read Me.txt │ ├── Prefabs │ │ ├── Line.prefab.meta │ │ └── Line.prefab │ ├── Materials │ │ ├── Line Mat.mat.meta │ │ └── Line Mat.mat │ ├── Prefabs.meta │ ├── Scripts.meta │ ├── Sprites.meta │ ├── Documentation.meta │ ├── Materials.meta │ └── Scripts │ │ ├── Line.cs.meta │ │ ├── Extensions.cs.meta │ │ ├── LineFactory.cs.meta │ │ ├── Extensions.cs │ │ ├── LineFactory.cs │ │ └── Line.cs ├── blueprints │ ├── rgb.json.meta │ ├── scheme1.json.meta │ ├── colorsStep.json.meta │ ├── colorsStep.json │ ├── scheme1.json │ └── rgb.json ├── Plugins.meta ├── Prefabs.meta ├── Scenes.meta ├── Scenes │ └── SampleScene.unity.meta ├── Scripts.meta ├── blueprints.meta ├── Plugins │ ├── Editor.meta │ └── Editor │ │ ├── JetBrains.meta │ │ └── JetBrains │ │ └── JetBrains.Rider.Unity.Editor.Plugin.Repacked.dll.meta ├── Prefabs │ ├── And.prefab.meta │ ├── Nand.prefab.meta │ ├── Nor.prefab.meta │ ├── Not.prefab.meta │ ├── Or.prefab.meta │ ├── Xnor.prefab.meta │ ├── Xor.prefab.meta │ ├── Button.prefab.meta │ ├── Clock.prefab.meta │ ├── Delay.prefab.meta │ ├── JKTrigger.prefab.meta │ ├── Label.prefab.meta │ ├── Pulse.prefab.meta │ ├── SRLatch.prefab.meta │ ├── BitDisplay.prefab.meta │ ├── ColorDisplay.prefab.meta │ ├── PushButton.prefab.meta │ ├── ToggleButton.prefab.meta │ ├── Label.prefab │ ├── Button.prefab │ ├── PushButton.prefab │ ├── ToggleButton.prefab │ ├── BitDisplay.prefab │ └── Not.prefab ├── LineDraw.meta ├── kongtext.ttf.meta └── 1px.psd.meta ├── .idea └── .idea.NodeLogic │ ├── .idea │ ├── encodings.xml │ ├── indexLayout.xml │ ├── misc.xml │ ├── modules.xml │ └── contentModel.xml │ └── riderModule.iml ├── .gitignore ├── README.md ├── gdf ├── colorsStep.json ├── scheme1.json ├── rgb.json └── Demo.json └── Packages └── manifest.json /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.2.14f1 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Assets/1px.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaximovInk/NodeLogic/HEAD/Assets/1px.psd -------------------------------------------------------------------------------- /Assets/kongtext.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaximovInk/NodeLogic/HEAD/Assets/kongtext.ttf -------------------------------------------------------------------------------- /Assets/Scripts/Nodes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bd6fd6470e140979a021a5ee5f196a7 3 | timeCreated: 1562540543 -------------------------------------------------------------------------------- /Assets/LineDraw/Sprites/pixel.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaximovInk/NodeLogic/HEAD/Assets/LineDraw/Sprites/pixel.PNG -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/And.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c06badead24a4cfda6fe1777973b4f60 3 | timeCreated: 1562541368 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Nor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5bd4b56a6024181b2b800f97aeacea0 3 | timeCreated: 1562594910 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Not.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d2c603593d248439701322f69c3f63b 3 | timeCreated: 1562540537 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Or.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35c342af751e40e7b215bc66959f9c4f 3 | timeCreated: 1562541421 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Xor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef5fdc9cb2064ee58c3bbd16dfbe955a 3 | timeCreated: 1562594913 -------------------------------------------------------------------------------- /Assets/Scripts/Point.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cc5b258fbe2404c91daad0aadd391e9 3 | timeCreated: 1562529360 -------------------------------------------------------------------------------- /Assets/Scripts/PointIn.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcf871e5c50248d5ad7a504e1302bac9 3 | timeCreated: 1562529374 -------------------------------------------------------------------------------- /Assets/Scripts/PointOut.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a7ce06ac94a459e8aa3ec368a1a5a1b 3 | timeCreated: 1562529368 -------------------------------------------------------------------------------- /Assets/Scripts/Extenshions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e817d7232a044ae7b6d22a6bc85021b3 3 | timeCreated: 1562536093 -------------------------------------------------------------------------------- /Assets/Scripts/MainManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d41c4e7f69a04c87926b8ab36086dede 3 | timeCreated: 1562529737 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Clock.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 252e13d62b1a4c1a983637828be7c37d 3 | timeCreated: 1562602252 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Delayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b7af22fb7214c72bf60895df6ce2e9c 3 | timeCreated: 1562589594 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Label.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df396978b5ff43a1b12075766c8ed1ec 3 | timeCreated: 1562773691 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Nand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8579d67db0034b0bacc9fdea019bd884 3 | timeCreated: 1562595091 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Pulse.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af43a61d5cfd40468375b76d18309614 3 | timeCreated: 1562602759 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/SRLatch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5cde029131b14387b47bc19e00aa7ab6 3 | timeCreated: 1562595069 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Xnor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ffaf352bdab470298530cc3313135e7 3 | timeCreated: 1562595239 -------------------------------------------------------------------------------- /Assets/Scripts/SaveManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b3c571e5d87492d94a56c13bba9632e 3 | timeCreated: 1562611705 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/BitDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baecb2c6ea964283a886b1c6c28734ef 3 | timeCreated: 1562538277 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/ColorDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fa64b78702e48f4895493c3044584c1 3 | timeCreated: 1562606147 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/EditableNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4130b8f4a93e4b149a525591ba89c0d6 3 | timeCreated: 1562602266 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/JKFlipFlop.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27e5868d6c8846ef9ed3768b35a9aa1a 3 | timeCreated: 1562595057 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/PushButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b63198fd95e8488a8e536211d89d4cda 3 | timeCreated: 1562538625 -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/ToggleButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b67ffec22d034eb997251d3c7f56db13 3 | timeCreated: 1562540493 -------------------------------------------------------------------------------- /Assets/LineDraw/Documentation/Read Me.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaximovInk/NodeLogic/HEAD/Assets/LineDraw/Documentation/Read Me.pdf -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/EditableNode.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class EditableNode : Node 4 | { 5 | public float value1 = 0.1f; 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Label.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class Label : Node 6 | { 7 | public TextMesh textMesh; 8 | } 9 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.idea/.idea.NodeLogic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Assets/blueprints/rgb.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17649a613f5ffbf42bfb846852411073 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a26198eb2954f3946ad4631043d4dadf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 283b94bc1e0dc0f4eaa00024bb955c4c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 131a6b21c8605f84396be9f6751fb6e3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21923d9a02b12c246b78911738f21f1f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/blueprints/scheme1.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b34ccb1da5040ae4b95ee555b9e15bf0 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /Assets/blueprints.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 623965013b88b7f4aa852fd9dbaf8a74 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/blueprints/colorsStep.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b627dfa3d2512614d8bd60bc67d9df16 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62a67e224c05d7142a8821169e2f7f6b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/JetBrains.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19cb6e4ee7dd0f048aaae3fa23a3b837 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LineDraw/Prefabs/Line.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67db316532143b248b19bb424019b871 3 | timeCreated: 1479287300 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/And.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7ce5f48e944785489a36c8ac3e30eaa 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Nand.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1e2febba4f7be146b5e1cb2478b446d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Nor.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f1ca22d2c393f449bde29a041cf52ff 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Not.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3ce65a30dcf82446a1b73e36bc9679f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Or.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a24a767de4c28841a4ba9090fe14667 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Xnor.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 486f9d7273d66c44d833dc6f89381f60 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Xor.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b877fb6057205274d8b6c01f32066502 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LineDraw/Documentation/Read Me.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 347ecccfed71b49b1bf429d6c7b46c1a 3 | timeCreated: 1484231374 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LineDraw/Documentation/Read Me.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9dad7ac624854094a49f6cd9374ae65 3 | timeCreated: 1484231374 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LineDraw/Materials/Line Mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a699246958f043a4999f047b26871af 3 | timeCreated: 1483466542 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Button.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85fcd24811b081a43a5445c386643250 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Clock.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 339bd4d34c9209042898efde9a8247d9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Delay.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de4fd7cdeab274b4eb00e2c6de46cb84 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/JKTrigger.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8da1954a39cfd364cbd7d7d6c76de2be 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Label.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e60f928e95236a34794bc136aeffb001 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Pulse.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 018c7a17c2508c04cb0b2b6c87cc7070 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/SRLatch.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a4efea0db463764e82b94bfd2a812d4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LineDraw.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66948e96928f0438b9a261615aa8bd63 3 | folderAsset: yes 4 | timeCreated: 1484168630 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Prefabs/BitDisplay.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a97cbd7fe54a72d4b9dad29407e7c328 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/ColorDisplay.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 032739a5eb233fd428a0733450dea8ab 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/PushButton.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 103376e5c02f7804aabcea5dfaa8058a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/ToggleButton.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7eba1727cac541848bd855115817a3c7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LineDraw/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7138f844d66b45d1867d77332290676 3 | folderAsset: yes 4 | timeCreated: 1484168766 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8abd1b8cb4df49b4a1afd7fe5c37f4f 3 | folderAsset: yes 4 | timeCreated: 1484169144 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LineDraw/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f4c0041c56bb49e5a945fc1890e45b3 3 | folderAsset: yes 4 | timeCreated: 1484168762 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LineDraw/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 713c0f0f7616a4d2f8dd0c291ad63112 3 | folderAsset: yes 4 | timeCreated: 1484231122 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LineDraw/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0908bb0b0b385450fa1eb3164394a80f 3 | folderAsset: yes 4 | timeCreated: 1484168770 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /.idea/.idea.NodeLogic/.idea/indexLayout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /.idea/.idea.NodeLogic/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/ToggleButton.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class ToggleButton : Node 4 | { 5 | private void OnMouseDown() 6 | { 7 | OutPoints[0].value = !OutPoints[0].value; 8 | OutPoints[0].OnCircuitChanged(); 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Assets/Scripts/Node.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9580e6b709657343a3ff4dd47bd6695 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /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 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts/Line.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b34068df4b284f60add5d301695f152 3 | timeCreated: 1484169693 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts/Extensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdf1826b0b81542d19f45821e29d0fef 3 | timeCreated: 1484169949 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts/LineFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 814b7461d62334e188b3a43681f700b0 3 | timeCreated: 1484171347 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/And.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class And : Node 4 | { 5 | public override void OnCircuitChange() 6 | { 7 | base.OnCircuitChange(); 8 | OutPoints[0].value = InPoints[0].value && InPoints[1].value; 9 | OutPoints[0].OnCircuitChanged(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Or.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class Or : Node 4 | { 5 | public override void OnCircuitChange() 6 | { 7 | base.OnCircuitChange(); 8 | OutPoints[0].value = InPoints[0].value || InPoints[1].value; 9 | OutPoints[0].OnCircuitChanged(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /.idea/.idea.NodeLogic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/.idea.NodeLogic/riderModule.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Nand.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class Nand : Node 4 | { 5 | public override void OnCircuitChange() 6 | { 7 | base.OnCircuitChange(); 8 | OutPoints[0].value = !(InPoints[0].value && InPoints[1].value); 9 | OutPoints[0].OnCircuitChanged(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Nor.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class Nor : Node 4 | { 5 | public override void OnCircuitChange() 6 | { 7 | base.OnCircuitChange(); 8 | OutPoints[0].value = !(InPoints[0].value || InPoints[1].value); 9 | OutPoints[0].OnCircuitChanged(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Xnor.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class Xnor : Node 4 | { 5 | public override void OnCircuitChange() 6 | { 7 | base.OnCircuitChange(); 8 | OutPoints[0].value = InPoints[0].value == InPoints[1].value; 9 | OutPoints[0].OnCircuitChanged(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Not.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class Not : Node 4 | { 5 | 6 | 7 | public override void OnCircuitChange() 8 | { 9 | base.OnCircuitChange(); 10 | OutPoints[0].value = !InPoints[0].value; 11 | OutPoints[0].OnCircuitChanged(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Xor.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class Xor : Node 4 | { 5 | public override void OnCircuitChange() 6 | { 7 | base.OnCircuitChange(); 8 | OutPoints[0].value = InPoints[0].value != InPoints[1].value; 9 | OutPoints[0].OnCircuitChanged(); 10 | } 11 | 12 | } 13 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/BitDisplay.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class BitDisplay : Node 6 | { 7 | public TextMesh text; 8 | 9 | public override void OnCircuitChange() 10 | { 11 | base.OnCircuitChange(); 12 | text.text = InPoints[0].value ? "1" : "0"; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /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 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 20 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: bfcfc320427f8224bbb7a96f3d3aebad, 13 | type: 2} 14 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/PushButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class PushButton : Node 6 | { 7 | private void OnMouseDown() 8 | { 9 | OutPoints[0].value = true; 10 | OutPoints[0].OnCircuitChanged(); 11 | } 12 | 13 | private void OnMouseUp() 14 | { 15 | OutPoints[0].value = false; 16 | OutPoints[0].OnCircuitChanged(); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts/Extensions.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public static class Extensions 6 | { 7 | /// 8 | /// Returns vector with specified y. 9 | /// 10 | /// The y. 11 | /// Input vector. 12 | /// The y coordinate. 13 | public static Vector3 WithY(this Vector3 a, float y) 14 | { 15 | return new Vector3 (a.x, y, a.z); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /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/kongtext.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2579b43daeb2d234fba73be5e9e09efa 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontName: Kongtext 12 | fontNames: 13 | - Kongtext 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 2 17 | ascentCalculationMode: 1 18 | useLegacyBoundsCalculation: 0 19 | shouldRoundAdvanceValue: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | *.VC.db 27 | 28 | # Unity3D generated meta files 29 | *.pidb.meta 30 | *.pdb.meta 31 | 32 | # Unity3D Generated File On Crash Reports 33 | sysinfo.txt 34 | 35 | # Builds 36 | *.apk 37 | *.unitypackage 38 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/SRLatch.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class SRLatch : Node 4 | { 5 | private bool value; 6 | 7 | public override void OnCircuitChange() 8 | { 9 | base.OnCircuitChange(); 10 | if (InPoints[0].value) 11 | value = true; 12 | else if (InPoints[1].value) 13 | value = false; 14 | OutPoints[1].value = !value; 15 | OutPoints[0].value = value; 16 | OutPoints[0].OnCircuitChanged(); 17 | OutPoints[1].OnCircuitChanged(); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/Scripts/PointOut.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MaximovInk 4 | { 5 | public class PointOut : Point 6 | { 7 | public List Outs = new List(); 8 | public int id; 9 | public override void OnCircuitChanged() 10 | { 11 | base.OnCircuitChanged(); 12 | 13 | foreach (var Out in Outs) 14 | { 15 | if (Out.value == value) 16 | continue; 17 | Out.value = value; 18 | 19 | Out.OnCircuitChanged(); 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/Plugins/Editor/JetBrains/JetBrains.Rider.Unity.Editor.Plugin.Repacked.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 564ce0a42c0941e44996f2ae6c9ffc08 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | Any: 13 | second: 14 | enabled: 0 15 | settings: {} 16 | - first: 17 | Editor: Editor 18 | second: 19 | enabled: 1 20 | settings: 21 | DefaultValueInitialized: true 22 | - first: 23 | Windows Store Apps: WindowsStoreApps 24 | second: 25 | enabled: 0 26 | settings: 27 | CPU: AnyCPU 28 | userData: 29 | assetBundleName: 30 | assetBundleVariant: 31 | -------------------------------------------------------------------------------- /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: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | m_EnableTextureStreamingInPlayMode: 1 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NodeLogic 2 | 3 | ![prev](https://img.itch.zone/aW1nLzIyNjk1NTAuZ2lm/original/%2Fc0pCp.gif) 4 | 5 | Input: 6 | 7 | MouseButtonLeft - move nodes,connect and select 8 | 9 | MouseButtonRight - change zoom 10 | 11 | MouseButtonMiddle - move camera 12 | 13 | D-duplicate node 14 | 15 | Delete-delete node 16 | 17 | Have all basic and more other logic gates: 18 | 19 | And 20 | Or 21 | Not 22 | Nand 23 | Nor 24 | Xor 25 | Xnor 26 | JK trigger 27 | SR trigger 28 | Push button 29 | Toggle button 30 | Delay 31 | Pulse 32 | Clock 33 | Bit display 34 | RGB display with 9 colors 35 | Label 36 | 37 | 38 | Game: https://maximovink.itch.io/nodelogic 39 | 40 | ​Video demonstation: 41 | 42 | https://www.youtube.com/watch?v=2VkfnMQuJSY 43 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/ColorDisplay.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class ColorDisplay : Node 6 | { 7 | 8 | private SpriteRenderer sprite { 9 | get 10 | { 11 | if (sp == null) 12 | sp = GetComponent(); 13 | return sp; 14 | } 15 | } 16 | private SpriteRenderer sp; 17 | 18 | private float GetColorValue(bool value) 19 | { 20 | return value ? 1 : 0; 21 | } 22 | 23 | public override void OnCircuitChange() 24 | { 25 | base.OnCircuitChange(); 26 | sprite.color = new Color(GetColorValue(InPoints[0].value),GetColorValue(InPoints[1].value),GetColorValue(InPoints[2].value) ); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Clock.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class Clock : EditableNode 6 | { 7 | public float Delay => value1; 8 | private float timer = 0; 9 | private void Update() 10 | { 11 | timer += Time.deltaTime; 12 | 13 | if (!InPoints[0].value) 14 | { 15 | return; 16 | } 17 | 18 | if (InPoints[1].value) 19 | { 20 | OutPoints[0].value = false; 21 | timer = 0; 22 | } 23 | 24 | 25 | 26 | 27 | if (timer > Delay) 28 | { 29 | OutPoints[0].value = !OutPoints[0].value; 30 | OutPoints[0].OnCircuitChanged(); 31 | 32 | timer = 0; 33 | } 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/Scripts/PointIn.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class PointIn : Point 6 | { 7 | public Line line; 8 | public PointOut Input; 9 | 10 | public void UpdateLine() 11 | { 12 | line.gameObject.SetActive(Input != null); 13 | line.width = 0.05f; 14 | if(Input!=null) 15 | line.start = Input.transform.position; 16 | 17 | line.end = transform.position; 18 | } 19 | 20 | public override void OnCircuitChanged() 21 | { 22 | 23 | 24 | if (Input == null) 25 | value = false; 26 | 27 | base.OnCircuitChanged(); 28 | 29 | GetComponentInParent().OnCircuitChange(); 30 | 31 | line.color = value ? Color.white : Color.black; 32 | 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /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 | m_Enabled: 1 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/JKFlipFlop.cs: -------------------------------------------------------------------------------- 1 | namespace MaximovInk 2 | { 3 | public class JKFlipFlop : Node 4 | { 5 | private bool lastC = true; 6 | public override void OnCircuitChange() 7 | { 8 | base.OnCircuitChange(); 9 | var j = InPoints[0].value; 10 | var c = InPoints[1].value; 11 | var k = InPoints[2].value; 12 | 13 | if (j && k == false) 14 | { 15 | if (c != lastC && c) 16 | OutPoints[0].value = true; 17 | } 18 | else if (j == false && k) 19 | { 20 | if (c != lastC && c) 21 | OutPoints[0].value = false; 22 | } 23 | else if (j && k) 24 | { 25 | if (c != lastC && c) 26 | OutPoints[0].value = !OutPoints[0].value; 27 | } 28 | 29 | lastC = c; 30 | 31 | OutPoints[1].value = !OutPoints[0].value; 32 | OutPoints[0].OnCircuitChanged(); 33 | OutPoints[1].OnCircuitChanged(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Pulse.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class Pulse : EditableNode 6 | { 7 | public float Delay => value1; 8 | private float timer; 9 | 10 | private bool lastEnabled = false; 11 | 12 | public override void OnCircuitChange() 13 | { 14 | base.OnCircuitChange(); 15 | 16 | if (!lastEnabled && InPoints[0].value) 17 | { 18 | lastEnabled = true; 19 | 20 | OutPoints[0].value = true; 21 | OutPoints[0].OnCircuitChanged(); 22 | } 23 | 24 | lastEnabled = InPoints[0].value; 25 | } 26 | 27 | private void Update() 28 | { 29 | if (OutPoints[0].value) 30 | { 31 | timer += Time.deltaTime; 32 | 33 | if (timer > Delay) 34 | { 35 | timer = 0; 36 | OutPoints[0].value = false; 37 | OutPoints[0].OnCircuitChanged(); 38 | } 39 | } 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /gdf/colorsStep.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":15,"xPosition":-1.0,"yPosition":1.9999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":3,"pointId":0},{"nodeId":5,"pointId":0},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":0.0,"yPosition":1.9999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":5,"pointId":0},{"nodeId":6,"pointId":0},{"nodeId":7,"pointId":0}]},{"id":15,"xPosition":1.0,"yPosition":1.9999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":6,"pointId":0},{"nodeId":7,"pointId":0},{"nodeId":8,"pointId":0}]},{"id":14,"xPosition":-4.0,"yPosition":0.0,"value1":0.20000000298023225,"ConntectedNodes":[{"nodeId":4,"pointId":0},{"nodeId":-1,"pointId":-1}]},{"id":4,"xPosition":-7.0,"yPosition":0.0,"value1":-1.0,"ConntectedNodes":[]},{"id":6,"xPosition":-1.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":3,"pointId":0}]},{"id":6,"xPosition":2.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":5,"pointId":0}]},{"id":6,"xPosition":5.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":6,"pointId":0}]},{"id":6,"xPosition":8.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":7,"pointId":0}]}]} -------------------------------------------------------------------------------- /Assets/blueprints/colorsStep.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":15,"xPosition":-1.0,"yPosition":1.9999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":3,"pointId":0},{"nodeId":5,"pointId":0},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":0.0,"yPosition":1.9999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":5,"pointId":0},{"nodeId":6,"pointId":0},{"nodeId":7,"pointId":0}]},{"id":15,"xPosition":1.0,"yPosition":1.9999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":6,"pointId":0},{"nodeId":7,"pointId":0},{"nodeId":8,"pointId":0}]},{"id":14,"xPosition":-4.0,"yPosition":0.0,"value1":0.20000000298023225,"ConntectedNodes":[{"nodeId":4,"pointId":0},{"nodeId":-1,"pointId":-1}]},{"id":4,"xPosition":-7.0,"yPosition":0.0,"value1":-1.0,"ConntectedNodes":[]},{"id":6,"xPosition":-1.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":3,"pointId":0}]},{"id":6,"xPosition":2.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":5,"pointId":0}]},{"id":6,"xPosition":5.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":6,"pointId":0}]},{"id":6,"xPosition":8.0,"yPosition":0.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":7,"pointId":0}]}]} -------------------------------------------------------------------------------- /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: 7 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: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /Assets/Scripts/Nodes/Delayer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class Delayer : EditableNode 6 | { 7 | public float Delay => value1; 8 | 9 | private bool value; 10 | private float timer; 11 | private bool dir; 12 | 13 | private void Update() 14 | { 15 | dir = InPoints[0].value; 16 | 17 | 18 | 19 | if (dir) 20 | { 21 | if (timer > Delay) 22 | { 23 | OutPoints[0].value = true; 24 | OutPoints[0].OnCircuitChanged(); 25 | } 26 | else 27 | { 28 | timer += Time.deltaTime; 29 | } 30 | } 31 | else 32 | { 33 | if (timer < 0) 34 | { 35 | OutPoints[0].value = false; 36 | OutPoints[0].OnCircuitChanged(); 37 | } 38 | else 39 | { 40 | timer -= Time.deltaTime; 41 | } 42 | } 43 | 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Assets/Scripts/Point.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class Point : MonoBehaviour 6 | { 7 | public bool value; 8 | protected Color deactivated = Color.black; 9 | protected Color activated = Color.white; 10 | 11 | 12 | [HideInInspector] 13 | public Node node; 14 | 15 | private SpriteRenderer sp; 16 | 17 | private void Awake() 18 | { 19 | sp = GetComponent(); 20 | } 21 | 22 | public virtual void OnCircuitChanged() 23 | { 24 | sp.color = value ? activated : deactivated; 25 | } 26 | 27 | private void Start() 28 | { 29 | transform.localPosition = new Vector3( 30 | Mathf.Round(transform.localPosition.x/MainManager.instance.PointsSnap)*MainManager.instance.PointsSnap 31 | , 32 | Mathf.Round(transform.localPosition.y/MainManager.instance.PointsSnap)*MainManager.instance.PointsSnap, 33 | 1 34 | ); 35 | 36 | node = GetComponentInParent(); 37 | OnCircuitChanged(); 38 | } 39 | 40 | 41 | } 42 | } -------------------------------------------------------------------------------- /Assets/LineDraw/Documentation/Read Me.txt: -------------------------------------------------------------------------------- 1 | 2 | Easy 2D Lines 3 | Gandhi Games 4 | 5 | A straightforward line drawing tool. Quick and easy to setup (see the demo scene for example usage). 6 | 7 | There are two main classes: LineFactory and Line. 8 | 9 | The LineFactory class is responsible for creating and retrieving lines. 10 | 11 | The main property: 12 | 13 | public int maxLines 14 | 15 | The LineFactory Instantiates this many lines at runtime. The lines are disabled and only activated when a line is requested by the user. This number is the maximum number of lines that can be retrieved from this factory. If a number of lines greater than this number is requested, then previous lines are overwritten; so it is important to set the correct number here. 16 | 17 | The main methods: 18 | 19 | public Line GetLine (Vector2 start, Vector2 end, float width, Color color) 20 | 21 | Initialises and activates a line with the specified data. 22 | 23 | public List GetActive() 24 | 25 | Returns a list of active lines. 26 | 27 | Once you have a reference to a line you can change the following properties: 28 | 29 | start: the lines start position. 30 | end: this lines end position. 31 | width: the lines width. 32 | color: the lines color. 33 | 34 | When any of these properties are set, the line is updated accordingly. 35 | 36 | And that?s pretty much it. If you find any bugs, or have any other questions, please email me at: robert.wells@gandhigames.co.uk 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Assets/Scripts/Extenshions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace MaximovInk 5 | { 6 | public static class Extenshions 7 | { 8 | public static void SetGlobalScale (this Transform transform, Vector3 globalScale) 9 | { 10 | transform.localScale = Vector3.one; 11 | transform.localScale = new Vector3 (globalScale.x/transform.lossyScale.x, globalScale.y/transform.lossyScale.y, globalScale.z/transform.lossyScale.z); 12 | } 13 | 14 | public static class JsonHelper 15 | { 16 | public static T[] FromJson(string json) 17 | { 18 | Wrapper wrapper = JsonUtility.FromJson>(json); 19 | return wrapper.Items; 20 | } 21 | 22 | public static string ToJson(T[] array) 23 | { 24 | Wrapper wrapper = new Wrapper(); 25 | wrapper.Items = array; 26 | return JsonUtility.ToJson(wrapper); 27 | } 28 | 29 | public static string ToJson(T[] array, bool prettyPrint) 30 | { 31 | Wrapper wrapper = new Wrapper(); 32 | wrapper.Items = array; 33 | return JsonUtility.ToJson(wrapper, prettyPrint); 34 | } 35 | 36 | [Serializable] 37 | private class Wrapper 38 | { 39 | public T[] Items; 40 | } 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "2.0.16", 5 | "com.unity.package-manager-ui": "1.9.11", 6 | "com.unity.purchasing": "2.0.3", 7 | "com.unity.textmeshpro": "1.2.4", 8 | "com.unity.modules.ai": "1.0.0", 9 | "com.unity.modules.animation": "1.0.0", 10 | "com.unity.modules.assetbundle": "1.0.0", 11 | "com.unity.modules.audio": "1.0.0", 12 | "com.unity.modules.cloth": "1.0.0", 13 | "com.unity.modules.director": "1.0.0", 14 | "com.unity.modules.imageconversion": "1.0.0", 15 | "com.unity.modules.imgui": "1.0.0", 16 | "com.unity.modules.jsonserialize": "1.0.0", 17 | "com.unity.modules.particlesystem": "1.0.0", 18 | "com.unity.modules.physics": "1.0.0", 19 | "com.unity.modules.physics2d": "1.0.0", 20 | "com.unity.modules.screencapture": "1.0.0", 21 | "com.unity.modules.terrain": "1.0.0", 22 | "com.unity.modules.terrainphysics": "1.0.0", 23 | "com.unity.modules.tilemap": "1.0.0", 24 | "com.unity.modules.ui": "1.0.0", 25 | "com.unity.modules.uielements": "1.0.0", 26 | "com.unity.modules.umbra": "1.0.0", 27 | "com.unity.modules.unityanalytics": "1.0.0", 28 | "com.unity.modules.unitywebrequest": "1.0.0", 29 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 30 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 31 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 32 | "com.unity.modules.unitywebrequestwww": "1.0.0", 33 | "com.unity.modules.vehicles": "1.0.0", 34 | "com.unity.modules.video": "1.0.0", 35 | "com.unity.modules.vr": "1.0.0", 36 | "com.unity.modules.wind": "1.0.0", 37 | "com.unity.modules.xr": "1.0.0" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /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/Scripts/Node.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MaximovInk 4 | { 5 | public class Node : MonoBehaviour 6 | { 7 | 8 | public PointIn[] InPoints { get; private set; } 9 | 10 | public PointOut[] OutPoints { get; private set; } 11 | 12 | public int instanceId; 13 | 14 | private void Awake() 15 | { 16 | 17 | InPoints = GetComponentsInChildren(); 18 | OutPoints = GetComponentsInChildren(); 19 | for (var i = 0; i < OutPoints.Length; i++) 20 | { 21 | OutPoints[i].id = i; 22 | } 23 | } 24 | 25 | public void RemoveNode() 26 | { 27 | if (InPoints != null) 28 | { 29 | foreach (var InPoint in InPoints) 30 | { 31 | if(InPoint.Input != null) 32 | InPoint.Input.Outs.Remove(InPoint); 33 | } 34 | } 35 | 36 | if (OutPoints != null) 37 | { 38 | foreach (var OutPoint in OutPoints) 39 | { 40 | foreach (var Out in OutPoint.Outs) 41 | { 42 | Out.Input= null; 43 | Out.value = false; 44 | Out.UpdateLine(); 45 | Out.OnCircuitChanged(); 46 | } 47 | } 48 | } 49 | Destroy(gameObject); 50 | } 51 | 52 | public void PositionChanged() 53 | { 54 | transform.position = new Vector3( 55 | Mathf.Round(transform.position.x/MainManager.instance.NodeSnap)*MainManager.instance.NodeSnap 56 | , 57 | Mathf.Round(transform.position.y/MainManager.instance.NodeSnap)*MainManager.instance.NodeSnap 58 | ); 59 | 60 | if (InPoints != null) 61 | { 62 | foreach (var InPoint in InPoints) 63 | { 64 | InPoint.UpdateLine(); 65 | } 66 | } 67 | 68 | if (OutPoints != null) 69 | { 70 | foreach (var OutPoint in OutPoints) 71 | { 72 | foreach (var Out in OutPoint.Outs) 73 | { 74 | Out.UpdateLine(); 75 | } 76 | } 77 | } 78 | } 79 | 80 | public virtual void OnCircuitChange() 81 | { 82 | if(OutPoints == null) 83 | return; 84 | 85 | foreach (var Out in OutPoints) 86 | { 87 | Out.OnCircuitChanged(); 88 | } 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts/LineFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | /// 6 | /// Stores a pool of Line. Allows retrieval and initialisation of pooled line. 7 | /// 8 | public class LineFactory : MonoBehaviour 9 | { 10 | /// 11 | /// The line prefab. 12 | /// 13 | public GameObject linePrefab; 14 | 15 | /// 16 | /// The number to pool. This is the maximum number of lines that can be retrieve from this factory. 17 | /// When a number of lines greater that this number is requested previous lines are overwritten. 18 | /// 19 | public int maxLines = 50; 20 | 21 | private Line[] pooledLines; 22 | private int currentIndex = 0; 23 | 24 | void Start () 25 | { 26 | pooledLines = new Line[maxLines]; 27 | 28 | for (int i = 0; i < maxLines; i++) { 29 | var line = Instantiate (linePrefab); 30 | line.SetActive (false); 31 | line.transform.SetParent (transform); 32 | pooledLines[i] = line.GetComponent (); 33 | } 34 | } 35 | 36 | /// 37 | /// Gets an initialised and active line. The line is retrieved from the pool and set active. 38 | /// 39 | /// The active line. 40 | /// Start position in world space. 41 | /// End position in world space. 42 | /// Width of line. 43 | /// Color of line. 44 | public Line GetLine (Vector2 start, Vector2 end, float width, Color color) 45 | { 46 | var line = pooledLines [currentIndex]; 47 | 48 | line.Initialise (start, end, width, color); 49 | line.gameObject.SetActive (true); 50 | 51 | currentIndex = (currentIndex + 1) % pooledLines.Length; 52 | 53 | return line; 54 | } 55 | 56 | /// 57 | /// Returns all active lines. 58 | /// 59 | /// The active lines. 60 | public List GetActive() 61 | { 62 | var activeLines = new List (); 63 | 64 | foreach (var line in pooledLines) { 65 | if (line.gameObject.activeSelf) { 66 | activeLines.Add (line); 67 | } 68 | } 69 | 70 | return activeLines; 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /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: 3 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_AutoSyncTransforms: 1 46 | m_AlwaysShowColliders: 0 47 | m_ShowColliderSleep: 1 48 | m_ShowColliderContacts: 0 49 | m_ShowColliderAABB: 0 50 | m_ContactArrowScale: 0.2 51 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 52 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 53 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 54 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 55 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 56 | -------------------------------------------------------------------------------- /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: 12 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: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 37 | m_PreloadedShaders: [] 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 39 | type: 0} 40 | m_CustomRenderPipeline: {fileID: 0} 41 | m_TransparencySortMode: 0 42 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 43 | m_DefaultRenderingPath: 1 44 | m_DefaultMobileRenderingPath: 1 45 | m_TierSettings: [] 46 | m_LightmapStripping: 0 47 | m_FogStripping: 0 48 | m_InstancingStripping: 0 49 | m_LightmapKeepPlain: 1 50 | m_LightmapKeepDirCombined: 1 51 | m_LightmapKeepDynamicPlain: 1 52 | m_LightmapKeepDynamicDirCombined: 1 53 | m_LightmapKeepShadowMask: 1 54 | m_LightmapKeepSubtractive: 1 55 | m_FogKeepLinear: 1 56 | m_FogKeepExp: 1 57 | m_FogKeepExp2: 1 58 | m_AlbedoSwatchInfos: [] 59 | m_LightsUseLinearIntensity: 0 60 | m_LightsUseColorTemperature: 0 61 | -------------------------------------------------------------------------------- /Assets/LineDraw/Materials/Line Mat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Line Mat 10 | m_Shader: {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: ETC1_EXTERNAL_ALPHA _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - PixelSnap: 0 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 1, g: 1, b: 1, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | -------------------------------------------------------------------------------- /.idea/.idea.NodeLogic/.idea/contentModel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 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 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Assets/1px.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ef1b100e40bbac41be77b4febe65492 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 7 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 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: 0 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 1 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 32 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 32 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 0 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | - serializedVersion: 2 84 | buildTarget: Android 85 | maxTextureSize: 32 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 0 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | androidETC2FallbackOverride: 0 94 | spriteSheet: 95 | serializedVersion: 2 96 | sprites: [] 97 | outline: [] 98 | physicsShape: [] 99 | bones: [] 100 | spriteID: da61260f1613470419f345c3525cea2d 101 | vertices: [] 102 | indices: 103 | edges: [] 104 | weights: [] 105 | spritePackingTag: 106 | pSDRemoveMatte: 0 107 | pSDShowRemoveMatteOption: 0 108 | userData: 109 | assetBundleName: 110 | assetBundleVariant: 111 | -------------------------------------------------------------------------------- /Assets/LineDraw/Sprites/pixel.PNG.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99397ff1167bee7468d9086851d46576 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 7 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 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: 0 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 5 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | - serializedVersion: 2 84 | buildTarget: Android 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | androidETC2FallbackOverride: 0 94 | spriteSheet: 95 | serializedVersion: 2 96 | sprites: [] 97 | outline: [] 98 | physicsShape: [] 99 | bones: [] 100 | spriteID: 53c373cd95d7b6a40a15924607b9f463 101 | vertices: [] 102 | indices: 103 | edges: [] 104 | weights: [] 105 | spritePackingTag: 106 | pSDRemoveMatte: 0 107 | pSDShowRemoveMatteOption: 0 108 | userData: 109 | assetBundleName: 110 | assetBundleVariant: 111 | -------------------------------------------------------------------------------- /Assets/LineDraw/Scripts/Line.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using MaximovInk; 4 | using UnityEngine; 5 | 6 | /// 7 | /// Handles line drawing. Stores data for a line. 8 | /// 9 | [RequireComponent (typeof(SpriteRenderer))] 10 | public class Line : MonoBehaviour 11 | { 12 | /// 13 | /// Start position in world space. Calculates new line position when value changed. 14 | /// 15 | /// The start position. 16 | public Vector2 start { 17 | get { 18 | return startPosition; 19 | } 20 | set { 21 | startPosition = value; 22 | UpdatePosition (); 23 | } 24 | } 25 | 26 | /// 27 | /// End position in world space. Calculates new line position when value changed. 28 | /// 29 | /// The end position. 30 | public Vector2 end { 31 | get { 32 | return endPosition; 33 | } 34 | set { 35 | endPosition = value; 36 | UpdatePosition (); 37 | } 38 | } 39 | 40 | /// 41 | /// Width of line. Updates sprite renderer when value changed. 42 | /// 43 | /// The width. 44 | public float width { 45 | get { return lineWidth; } 46 | set { 47 | lineWidth = value; 48 | UpdateWidth (); 49 | } 50 | } 51 | 52 | /// 53 | /// Line color. Updates sprite renderer color when value changed. 54 | /// 55 | /// The color. 56 | public Color color { 57 | get { return lineColor; } 58 | set { 59 | lineColor = value; 60 | UpdateColor (); 61 | } 62 | } 63 | 64 | private Vector2 startPosition; 65 | private Vector2 endPosition; 66 | private float lineWidth; 67 | private Color lineColor; 68 | private SpriteRenderer lineRenderer { 69 | get 70 | { 71 | if (lr == null) 72 | lr = GetComponent(); 73 | return lr; 74 | } 75 | } 76 | private SpriteRenderer lr; 77 | 78 | /// 79 | /// Initialise the specified start, end, width and color of sprite. 80 | /// 81 | /// Start position. 82 | /// End position. 83 | /// Width. 84 | /// Color. 85 | public void Initialise(Vector2 start, Vector2 end, float width, Color color) 86 | { 87 | startPosition = start; 88 | endPosition = end; 89 | lineWidth = width; 90 | lineColor = color; 91 | 92 | UpdatePosition (); 93 | UpdateWidth (); 94 | UpdateColor (); 95 | } 96 | 97 | private void UpdatePosition () 98 | { 99 | var heading = endPosition - startPosition; 100 | var distance = heading.magnitude; 101 | var direction = heading / distance; 102 | 103 | Vector3 centerPos = new Vector3 (startPosition.x + endPosition.x, startPosition.y + endPosition.y) / 2; 104 | lineRenderer.transform.position = centerPos; 105 | 106 | float angle = Mathf.Atan2 (direction.y, direction.x) * Mathf.Rad2Deg; 107 | lineRenderer.transform.rotation = Quaternion.AngleAxis (angle, Vector3.forward); 108 | 109 | var objectWidthSize = 10f / 5f; // 10 = pixels of line sprite, 5f = pixels per units of line sprite. 110 | //lineRenderer.transform.localScale = new Vector3 (distance / objectWidthSize, width, lineRenderer.transform.localScale.z); 111 | lineRenderer.transform.SetGlobalScale(new Vector3 (distance / objectWidthSize, width, lineRenderer.transform.localScale.z)); 112 | } 113 | 114 | private void UpdateWidth () 115 | { 116 | lineRenderer.transform.localScale = lineRenderer.transform.localScale.WithY (lineWidth); 117 | } 118 | 119 | private void UpdateColor () 120 | { 121 | lineRenderer.color = lineColor; 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /Assets/LineDraw/Prefabs/Line.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1000013289361224} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1000013289361224 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 4000010310415078} 22 | - component: {fileID: 212000014294493320} 23 | - component: {fileID: 50473756340876618} 24 | - component: {fileID: 114512427049955412} 25 | m_Layer: 0 26 | m_Name: Line 27 | m_TagString: Untagged 28 | m_Icon: {fileID: 0} 29 | m_NavMeshLayer: 0 30 | m_StaticEditorFlags: 0 31 | m_IsActive: 1 32 | --- !u!4 &4000010310415078 33 | Transform: 34 | m_ObjectHideFlags: 1 35 | m_CorrespondingSourceObject: {fileID: 0} 36 | m_PrefabInternal: {fileID: 100100000} 37 | m_GameObject: {fileID: 1000013289361224} 38 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 39 | m_LocalPosition: {x: -3.350851, y: -1.8226385, z: 0} 40 | m_LocalScale: {x: 1, y: 1, z: 1} 41 | m_Children: [] 42 | m_Father: {fileID: 0} 43 | m_RootOrder: 0 44 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 45 | --- !u!50 &50473756340876618 46 | Rigidbody2D: 47 | serializedVersion: 4 48 | m_ObjectHideFlags: 1 49 | m_CorrespondingSourceObject: {fileID: 0} 50 | m_PrefabInternal: {fileID: 100100000} 51 | m_GameObject: {fileID: 1000013289361224} 52 | m_BodyType: 1 53 | m_Simulated: 0 54 | m_UseFullKinematicContacts: 0 55 | m_UseAutoMass: 0 56 | m_Mass: 1 57 | m_LinearDrag: 0 58 | m_AngularDrag: 0.05 59 | m_GravityScale: 1 60 | m_Material: {fileID: 0} 61 | m_Interpolate: 0 62 | m_SleepingMode: 1 63 | m_CollisionDetection: 0 64 | m_Constraints: 0 65 | --- !u!114 &114512427049955412 66 | MonoBehaviour: 67 | m_ObjectHideFlags: 1 68 | m_CorrespondingSourceObject: {fileID: 0} 69 | m_PrefabInternal: {fileID: 100100000} 70 | m_GameObject: {fileID: 1000013289361224} 71 | m_Enabled: 1 72 | m_EditorHideFlags: 0 73 | m_Script: {fileID: 11500000, guid: 8b34068df4b284f60add5d301695f152, type: 3} 74 | m_Name: 75 | m_EditorClassIdentifier: 76 | --- !u!212 &212000014294493320 77 | SpriteRenderer: 78 | m_ObjectHideFlags: 1 79 | m_CorrespondingSourceObject: {fileID: 0} 80 | m_PrefabInternal: {fileID: 100100000} 81 | m_GameObject: {fileID: 1000013289361224} 82 | m_Enabled: 1 83 | m_CastShadows: 0 84 | m_ReceiveShadows: 0 85 | m_DynamicOccludee: 1 86 | m_MotionVectors: 1 87 | m_LightProbeUsage: 0 88 | m_ReflectionProbeUsage: 0 89 | m_RenderingLayerMask: 4294967295 90 | m_Materials: 91 | - {fileID: 2100000, guid: 6a699246958f043a4999f047b26871af, type: 2} 92 | m_StaticBatchInfo: 93 | firstSubMesh: 0 94 | subMeshCount: 0 95 | m_StaticBatchRoot: {fileID: 0} 96 | m_ProbeAnchor: {fileID: 0} 97 | m_LightProbeVolumeOverride: {fileID: 0} 98 | m_ScaleInLightmap: 1 99 | m_PreserveUVs: 0 100 | m_IgnoreNormalsForChartDetection: 0 101 | m_ImportantGI: 0 102 | m_StitchLightmapSeams: 0 103 | m_SelectedEditorRenderState: 0 104 | m_MinimumChartSize: 4 105 | m_AutoUVMaxDistance: 0.5 106 | m_AutoUVMaxAngle: 89 107 | m_LightmapParameters: {fileID: 0} 108 | m_SortingLayerID: -94776817 109 | m_SortingLayer: 0 110 | m_SortingOrder: -100 111 | m_Sprite: {fileID: 21300000, guid: 99397ff1167bee7468d9086851d46576, type: 3} 112 | m_Color: {r: 1, g: 1, b: 1, a: 1} 113 | m_FlipX: 0 114 | m_FlipY: 0 115 | m_DrawMode: 0 116 | m_Size: {x: 1, y: 1} 117 | m_AdaptiveModeThreshold: 0.5 118 | m_SpriteTileMode: 0 119 | m_WasSpriteAssigned: 1 120 | m_MaskInteraction: 0 121 | m_SpriteSortPoint: 0 122 | -------------------------------------------------------------------------------- /gdf/scheme1.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":6,"xPosition":-5.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":7,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":8,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":9,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":10,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":11,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":12,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":13,"pointId":0}]},{"id":4,"xPosition":-8.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[]},{"id":15,"xPosition":0.5,"yPosition":1.4999998807907105,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":1.4999998807907105,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":1.4999998807907105,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":0.49999988079071047,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":0.49999988079071047,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]}]} -------------------------------------------------------------------------------- /Assets/blueprints/scheme1.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":6,"xPosition":-5.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":7,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":8,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":9,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":10,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":11,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":12,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":13,"pointId":0}]},{"id":4,"xPosition":-8.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[]},{"id":15,"xPosition":0.5,"yPosition":1.4999998807907105,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":1.4999998807907105,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":1.4999998807907105,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":0.49999988079071047,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":0.49999988079071047,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]}]} -------------------------------------------------------------------------------- /gdf/rgb.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":6,"xPosition":-5.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":7,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":8,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":9,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":10,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":11,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":12,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":13,"pointId":0}]},{"id":4,"xPosition":-8.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[]},{"id":15,"xPosition":0.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":0.49999988079071047,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":0.49999988079071047,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]}]} -------------------------------------------------------------------------------- /Assets/blueprints/rgb.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":6,"xPosition":-5.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":7,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":8,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":9,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":10,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":11,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":12,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":13,"pointId":0}]},{"id":4,"xPosition":-8.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[]},{"id":15,"xPosition":0.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":0.49999988079071047,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":0.49999988079071047,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]}]} -------------------------------------------------------------------------------- /Assets/Scripts/SaveManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Linq; 4 | using UnityEngine; 5 | using UnityEngine.UI; 6 | 7 | namespace MaximovInk 8 | { 9 | public class SaveManager : MonoBehaviour 10 | { 11 | private SavedNode[] nodes; 12 | private Node[] instanceNodes; 13 | public InputField fileName; 14 | 15 | public Transform loadButtonsParent; 16 | public Button buttonPrefab; 17 | 18 | public void Save() 19 | { 20 | nodes = new SavedNode[ MainManager.instance.nodesParent.childCount]; 21 | 22 | for (var i = 0; i < nodes.Length; i++) 23 | { 24 | var node = MainManager.instance.nodesParent.GetChild(i).GetComponent(); 25 | nodes[i] = new SavedNode 26 | { 27 | xPosition = node.transform.position.x, 28 | yPosition = node.transform.position.y, 29 | id = node.instanceId, 30 | ConntectedNodes = new SavedNode.ConnectedNode[node.InPoints.Length], 31 | value1 = (node as EditableNode)?.value1 ?? -1, 32 | value2 = (node as Label)?.textMesh.text ?? string.Empty 33 | }; 34 | for (var j = 0; j < nodes[i].ConntectedNodes.Length; j++) 35 | { 36 | 37 | nodes[i].ConntectedNodes[j] = new SavedNode.ConnectedNode 38 | { 39 | nodeId = node.InPoints[j].Input != null ? 40 | node.InPoints[j].Input.node.transform.GetSiblingIndex() : 41 | -1, 42 | pointId = node.InPoints[j].Input != null ? node.InPoints[j].Input.id : -1 43 | }; 44 | 45 | } 46 | 47 | } 48 | 49 | if (!Directory.Exists(Application.dataPath + "/blueprints/")) 50 | { 51 | Directory.CreateDirectory(Application.dataPath + "/blueprints"); 52 | } 53 | 54 | string path = Application.dataPath + "/blueprints/" + fileName.text + ".json"; 55 | /*if (!File.Exists(path)) 56 | { 57 | File.Create(path); 58 | }*/ 59 | 60 | var json = Extenshions.JsonHelper.ToJson(nodes); 61 | 62 | File.WriteAllText(path,json); 63 | 64 | } 65 | 66 | public void LoadSchemes() 67 | { 68 | if (!Directory.Exists(Application.dataPath + "/blueprints/")) 69 | { 70 | Directory.CreateDirectory(Application.dataPath + "/blueprints"); 71 | } 72 | 73 | 74 | 75 | var files = Directory.EnumerateFiles(Application.dataPath+"/blueprints", "*.*", SearchOption.AllDirectories) 76 | .Where(s => s.EndsWith(".json") ).ToList(); 77 | 78 | for (int i = 0; i < loadButtonsParent.childCount; i++) 79 | { 80 | Destroy(loadButtonsParent.GetChild(i).gameObject); 81 | } 82 | 83 | for (int i = 0; i < files.Count; i++) 84 | { 85 | var b = Instantiate(buttonPrefab, loadButtonsParent); 86 | int bi = i; 87 | b.GetComponentInChildren().text = Path.GetFileName(files[i]).Split('.')[0]; 88 | b.onClick.AddListener(() => { LoadFile(files[bi]); }); 89 | } 90 | } 91 | 92 | public void LoadFile(string path) 93 | { 94 | fileName.text = Path.GetFileName(path).Split('.')[0]; 95 | string json = File.ReadAllText(path); 96 | nodes = Extenshions.JsonHelper.FromJson(json); 97 | 98 | MainManager.instance.Clear(); 99 | instanceNodes = new Node[nodes.Length]; 100 | for (int i = 0; i < nodes.Length; i++) 101 | { 102 | MainManager.instance.SpawnNode(nodes[i].id,out instanceNodes[i]); 103 | instanceNodes[i].transform.position = new Vector3(nodes[i].xPosition,nodes[i].yPosition); 104 | if (instanceNodes[i] is EditableNode) 105 | { 106 | ((EditableNode) instanceNodes[i]).value1 = nodes[i].value1; 107 | } 108 | 109 | if (instanceNodes[i] is Label) 110 | { 111 | ((Label) instanceNodes[i]).textMesh.text = nodes[i].value2; 112 | } 113 | } 114 | 115 | for (int i = 0; i < nodes.Length; i++) 116 | { 117 | for (int j = 0; j < nodes[i].ConntectedNodes.Length; j++) 118 | { 119 | if (nodes[i].ConntectedNodes[j].nodeId != -1 && nodes[i].ConntectedNodes[j].pointId != -1) 120 | { 121 | instanceNodes[i].InPoints[j].Input = instanceNodes[nodes[i].ConntectedNodes[j].nodeId] 122 | .OutPoints[nodes[i].ConntectedNodes[j].pointId]; 123 | instanceNodes[i].InPoints[j].Input.Outs.Add(instanceNodes[i].InPoints[j]); 124 | instanceNodes[i].InPoints[j].UpdateLine(); 125 | } 126 | } 127 | 128 | } 129 | } 130 | } 131 | 132 | [Serializable] 133 | public class SavedNode 134 | { 135 | public int id; 136 | 137 | public float xPosition, yPosition; 138 | public float value1; 139 | public string value2; 140 | 141 | public ConnectedNode[] ConntectedNodes; 142 | 143 | [Serializable] 144 | public class ConnectedNode 145 | { 146 | public int nodeId; 147 | public int pointId; 148 | } 149 | } 150 | 151 | 152 | } -------------------------------------------------------------------------------- /Assets/Prefabs/Label.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1527257875100606} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1136795634023122 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 4915200543950408} 22 | - component: {fileID: 23870863098275820} 23 | - component: {fileID: 102659825438925044} 24 | m_Layer: 2 25 | m_Name: New Text 26 | m_TagString: Untagged 27 | m_Icon: {fileID: 0} 28 | m_NavMeshLayer: 0 29 | m_StaticEditorFlags: 0 30 | m_IsActive: 1 31 | --- !u!1 &1527257875100606 32 | GameObject: 33 | m_ObjectHideFlags: 0 34 | m_CorrespondingSourceObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | serializedVersion: 6 37 | m_Component: 38 | - component: {fileID: 4177169317901960} 39 | - component: {fileID: 212869255252663358} 40 | - component: {fileID: 61307894637165514} 41 | - component: {fileID: 114380076745399712} 42 | m_Layer: 0 43 | m_Name: Label 44 | m_TagString: Untagged 45 | m_Icon: {fileID: 0} 46 | m_NavMeshLayer: 0 47 | m_StaticEditorFlags: 0 48 | m_IsActive: 1 49 | --- !u!4 &4177169317901960 50 | Transform: 51 | m_ObjectHideFlags: 1 52 | m_CorrespondingSourceObject: {fileID: 0} 53 | m_PrefabInternal: {fileID: 100100000} 54 | m_GameObject: {fileID: 1527257875100606} 55 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 56 | m_LocalPosition: {x: -3.68, y: 0.44, z: 0} 57 | m_LocalScale: {x: 2, y: 1, z: 1} 58 | m_Children: 59 | - {fileID: 4915200543950408} 60 | m_Father: {fileID: 0} 61 | m_RootOrder: 0 62 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 63 | --- !u!4 &4915200543950408 64 | Transform: 65 | m_ObjectHideFlags: 1 66 | m_CorrespondingSourceObject: {fileID: 0} 67 | m_PrefabInternal: {fileID: 100100000} 68 | m_GameObject: {fileID: 1136795634023122} 69 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 70 | m_LocalPosition: {x: 0, y: 0, z: 0} 71 | m_LocalScale: {x: 0.5, y: 1, z: 1} 72 | m_Children: [] 73 | m_Father: {fileID: 4177169317901960} 74 | m_RootOrder: 0 75 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 76 | --- !u!23 &23870863098275820 77 | MeshRenderer: 78 | m_ObjectHideFlags: 1 79 | m_CorrespondingSourceObject: {fileID: 0} 80 | m_PrefabInternal: {fileID: 100100000} 81 | m_GameObject: {fileID: 1136795634023122} 82 | m_Enabled: 1 83 | m_CastShadows: 1 84 | m_ReceiveShadows: 1 85 | m_DynamicOccludee: 1 86 | m_MotionVectors: 1 87 | m_LightProbeUsage: 1 88 | m_ReflectionProbeUsage: 1 89 | m_RenderingLayerMask: 4294967295 90 | m_Materials: 91 | - {fileID: 2100000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 92 | m_StaticBatchInfo: 93 | firstSubMesh: 0 94 | subMeshCount: 0 95 | m_StaticBatchRoot: {fileID: 0} 96 | m_ProbeAnchor: {fileID: 0} 97 | m_LightProbeVolumeOverride: {fileID: 0} 98 | m_ScaleInLightmap: 1 99 | m_PreserveUVs: 0 100 | m_IgnoreNormalsForChartDetection: 0 101 | m_ImportantGI: 0 102 | m_StitchLightmapSeams: 0 103 | m_SelectedEditorRenderState: 3 104 | m_MinimumChartSize: 4 105 | m_AutoUVMaxDistance: 0.5 106 | m_AutoUVMaxAngle: 89 107 | m_LightmapParameters: {fileID: 0} 108 | m_SortingLayerID: 0 109 | m_SortingLayer: 0 110 | m_SortingOrder: 0 111 | --- !u!61 &61307894637165514 112 | BoxCollider2D: 113 | m_ObjectHideFlags: 1 114 | m_CorrespondingSourceObject: {fileID: 0} 115 | m_PrefabInternal: {fileID: 100100000} 116 | m_GameObject: {fileID: 1527257875100606} 117 | m_Enabled: 1 118 | m_Density: 1 119 | m_Material: {fileID: 0} 120 | m_IsTrigger: 0 121 | m_UsedByEffector: 0 122 | m_UsedByComposite: 0 123 | m_Offset: {x: 0, y: 0} 124 | m_SpriteTilingProperty: 125 | border: {x: 0, y: 0, z: 0, w: 0} 126 | pivot: {x: 0.5, y: 0.5} 127 | oldSize: {x: 1, y: 1} 128 | newSize: {x: 0.33333334, y: 0.33333334} 129 | adaptiveTilingThreshold: 0.5 130 | drawMode: 0 131 | adaptiveTiling: 0 132 | m_AutoTiling: 0 133 | serializedVersion: 2 134 | m_Size: {x: 1, y: 1} 135 | m_EdgeRadius: 0 136 | --- !u!102 &102659825438925044 137 | TextMesh: 138 | serializedVersion: 3 139 | m_ObjectHideFlags: 1 140 | m_CorrespondingSourceObject: {fileID: 0} 141 | m_PrefabInternal: {fileID: 100100000} 142 | m_GameObject: {fileID: 1136795634023122} 143 | m_Text: Node 144 | m_OffsetZ: -0.1 145 | m_CharacterSize: 0.3 146 | m_LineSpacing: 1 147 | m_Anchor: 4 148 | m_Alignment: 1 149 | m_TabSize: 4 150 | m_FontSize: 15 151 | m_FontStyle: 0 152 | m_RichText: 1 153 | m_Font: {fileID: 12800000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 154 | m_Color: 155 | serializedVersion: 2 156 | rgba: 4278190080 157 | --- !u!114 &114380076745399712 158 | MonoBehaviour: 159 | m_ObjectHideFlags: 1 160 | m_CorrespondingSourceObject: {fileID: 0} 161 | m_PrefabInternal: {fileID: 100100000} 162 | m_GameObject: {fileID: 1527257875100606} 163 | m_Enabled: 1 164 | m_EditorHideFlags: 0 165 | m_Script: {fileID: 11500000, guid: df396978b5ff43a1b12075766c8ed1ec, type: 3} 166 | m_Name: 167 | m_EditorClassIdentifier: 168 | instanceId: 0 169 | textMesh: {fileID: 102659825438925044} 170 | --- !u!212 &212869255252663358 171 | SpriteRenderer: 172 | m_ObjectHideFlags: 1 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInternal: {fileID: 100100000} 175 | m_GameObject: {fileID: 1527257875100606} 176 | m_Enabled: 1 177 | m_CastShadows: 0 178 | m_ReceiveShadows: 0 179 | m_DynamicOccludee: 1 180 | m_MotionVectors: 1 181 | m_LightProbeUsage: 1 182 | m_ReflectionProbeUsage: 1 183 | m_RenderingLayerMask: 4294967295 184 | m_Materials: 185 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 186 | m_StaticBatchInfo: 187 | firstSubMesh: 0 188 | subMeshCount: 0 189 | m_StaticBatchRoot: {fileID: 0} 190 | m_ProbeAnchor: {fileID: 0} 191 | m_LightProbeVolumeOverride: {fileID: 0} 192 | m_ScaleInLightmap: 1 193 | m_PreserveUVs: 0 194 | m_IgnoreNormalsForChartDetection: 0 195 | m_ImportantGI: 0 196 | m_StitchLightmapSeams: 0 197 | m_SelectedEditorRenderState: 0 198 | m_MinimumChartSize: 4 199 | m_AutoUVMaxDistance: 0.5 200 | m_AutoUVMaxAngle: 89 201 | m_LightmapParameters: {fileID: 0} 202 | m_SortingLayerID: 0 203 | m_SortingLayer: 0 204 | m_SortingOrder: 0 205 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 206 | m_Color: {r: 0.6132076, g: 0.5987451, b: 0.5987451, a: 0.2509804} 207 | m_FlipX: 0 208 | m_FlipY: 0 209 | m_DrawMode: 0 210 | m_Size: {x: 0.33333334, y: 0.33333334} 211 | m_AdaptiveModeThreshold: 0.5 212 | m_SpriteTileMode: 0 213 | m_WasSpriteAssigned: 1 214 | m_MaskInteraction: 0 215 | m_SpriteSortPoint: 0 216 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 4 41 | resolutionScalingFixedDPIFactor: 1 42 | excludedTargetPlatforms: [] 43 | - serializedVersion: 2 44 | name: Low 45 | pixelLightCount: 0 46 | shadows: 0 47 | shadowResolution: 0 48 | shadowProjection: 1 49 | shadowCascades: 1 50 | shadowDistance: 20 51 | shadowNearPlaneOffset: 3 52 | shadowCascade2Split: 0.33333334 53 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 54 | shadowmaskMode: 0 55 | blendWeights: 2 56 | textureQuality: 0 57 | anisotropicTextures: 0 58 | antiAliasing: 0 59 | softParticles: 0 60 | softVegetation: 0 61 | realtimeReflectionProbes: 0 62 | billboardsFaceCameraPosition: 0 63 | vSyncCount: 0 64 | lodBias: 0.4 65 | maximumLODLevel: 0 66 | streamingMipmapsActive: 0 67 | streamingMipmapsAddAllCameras: 1 68 | streamingMipmapsMemoryBudget: 512 69 | streamingMipmapsRenderersPerFrame: 512 70 | streamingMipmapsMaxLevelReduction: 2 71 | streamingMipmapsMaxFileIORequests: 1024 72 | particleRaycastBudget: 16 73 | asyncUploadTimeSlice: 2 74 | asyncUploadBufferSize: 4 75 | resolutionScalingFixedDPIFactor: 1 76 | excludedTargetPlatforms: [] 77 | - serializedVersion: 2 78 | name: Medium 79 | pixelLightCount: 1 80 | shadows: 0 81 | shadowResolution: 0 82 | shadowProjection: 1 83 | shadowCascades: 1 84 | shadowDistance: 20 85 | shadowNearPlaneOffset: 3 86 | shadowCascade2Split: 0.33333334 87 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 88 | shadowmaskMode: 0 89 | blendWeights: 2 90 | textureQuality: 0 91 | anisotropicTextures: 0 92 | antiAliasing: 0 93 | softParticles: 0 94 | softVegetation: 0 95 | realtimeReflectionProbes: 0 96 | billboardsFaceCameraPosition: 0 97 | vSyncCount: 1 98 | lodBias: 0.7 99 | maximumLODLevel: 0 100 | streamingMipmapsActive: 0 101 | streamingMipmapsAddAllCameras: 1 102 | streamingMipmapsMemoryBudget: 512 103 | streamingMipmapsRenderersPerFrame: 512 104 | streamingMipmapsMaxLevelReduction: 2 105 | streamingMipmapsMaxFileIORequests: 1024 106 | particleRaycastBudget: 64 107 | asyncUploadTimeSlice: 2 108 | asyncUploadBufferSize: 4 109 | resolutionScalingFixedDPIFactor: 1 110 | excludedTargetPlatforms: [] 111 | - serializedVersion: 2 112 | name: High 113 | pixelLightCount: 2 114 | shadows: 0 115 | shadowResolution: 1 116 | shadowProjection: 1 117 | shadowCascades: 2 118 | shadowDistance: 40 119 | shadowNearPlaneOffset: 3 120 | shadowCascade2Split: 0.33333334 121 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 122 | shadowmaskMode: 1 123 | blendWeights: 2 124 | textureQuality: 0 125 | anisotropicTextures: 0 126 | antiAliasing: 0 127 | softParticles: 0 128 | softVegetation: 1 129 | realtimeReflectionProbes: 0 130 | billboardsFaceCameraPosition: 0 131 | vSyncCount: 1 132 | lodBias: 1 133 | maximumLODLevel: 0 134 | streamingMipmapsActive: 0 135 | streamingMipmapsAddAllCameras: 1 136 | streamingMipmapsMemoryBudget: 512 137 | streamingMipmapsRenderersPerFrame: 512 138 | streamingMipmapsMaxLevelReduction: 2 139 | streamingMipmapsMaxFileIORequests: 1024 140 | particleRaycastBudget: 256 141 | asyncUploadTimeSlice: 2 142 | asyncUploadBufferSize: 4 143 | resolutionScalingFixedDPIFactor: 1 144 | excludedTargetPlatforms: [] 145 | - serializedVersion: 2 146 | name: Very High 147 | pixelLightCount: 3 148 | shadows: 0 149 | shadowResolution: 2 150 | shadowProjection: 1 151 | shadowCascades: 2 152 | shadowDistance: 70 153 | shadowNearPlaneOffset: 3 154 | shadowCascade2Split: 0.33333334 155 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 156 | shadowmaskMode: 1 157 | blendWeights: 4 158 | textureQuality: 0 159 | anisotropicTextures: 0 160 | antiAliasing: 0 161 | softParticles: 0 162 | softVegetation: 1 163 | realtimeReflectionProbes: 0 164 | billboardsFaceCameraPosition: 0 165 | vSyncCount: 1 166 | lodBias: 1.5 167 | maximumLODLevel: 0 168 | streamingMipmapsActive: 0 169 | streamingMipmapsAddAllCameras: 1 170 | streamingMipmapsMemoryBudget: 512 171 | streamingMipmapsRenderersPerFrame: 512 172 | streamingMipmapsMaxLevelReduction: 2 173 | streamingMipmapsMaxFileIORequests: 1024 174 | particleRaycastBudget: 1024 175 | asyncUploadTimeSlice: 2 176 | asyncUploadBufferSize: 4 177 | resolutionScalingFixedDPIFactor: 1 178 | excludedTargetPlatforms: [] 179 | - serializedVersion: 2 180 | name: Ultra 181 | pixelLightCount: 4 182 | shadows: 0 183 | shadowResolution: 0 184 | shadowProjection: 1 185 | shadowCascades: 4 186 | shadowDistance: 150 187 | shadowNearPlaneOffset: 3 188 | shadowCascade2Split: 0.33333334 189 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 190 | shadowmaskMode: 1 191 | blendWeights: 4 192 | textureQuality: 0 193 | anisotropicTextures: 0 194 | antiAliasing: 0 195 | softParticles: 0 196 | softVegetation: 1 197 | realtimeReflectionProbes: 0 198 | billboardsFaceCameraPosition: 0 199 | vSyncCount: 1 200 | lodBias: 2 201 | maximumLODLevel: 0 202 | streamingMipmapsActive: 0 203 | streamingMipmapsAddAllCameras: 1 204 | streamingMipmapsMemoryBudget: 512 205 | streamingMipmapsRenderersPerFrame: 512 206 | streamingMipmapsMaxLevelReduction: 2 207 | streamingMipmapsMaxFileIORequests: 1024 208 | particleRaycastBudget: 4096 209 | asyncUploadTimeSlice: 2 210 | asyncUploadBufferSize: 4 211 | resolutionScalingFixedDPIFactor: 1 212 | excludedTargetPlatforms: [] 213 | m_PerPlatformDefaultQuality: 214 | Android: 2 215 | Nintendo 3DS: 5 216 | Nintendo Switch: 5 217 | PS4: 5 218 | PSM: 5 219 | PSP2: 2 220 | Standalone: 5 221 | Tizen: 2 222 | WebGL: 3 223 | WiiU: 5 224 | Windows Store Apps: 5 225 | XboxOne: 5 226 | iPhone: 2 227 | tvOS: 2 228 | -------------------------------------------------------------------------------- /Assets/Prefabs/Button.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1401818335830078} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1310679252034842 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 224622152685508766} 22 | - component: {fileID: 222001698468431576} 23 | - component: {fileID: 114977770444542942} 24 | m_Layer: 5 25 | m_Name: Text 26 | m_TagString: Untagged 27 | m_Icon: {fileID: 0} 28 | m_NavMeshLayer: 0 29 | m_StaticEditorFlags: 0 30 | m_IsActive: 1 31 | --- !u!1 &1401818335830078 32 | GameObject: 33 | m_ObjectHideFlags: 0 34 | m_CorrespondingSourceObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | serializedVersion: 6 37 | m_Component: 38 | - component: {fileID: 224832636384248566} 39 | - component: {fileID: 222201659961286156} 40 | - component: {fileID: 114962617027161120} 41 | - component: {fileID: 114543023408362990} 42 | m_Layer: 5 43 | m_Name: Button 44 | m_TagString: Untagged 45 | m_Icon: {fileID: 0} 46 | m_NavMeshLayer: 0 47 | m_StaticEditorFlags: 0 48 | m_IsActive: 1 49 | --- !u!114 &114543023408362990 50 | MonoBehaviour: 51 | m_ObjectHideFlags: 1 52 | m_CorrespondingSourceObject: {fileID: 0} 53 | m_PrefabInternal: {fileID: 100100000} 54 | m_GameObject: {fileID: 1401818335830078} 55 | m_Enabled: 1 56 | m_EditorHideFlags: 0 57 | m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} 58 | m_Name: 59 | m_EditorClassIdentifier: 60 | m_Navigation: 61 | m_Mode: 3 62 | m_SelectOnUp: {fileID: 0} 63 | m_SelectOnDown: {fileID: 0} 64 | m_SelectOnLeft: {fileID: 0} 65 | m_SelectOnRight: {fileID: 0} 66 | m_Transition: 1 67 | m_Colors: 68 | m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 69 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 70 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} 71 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} 72 | m_ColorMultiplier: 1 73 | m_FadeDuration: 0.1 74 | m_SpriteState: 75 | m_HighlightedSprite: {fileID: 0} 76 | m_PressedSprite: {fileID: 0} 77 | m_DisabledSprite: {fileID: 0} 78 | m_AnimationTriggers: 79 | m_NormalTrigger: Normal 80 | m_HighlightedTrigger: Highlighted 81 | m_PressedTrigger: Pressed 82 | m_DisabledTrigger: Disabled 83 | m_Interactable: 1 84 | m_TargetGraphic: {fileID: 114962617027161120} 85 | m_OnClick: 86 | m_PersistentCalls: 87 | m_Calls: 88 | - m_Target: {fileID: 0} 89 | m_MethodName: SetActive 90 | m_Mode: 6 91 | m_Arguments: 92 | m_ObjectArgument: {fileID: 0} 93 | m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine 94 | m_IntArgument: 0 95 | m_FloatArgument: 0 96 | m_StringArgument: 97 | m_BoolArgument: 0 98 | m_CallState: 2 99 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 100 | Culture=neutral, PublicKeyToken=null 101 | --- !u!114 &114962617027161120 102 | MonoBehaviour: 103 | m_ObjectHideFlags: 1 104 | m_CorrespondingSourceObject: {fileID: 0} 105 | m_PrefabInternal: {fileID: 100100000} 106 | m_GameObject: {fileID: 1401818335830078} 107 | m_Enabled: 1 108 | m_EditorHideFlags: 0 109 | m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} 110 | m_Name: 111 | m_EditorClassIdentifier: 112 | m_Material: {fileID: 0} 113 | m_Color: {r: 0.895, g: 0.895, b: 0.895, a: 1} 114 | m_RaycastTarget: 1 115 | m_OnCullStateChanged: 116 | m_PersistentCalls: 117 | m_Calls: [] 118 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 119 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 120 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 121 | m_Type: 0 122 | m_PreserveAspect: 0 123 | m_FillCenter: 1 124 | m_FillMethod: 4 125 | m_FillAmount: 1 126 | m_FillClockwise: 1 127 | m_FillOrigin: 0 128 | --- !u!114 &114977770444542942 129 | MonoBehaviour: 130 | m_ObjectHideFlags: 1 131 | m_CorrespondingSourceObject: {fileID: 0} 132 | m_PrefabInternal: {fileID: 100100000} 133 | m_GameObject: {fileID: 1310679252034842} 134 | m_Enabled: 1 135 | m_EditorHideFlags: 0 136 | m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} 137 | m_Name: 138 | m_EditorClassIdentifier: 139 | m_Material: {fileID: 0} 140 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 141 | m_RaycastTarget: 1 142 | m_OnCullStateChanged: 143 | m_PersistentCalls: 144 | m_Calls: [] 145 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 146 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 147 | m_FontData: 148 | m_Font: {fileID: 12800000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 149 | m_FontSize: 14 150 | m_FontStyle: 0 151 | m_BestFit: 0 152 | m_MinSize: 10 153 | m_MaxSize: 40 154 | m_Alignment: 4 155 | m_AlignByGeometry: 0 156 | m_RichText: 1 157 | m_HorizontalOverflow: 0 158 | m_VerticalOverflow: 0 159 | m_LineSpacing: 1 160 | m_Text: X 161 | --- !u!222 &222001698468431576 162 | CanvasRenderer: 163 | m_ObjectHideFlags: 1 164 | m_CorrespondingSourceObject: {fileID: 0} 165 | m_PrefabInternal: {fileID: 100100000} 166 | m_GameObject: {fileID: 1310679252034842} 167 | m_CullTransparentMesh: 0 168 | --- !u!222 &222201659961286156 169 | CanvasRenderer: 170 | m_ObjectHideFlags: 1 171 | m_CorrespondingSourceObject: {fileID: 0} 172 | m_PrefabInternal: {fileID: 100100000} 173 | m_GameObject: {fileID: 1401818335830078} 174 | m_CullTransparentMesh: 0 175 | --- !u!224 &224622152685508766 176 | RectTransform: 177 | m_ObjectHideFlags: 1 178 | m_CorrespondingSourceObject: {fileID: 0} 179 | m_PrefabInternal: {fileID: 100100000} 180 | m_GameObject: {fileID: 1310679252034842} 181 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 182 | m_LocalPosition: {x: 0, y: 0, z: 0} 183 | m_LocalScale: {x: 1, y: 1, z: 1} 184 | m_Children: [] 185 | m_Father: {fileID: 224832636384248566} 186 | m_RootOrder: 0 187 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 188 | m_AnchorMin: {x: 0, y: 0} 189 | m_AnchorMax: {x: 1, y: 1} 190 | m_AnchoredPosition: {x: 0, y: 0} 191 | m_SizeDelta: {x: 0, y: 0} 192 | m_Pivot: {x: 0.5, y: 0.5} 193 | --- !u!224 &224832636384248566 194 | RectTransform: 195 | m_ObjectHideFlags: 1 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInternal: {fileID: 100100000} 198 | m_GameObject: {fileID: 1401818335830078} 199 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 200 | m_LocalPosition: {x: 0, y: 0, z: 0} 201 | m_LocalScale: {x: 1, y: 1, z: 1} 202 | m_Children: 203 | - {fileID: 224622152685508766} 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 0 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | m_AnchorMin: {x: 1, y: 1} 208 | m_AnchorMax: {x: 1, y: 1} 209 | m_AnchoredPosition: {x: -8.710007, y: 9.36998} 210 | m_SizeDelta: {x: 17.42, y: 18.74} 211 | m_Pivot: {x: 0.5, y: 0.5} 212 | -------------------------------------------------------------------------------- /gdf/Demo.json: -------------------------------------------------------------------------------- 1 | {"Items":[{"id":6,"xPosition":-5.5,"yPosition":-0.5,"value1":0.0,"ConntectedNodes":[{"nodeId":7,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-1.5,"value1":0.0,"ConntectedNodes":[{"nodeId":8,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-2.5,"value1":0.0,"ConntectedNodes":[{"nodeId":9,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-3.5,"value1":0.0,"ConntectedNodes":[{"nodeId":10,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-4.5,"value1":0.0,"ConntectedNodes":[{"nodeId":11,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-5.5,"value1":0.0,"ConntectedNodes":[{"nodeId":12,"pointId":0}]},{"id":6,"xPosition":-5.5,"yPosition":-6.5,"value1":0.0,"ConntectedNodes":[{"nodeId":13,"pointId":0}]},{"id":4,"xPosition":-8.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-8.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[]},{"id":15,"xPosition":0.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":1.4999998807907105,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":0,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":0.49999988079071047,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":1,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-2.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":2,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":0.49999988079071047,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-0.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":3,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":-2.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":4,"pointId":0}]},{"id":15,"xPosition":0.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":-0.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-3.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-4.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":1.5,"yPosition":-5.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":5,"pointId":0}]},{"id":15,"xPosition":-1.5,"yPosition":-6.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":6,"pointId":0}]},{"id":11,"xPosition":-8.0,"yPosition":-13.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":37,"pointId":0},{"nodeId":38,"pointId":0}]},{"id":16,"xPosition":-8.5,"yPosition":-11.0,"value1":-1.0,"ConntectedNodes":[]},{"id":3,"xPosition":-11.0,"yPosition":-12.5,"value1":-1.0,"ConntectedNodes":[]},{"id":3,"xPosition":-11.0,"yPosition":-13.5,"value1":-1.0,"ConntectedNodes":[]},{"id":15,"xPosition":-5.5,"yPosition":-13.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":35,"pointId":1},{"nodeId":35,"pointId":0},{"nodeId":-1,"pointId":-1}]},{"id":15,"xPosition":-21.0,"yPosition":-4.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1}]},{"id":16,"xPosition":-28.0,"yPosition":-1.5,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-4.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-5.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-7.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-8.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-21.0,"yPosition":-7.5,"value1":-1.0,"ConntectedNodes":[]},{"id":14,"xPosition":-21.0,"yPosition":-11.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":-1,"pointId":-1},{"nodeId":-1,"pointId":-1}]},{"id":16,"xPosition":-28.0,"yPosition":-10.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-11.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-12.0,"value1":-1.0,"ConntectedNodes":[]},{"id":13,"xPosition":-21.0,"yPosition":-14.5,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":-1,"pointId":-1}]},{"id":16,"xPosition":-28.0,"yPosition":-14.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-15.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-9.5,"yPosition":-9.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-1.5,"yPosition":3.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-8.5,"yPosition":-15.0,"value1":-1.0,"ConntectedNodes":[]},{"id":12,"xPosition":-8.0,"yPosition":-17.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":60,"pointId":0},{"nodeId":58,"pointId":0},{"nodeId":59,"pointId":0}]},{"id":3,"xPosition":-11.0,"yPosition":-17.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-11.0,"yPosition":-18.5,"value1":-1.0,"ConntectedNodes":[]},{"id":4,"xPosition":-11.0,"yPosition":-16.5,"value1":-1.0,"ConntectedNodes":[]},{"id":15,"xPosition":-5.5,"yPosition":-17.5,"value1":-1.0,"ConntectedNodes":[{"nodeId":57,"pointId":1},{"nodeId":57,"pointId":0},{"nodeId":-1,"pointId":-1}]},{"id":14,"xPosition":-10.0,"yPosition":-22.0,"value1":0.20000000298023225,"ConntectedNodes":[{"nodeId":66,"pointId":0},{"nodeId":67,"pointId":0}]},{"id":15,"xPosition":-4.0,"yPosition":-22.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":62,"pointId":0},{"nodeId":72,"pointId":0},{"nodeId":73,"pointId":0}]},{"id":15,"xPosition":-4.0,"yPosition":-23.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":72,"pointId":0},{"nodeId":73,"pointId":0},{"nodeId":74,"pointId":0}]},{"id":15,"xPosition":-4.0,"yPosition":-24.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":73,"pointId":0},{"nodeId":74,"pointId":0},{"nodeId":75,"pointId":0}]},{"id":4,"xPosition":-15.0,"yPosition":-22.0,"value1":-1.0,"ConntectedNodes":[]},{"id":2,"xPosition":-12.5,"yPosition":-23.0,"value1":-1.0,"ConntectedNodes":[{"nodeId":66,"pointId":0}]},{"id":16,"xPosition":-28.0,"yPosition":-13.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-9.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-6.0,"value1":-1.0,"ConntectedNodes":[]},{"id":16,"xPosition":-28.0,"yPosition":-3.0,"value1":-1.0,"ConntectedNodes":[]},{"id":6,"xPosition":-7.5,"yPosition":-23.5,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":62,"pointId":0}]},{"id":6,"xPosition":-7.5,"yPosition":-25.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":72,"pointId":0}]},{"id":6,"xPosition":-7.5,"yPosition":-26.5,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":73,"pointId":0}]},{"id":6,"xPosition":-7.5,"yPosition":-28.0,"value1":0.10000000149011612,"ConntectedNodes":[{"nodeId":74,"pointId":0}]},{"id":16,"xPosition":-8.5,"yPosition":-20.5,"value1":-1.0,"ConntectedNodes":[]}]} -------------------------------------------------------------------------------- /Assets/Scripts/MainManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | using UnityEngine.UI; 6 | 7 | namespace MaximovInk 8 | { 9 | public class MainManager : MonoBehaviour 10 | { 11 | public Line line; 12 | 13 | public static MainManager instance; 14 | 15 | private Node selectedNode; 16 | 17 | private Point start, end; 18 | 19 | private Vector3 lastMousePos; 20 | 21 | public float camMoveSpeed = 0.1f; 22 | public float camScaleSpeed = 0.1f; 23 | 24 | private Vector2 moveOffset; 25 | 26 | public Transform cam; 27 | 28 | public float NodeSnap = 0.5f; 29 | public float PointsSnap = 0.3f; 30 | 31 | public Node[] nodes; 32 | 33 | public GameObject panelObj; 34 | public Text nodeName; 35 | public GameObject slider; 36 | public GameObject labelField; 37 | 38 | public Transform nodesParent; 39 | 40 | public void OnValueChange(string v) 41 | { 42 | (selectedNode as EditableNode).value1 = float.Parse(v, CultureInfo.GetCultureInfo("en-US")); 43 | } 44 | 45 | public void OnLabelEndEdit(string l) 46 | { 47 | (selectedNode as Label).textMesh.text = l; 48 | } 49 | 50 | public void Clear() 51 | { 52 | for (int i = 0; i < nodesParent.childCount; i++) 53 | { 54 | Destroy(nodesParent.GetChild(i).gameObject); 55 | } 56 | } 57 | 58 | public void SpawnNode(int index) 59 | { 60 | var node = Instantiate(nodes[index] ,nodesParent); 61 | node.instanceId = index; 62 | node.transform.position = new Vector3(cam.position.x,cam.position.y,0); 63 | } 64 | public void SpawnNode(int index,out Node get) 65 | { 66 | var node = Instantiate(nodes[index] ,nodesParent); 67 | node.instanceId = index; 68 | node.transform.position = new Vector3(cam.position.x,cam.position.y,0); 69 | get = node; 70 | } 71 | 72 | private void Awake() 73 | { 74 | if (instance != null && instance != this) 75 | { 76 | Destroy(instance); 77 | } 78 | else 79 | { 80 | instance = this; 81 | DontDestroyOnLoad(instance); 82 | line.width = 0.05f; 83 | 84 | } 85 | } 86 | 87 | private void Update() 88 | { 89 | if (!EventSystem.current.IsPointerOverGameObject()) 90 | { 91 | Vector3 mousePosWorld = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 10.0f)); 92 | Vector3 mousePos = Input.mousePosition; 93 | 94 | if (Input.GetKeyDown(KeyCode.Delete)) 95 | { 96 | if (selectedNode != null) 97 | { 98 | selectedNode.RemoveNode(); 99 | panelObj.SetActive(false); 100 | } 101 | } 102 | 103 | 104 | if (Input.GetKeyDown(KeyCode.D)) 105 | { 106 | if (selectedNode != null) 107 | { 108 | var value1 = 0.0f; 109 | var value2 = string.Empty; 110 | var duplicateValue1 = selectedNode is EditableNode; 111 | var duplicateValue2 = selectedNode is Label; 112 | 113 | if (duplicateValue1) 114 | { 115 | value1 = (selectedNode as EditableNode).value1; 116 | } 117 | 118 | if (duplicateValue2) 119 | { 120 | value2 = (selectedNode as Label).textMesh.text; 121 | } 122 | 123 | SpawnNode(selectedNode.instanceId, out selectedNode); 124 | 125 | if (duplicateValue1) 126 | { 127 | (selectedNode as EditableNode).value1 = value1; 128 | } 129 | if (duplicateValue2) 130 | { 131 | (selectedNode as Label).textMesh.text = value2; 132 | } 133 | } 134 | } 135 | 136 | 137 | 138 | if (Input.GetMouseButton(2)) 139 | { 140 | 141 | cam.transform.position -= (mousePos - lastMousePos) * camMoveSpeed; 142 | } 143 | 144 | if (Input.GetMouseButton(1)) 145 | { 146 | 147 | 148 | Camera.main.orthographicSize += (mousePos.x - lastMousePos.x) * camScaleSpeed; 149 | } 150 | 151 | if (Input.GetMouseButtonDown(0)) 152 | { 153 | selectedNode = null; 154 | panelObj.SetActive(false); 155 | RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), 156 | Vector2.zero); 157 | if (hit) 158 | { 159 | 160 | var node = (hit.collider.GetComponent()); 161 | var point = hit.collider.GetComponent(); 162 | if (node != null) 163 | { 164 | selectedNode = node; 165 | moveOffset = selectedNode.transform.position - mousePosWorld; 166 | panelObj.SetActive(true); 167 | nodeName.text = selectedNode.name; 168 | slider.SetActive(selectedNode is EditableNode); 169 | labelField.SetActive(selectedNode is Label); 170 | if (slider.activeSelf) 171 | { 172 | slider.GetComponent().text = 173 | (selectedNode as EditableNode).value1.ToString("0.00000",CultureInfo.GetCultureInfo("en-US")); 174 | } 175 | 176 | if (labelField.activeSelf) 177 | { 178 | labelField.GetComponent().text = (selectedNode as Label).textMesh.text; 179 | } 180 | } 181 | 182 | else if (point != null) 183 | { 184 | start = point; 185 | line.start = start.transform.position; 186 | line.end = mousePosWorld; 187 | line.gameObject.SetActive(true); 188 | } 189 | } 190 | 191 | 192 | 193 | } 194 | 195 | if (Input.GetMouseButton(0)) 196 | { 197 | 198 | if (selectedNode != null) 199 | { 200 | selectedNode.transform.position = mousePosWorld + (Vector3) moveOffset; 201 | selectedNode.PositionChanged(); 202 | } 203 | 204 | if (start != null) 205 | { 206 | line.start = start.transform.position; 207 | line.end = mousePosWorld; 208 | } 209 | 210 | } 211 | 212 | if (Input.GetMouseButtonUp(0)) 213 | { 214 | /*if (selectedNode != null) 215 | { 216 | //selectedNode.PositionChanged(); 217 | selectedNode = null; 218 | }*/ 219 | 220 | 221 | //lastPosition = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 10.0f)); 222 | line.gameObject.SetActive(false); 223 | 224 | RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), 225 | Vector2.zero); 226 | if (hit) 227 | { 228 | var point = hit.collider.GetComponent(); 229 | if (point != null) 230 | { 231 | end = point; 232 | } 233 | } 234 | 235 | if (start != null && end != null) 236 | { 237 | if (start is PointOut && end is PointIn) 238 | { 239 | ApplyConntection(end as PointIn, start as PointOut); 240 | } 241 | else if (start is PointIn && end is PointOut) 242 | { 243 | ApplyConntection(start as PointIn, end as PointOut); 244 | } 245 | } 246 | 247 | 248 | } 249 | 250 | lastMousePos = mousePos; 251 | } 252 | 253 | 254 | 255 | 256 | } 257 | 258 | 259 | private void ApplyConntection(PointIn a,PointOut b) 260 | { 261 | start = null; 262 | end = null; 263 | 264 | if (a.Input != null) 265 | { 266 | a.Input.Outs.Remove(a); 267 | } 268 | if (a.Input == b) 269 | { 270 | a.Input = null; 271 | } 272 | else 273 | { 274 | a.Input = b; 275 | b.Outs.Add(a); 276 | } 277 | 278 | 279 | 280 | a.UpdateLine(); 281 | a.OnCircuitChanged(); 282 | b.OnCircuitChanged(); 283 | 284 | 285 | } 286 | } 287 | } -------------------------------------------------------------------------------- /Assets/Prefabs/PushButton.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1077081689789106} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1077081689789106 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 4927087166624776} 22 | - component: {fileID: 212508393651786346} 23 | - component: {fileID: 61163772436112338} 24 | - component: {fileID: 114536773950979174} 25 | m_Layer: 0 26 | m_Name: PushButton 27 | m_TagString: Untagged 28 | m_Icon: {fileID: 0} 29 | m_NavMeshLayer: 0 30 | m_StaticEditorFlags: 0 31 | m_IsActive: 1 32 | --- !u!1 &1317500214645054 33 | GameObject: 34 | m_ObjectHideFlags: 0 35 | m_CorrespondingSourceObject: {fileID: 0} 36 | m_PrefabInternal: {fileID: 100100000} 37 | serializedVersion: 6 38 | m_Component: 39 | - component: {fileID: 4412685377411636} 40 | - component: {fileID: 23865215680374490} 41 | - component: {fileID: 102101649573122068} 42 | m_Layer: 2 43 | m_Name: New Text 44 | m_TagString: Untagged 45 | m_Icon: {fileID: 0} 46 | m_NavMeshLayer: 0 47 | m_StaticEditorFlags: 0 48 | m_IsActive: 1 49 | --- !u!1 &1590528108745720 50 | GameObject: 51 | m_ObjectHideFlags: 0 52 | m_CorrespondingSourceObject: {fileID: 0} 53 | m_PrefabInternal: {fileID: 100100000} 54 | serializedVersion: 6 55 | m_Component: 56 | - component: {fileID: 4692403243876312} 57 | - component: {fileID: 212522265682408926} 58 | - component: {fileID: 114386146232715148} 59 | - component: {fileID: 61847230194406152} 60 | m_Layer: 0 61 | m_Name: Out 62 | m_TagString: Untagged 63 | m_Icon: {fileID: 0} 64 | m_NavMeshLayer: 0 65 | m_StaticEditorFlags: 0 66 | m_IsActive: 1 67 | --- !u!4 &4412685377411636 68 | Transform: 69 | m_ObjectHideFlags: 1 70 | m_CorrespondingSourceObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | m_GameObject: {fileID: 1317500214645054} 73 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 74 | m_LocalPosition: {x: 0, y: 0, z: 0} 75 | m_LocalScale: {x: 0.5, y: 1, z: 1} 76 | m_Children: [] 77 | m_Father: {fileID: 4927087166624776} 78 | m_RootOrder: 0 79 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 80 | --- !u!4 &4692403243876312 81 | Transform: 82 | m_ObjectHideFlags: 1 83 | m_CorrespondingSourceObject: {fileID: 0} 84 | m_PrefabInternal: {fileID: 100100000} 85 | m_GameObject: {fileID: 1590528108745720} 86 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 87 | m_LocalPosition: {x: 0.575, y: 0, z: 0} 88 | m_LocalScale: {x: 0.14999999, y: 0.29999998, z: 1} 89 | m_Children: [] 90 | m_Father: {fileID: 4927087166624776} 91 | m_RootOrder: 1 92 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 93 | --- !u!4 &4927087166624776 94 | Transform: 95 | m_ObjectHideFlags: 1 96 | m_CorrespondingSourceObject: {fileID: 0} 97 | m_PrefabInternal: {fileID: 100100000} 98 | m_GameObject: {fileID: 1077081689789106} 99 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 100 | m_LocalPosition: {x: 0, y: 0, z: 0} 101 | m_LocalScale: {x: 2, y: 1, z: 1} 102 | m_Children: 103 | - {fileID: 4412685377411636} 104 | - {fileID: 4692403243876312} 105 | m_Father: {fileID: 0} 106 | m_RootOrder: 0 107 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 108 | --- !u!23 &23865215680374490 109 | MeshRenderer: 110 | m_ObjectHideFlags: 1 111 | m_CorrespondingSourceObject: {fileID: 0} 112 | m_PrefabInternal: {fileID: 100100000} 113 | m_GameObject: {fileID: 1317500214645054} 114 | m_Enabled: 1 115 | m_CastShadows: 1 116 | m_ReceiveShadows: 1 117 | m_DynamicOccludee: 1 118 | m_MotionVectors: 1 119 | m_LightProbeUsage: 1 120 | m_ReflectionProbeUsage: 1 121 | m_RenderingLayerMask: 4294967295 122 | m_Materials: 123 | - {fileID: 2100000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 124 | m_StaticBatchInfo: 125 | firstSubMesh: 0 126 | subMeshCount: 0 127 | m_StaticBatchRoot: {fileID: 0} 128 | m_ProbeAnchor: {fileID: 0} 129 | m_LightProbeVolumeOverride: {fileID: 0} 130 | m_ScaleInLightmap: 1 131 | m_PreserveUVs: 0 132 | m_IgnoreNormalsForChartDetection: 0 133 | m_ImportantGI: 0 134 | m_StitchLightmapSeams: 0 135 | m_SelectedEditorRenderState: 3 136 | m_MinimumChartSize: 4 137 | m_AutoUVMaxDistance: 0.5 138 | m_AutoUVMaxAngle: 89 139 | m_LightmapParameters: {fileID: 0} 140 | m_SortingLayerID: 0 141 | m_SortingLayer: 0 142 | m_SortingOrder: 0 143 | --- !u!61 &61163772436112338 144 | BoxCollider2D: 145 | m_ObjectHideFlags: 1 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 100100000} 148 | m_GameObject: {fileID: 1077081689789106} 149 | m_Enabled: 1 150 | m_Density: 1 151 | m_Material: {fileID: 0} 152 | m_IsTrigger: 0 153 | m_UsedByEffector: 0 154 | m_UsedByComposite: 0 155 | m_Offset: {x: 0, y: 0} 156 | m_SpriteTilingProperty: 157 | border: {x: 0, y: 0, z: 0, w: 0} 158 | pivot: {x: 0.5, y: 0.5} 159 | oldSize: {x: 1, y: 1} 160 | newSize: {x: 0.33333334, y: 0.33333334} 161 | adaptiveTilingThreshold: 0.5 162 | drawMode: 0 163 | adaptiveTiling: 0 164 | m_AutoTiling: 0 165 | serializedVersion: 2 166 | m_Size: {x: 1, y: 1} 167 | m_EdgeRadius: 0 168 | --- !u!61 &61847230194406152 169 | BoxCollider2D: 170 | m_ObjectHideFlags: 1 171 | m_CorrespondingSourceObject: {fileID: 0} 172 | m_PrefabInternal: {fileID: 100100000} 173 | m_GameObject: {fileID: 1590528108745720} 174 | m_Enabled: 1 175 | m_Density: 1 176 | m_Material: {fileID: 0} 177 | m_IsTrigger: 0 178 | m_UsedByEffector: 0 179 | m_UsedByComposite: 0 180 | m_Offset: {x: 0, y: 0} 181 | m_SpriteTilingProperty: 182 | border: {x: 0, y: 0, z: 0, w: 0} 183 | pivot: {x: 0.5, y: 0.5} 184 | oldSize: {x: 1, y: 1} 185 | newSize: {x: 1, y: 1} 186 | adaptiveTilingThreshold: 0.5 187 | drawMode: 0 188 | adaptiveTiling: 0 189 | m_AutoTiling: 0 190 | serializedVersion: 2 191 | m_Size: {x: 1, y: 1} 192 | m_EdgeRadius: 0 193 | --- !u!102 &102101649573122068 194 | TextMesh: 195 | serializedVersion: 3 196 | m_ObjectHideFlags: 1 197 | m_CorrespondingSourceObject: {fileID: 0} 198 | m_PrefabInternal: {fileID: 100100000} 199 | m_GameObject: {fileID: 1317500214645054} 200 | m_Text: clck 201 | m_OffsetZ: -0.1 202 | m_CharacterSize: 0.3 203 | m_LineSpacing: 1 204 | m_Anchor: 4 205 | m_Alignment: 1 206 | m_TabSize: 4 207 | m_FontSize: 15 208 | m_FontStyle: 0 209 | m_RichText: 1 210 | m_Font: {fileID: 12800000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 211 | m_Color: 212 | serializedVersion: 2 213 | rgba: 4278190080 214 | --- !u!114 &114386146232715148 215 | MonoBehaviour: 216 | m_ObjectHideFlags: 1 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInternal: {fileID: 100100000} 219 | m_GameObject: {fileID: 1590528108745720} 220 | m_Enabled: 1 221 | m_EditorHideFlags: 0 222 | m_Script: {fileID: 11500000, guid: 8a7ce06ac94a459e8aa3ec368a1a5a1b, type: 3} 223 | m_Name: 224 | m_EditorClassIdentifier: 225 | value: 0 226 | Outs: [] 227 | --- !u!114 &114536773950979174 228 | MonoBehaviour: 229 | m_ObjectHideFlags: 1 230 | m_CorrespondingSourceObject: {fileID: 0} 231 | m_PrefabInternal: {fileID: 100100000} 232 | m_GameObject: {fileID: 1077081689789106} 233 | m_Enabled: 1 234 | m_EditorHideFlags: 0 235 | m_Script: {fileID: 11500000, guid: b63198fd95e8488a8e536211d89d4cda, type: 3} 236 | m_Name: 237 | m_EditorClassIdentifier: 238 | --- !u!212 &212508393651786346 239 | SpriteRenderer: 240 | m_ObjectHideFlags: 1 241 | m_CorrespondingSourceObject: {fileID: 0} 242 | m_PrefabInternal: {fileID: 100100000} 243 | m_GameObject: {fileID: 1077081689789106} 244 | m_Enabled: 1 245 | m_CastShadows: 0 246 | m_ReceiveShadows: 0 247 | m_DynamicOccludee: 1 248 | m_MotionVectors: 1 249 | m_LightProbeUsage: 1 250 | m_ReflectionProbeUsage: 1 251 | m_RenderingLayerMask: 4294967295 252 | m_Materials: 253 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 254 | m_StaticBatchInfo: 255 | firstSubMesh: 0 256 | subMeshCount: 0 257 | m_StaticBatchRoot: {fileID: 0} 258 | m_ProbeAnchor: {fileID: 0} 259 | m_LightProbeVolumeOverride: {fileID: 0} 260 | m_ScaleInLightmap: 1 261 | m_PreserveUVs: 0 262 | m_IgnoreNormalsForChartDetection: 0 263 | m_ImportantGI: 0 264 | m_StitchLightmapSeams: 0 265 | m_SelectedEditorRenderState: 0 266 | m_MinimumChartSize: 4 267 | m_AutoUVMaxDistance: 0.5 268 | m_AutoUVMaxAngle: 89 269 | m_LightmapParameters: {fileID: 0} 270 | m_SortingLayerID: 0 271 | m_SortingLayer: 0 272 | m_SortingOrder: 0 273 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 274 | m_Color: {r: 0.6132076, g: 0.5987451, b: 0.5987451, a: 1} 275 | m_FlipX: 0 276 | m_FlipY: 0 277 | m_DrawMode: 0 278 | m_Size: {x: 0.33333334, y: 0.33333334} 279 | m_AdaptiveModeThreshold: 0.5 280 | m_SpriteTileMode: 0 281 | m_WasSpriteAssigned: 1 282 | m_MaskInteraction: 0 283 | m_SpriteSortPoint: 0 284 | --- !u!212 &212522265682408926 285 | SpriteRenderer: 286 | m_ObjectHideFlags: 1 287 | m_CorrespondingSourceObject: {fileID: 0} 288 | m_PrefabInternal: {fileID: 100100000} 289 | m_GameObject: {fileID: 1590528108745720} 290 | m_Enabled: 1 291 | m_CastShadows: 0 292 | m_ReceiveShadows: 0 293 | m_DynamicOccludee: 1 294 | m_MotionVectors: 1 295 | m_LightProbeUsage: 1 296 | m_ReflectionProbeUsage: 1 297 | m_RenderingLayerMask: 4294967295 298 | m_Materials: 299 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 300 | m_StaticBatchInfo: 301 | firstSubMesh: 0 302 | subMeshCount: 0 303 | m_StaticBatchRoot: {fileID: 0} 304 | m_ProbeAnchor: {fileID: 0} 305 | m_LightProbeVolumeOverride: {fileID: 0} 306 | m_ScaleInLightmap: 1 307 | m_PreserveUVs: 0 308 | m_IgnoreNormalsForChartDetection: 0 309 | m_ImportantGI: 0 310 | m_StitchLightmapSeams: 0 311 | m_SelectedEditorRenderState: 0 312 | m_MinimumChartSize: 4 313 | m_AutoUVMaxDistance: 0.5 314 | m_AutoUVMaxAngle: 89 315 | m_LightmapParameters: {fileID: 0} 316 | m_SortingLayerID: 0 317 | m_SortingLayer: 0 318 | m_SortingOrder: 0 319 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 320 | m_Color: {r: 0.3301887, g: 0.3301887, b: 0.3301887, a: 1} 321 | m_FlipX: 0 322 | m_FlipY: 0 323 | m_DrawMode: 0 324 | m_Size: {x: 1, y: 1} 325 | m_AdaptiveModeThreshold: 0.5 326 | m_SpriteTileMode: 0 327 | m_WasSpriteAssigned: 1 328 | m_MaskInteraction: 0 329 | m_SpriteSortPoint: 0 330 | -------------------------------------------------------------------------------- /Assets/Prefabs/ToggleButton.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1456504340275990} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1098798862970976 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 4587948868299140} 22 | - component: {fileID: 23994880977335330} 23 | - component: {fileID: 102405063411811104} 24 | m_Layer: 2 25 | m_Name: New Text 26 | m_TagString: Untagged 27 | m_Icon: {fileID: 0} 28 | m_NavMeshLayer: 0 29 | m_StaticEditorFlags: 0 30 | m_IsActive: 1 31 | --- !u!1 &1170245571256782 32 | GameObject: 33 | m_ObjectHideFlags: 0 34 | m_CorrespondingSourceObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | serializedVersion: 6 37 | m_Component: 38 | - component: {fileID: 4870038483892236} 39 | - component: {fileID: 212024540484843996} 40 | - component: {fileID: 114124265028518828} 41 | - component: {fileID: 61016815418675056} 42 | m_Layer: 0 43 | m_Name: Out 44 | m_TagString: Untagged 45 | m_Icon: {fileID: 0} 46 | m_NavMeshLayer: 0 47 | m_StaticEditorFlags: 0 48 | m_IsActive: 1 49 | --- !u!1 &1456504340275990 50 | GameObject: 51 | m_ObjectHideFlags: 0 52 | m_CorrespondingSourceObject: {fileID: 0} 53 | m_PrefabInternal: {fileID: 100100000} 54 | serializedVersion: 6 55 | m_Component: 56 | - component: {fileID: 4138078851986844} 57 | - component: {fileID: 212972397447385238} 58 | - component: {fileID: 61196526361145782} 59 | - component: {fileID: 114783542323169838} 60 | m_Layer: 0 61 | m_Name: ToggleButton 62 | m_TagString: Untagged 63 | m_Icon: {fileID: 0} 64 | m_NavMeshLayer: 0 65 | m_StaticEditorFlags: 0 66 | m_IsActive: 1 67 | --- !u!4 &4138078851986844 68 | Transform: 69 | m_ObjectHideFlags: 1 70 | m_CorrespondingSourceObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | m_GameObject: {fileID: 1456504340275990} 73 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 74 | m_LocalPosition: {x: -3.52, y: -2.3, z: 0} 75 | m_LocalScale: {x: 2, y: 1, z: 1} 76 | m_Children: 77 | - {fileID: 4587948868299140} 78 | - {fileID: 4870038483892236} 79 | m_Father: {fileID: 0} 80 | m_RootOrder: 0 81 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 82 | --- !u!4 &4587948868299140 83 | Transform: 84 | m_ObjectHideFlags: 1 85 | m_CorrespondingSourceObject: {fileID: 0} 86 | m_PrefabInternal: {fileID: 100100000} 87 | m_GameObject: {fileID: 1098798862970976} 88 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 89 | m_LocalPosition: {x: 0, y: 0, z: 0} 90 | m_LocalScale: {x: 0.5, y: 1, z: 1} 91 | m_Children: [] 92 | m_Father: {fileID: 4138078851986844} 93 | m_RootOrder: 0 94 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 95 | --- !u!4 &4870038483892236 96 | Transform: 97 | m_ObjectHideFlags: 1 98 | m_CorrespondingSourceObject: {fileID: 0} 99 | m_PrefabInternal: {fileID: 100100000} 100 | m_GameObject: {fileID: 1170245571256782} 101 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 102 | m_LocalPosition: {x: 0.575, y: 0, z: 0} 103 | m_LocalScale: {x: 0.14999999, y: 0.29999998, z: 1} 104 | m_Children: [] 105 | m_Father: {fileID: 4138078851986844} 106 | m_RootOrder: 1 107 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 108 | --- !u!23 &23994880977335330 109 | MeshRenderer: 110 | m_ObjectHideFlags: 1 111 | m_CorrespondingSourceObject: {fileID: 0} 112 | m_PrefabInternal: {fileID: 100100000} 113 | m_GameObject: {fileID: 1098798862970976} 114 | m_Enabled: 1 115 | m_CastShadows: 1 116 | m_ReceiveShadows: 1 117 | m_DynamicOccludee: 1 118 | m_MotionVectors: 1 119 | m_LightProbeUsage: 1 120 | m_ReflectionProbeUsage: 1 121 | m_RenderingLayerMask: 4294967295 122 | m_Materials: 123 | - {fileID: 2100000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 124 | m_StaticBatchInfo: 125 | firstSubMesh: 0 126 | subMeshCount: 0 127 | m_StaticBatchRoot: {fileID: 0} 128 | m_ProbeAnchor: {fileID: 0} 129 | m_LightProbeVolumeOverride: {fileID: 0} 130 | m_ScaleInLightmap: 1 131 | m_PreserveUVs: 0 132 | m_IgnoreNormalsForChartDetection: 0 133 | m_ImportantGI: 0 134 | m_StitchLightmapSeams: 0 135 | m_SelectedEditorRenderState: 3 136 | m_MinimumChartSize: 4 137 | m_AutoUVMaxDistance: 0.5 138 | m_AutoUVMaxAngle: 89 139 | m_LightmapParameters: {fileID: 0} 140 | m_SortingLayerID: 0 141 | m_SortingLayer: 0 142 | m_SortingOrder: 0 143 | --- !u!61 &61016815418675056 144 | BoxCollider2D: 145 | m_ObjectHideFlags: 1 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 100100000} 148 | m_GameObject: {fileID: 1170245571256782} 149 | m_Enabled: 1 150 | m_Density: 1 151 | m_Material: {fileID: 0} 152 | m_IsTrigger: 0 153 | m_UsedByEffector: 0 154 | m_UsedByComposite: 0 155 | m_Offset: {x: 0, y: 0} 156 | m_SpriteTilingProperty: 157 | border: {x: 0, y: 0, z: 0, w: 0} 158 | pivot: {x: 0.5, y: 0.5} 159 | oldSize: {x: 1, y: 1} 160 | newSize: {x: 1, y: 1} 161 | adaptiveTilingThreshold: 0.5 162 | drawMode: 0 163 | adaptiveTiling: 0 164 | m_AutoTiling: 0 165 | serializedVersion: 2 166 | m_Size: {x: 1, y: 1} 167 | m_EdgeRadius: 0 168 | --- !u!61 &61196526361145782 169 | BoxCollider2D: 170 | m_ObjectHideFlags: 1 171 | m_CorrespondingSourceObject: {fileID: 0} 172 | m_PrefabInternal: {fileID: 100100000} 173 | m_GameObject: {fileID: 1456504340275990} 174 | m_Enabled: 1 175 | m_Density: 1 176 | m_Material: {fileID: 0} 177 | m_IsTrigger: 0 178 | m_UsedByEffector: 0 179 | m_UsedByComposite: 0 180 | m_Offset: {x: 0, y: 0} 181 | m_SpriteTilingProperty: 182 | border: {x: 0, y: 0, z: 0, w: 0} 183 | pivot: {x: 0.5, y: 0.5} 184 | oldSize: {x: 1, y: 1} 185 | newSize: {x: 0.33333334, y: 0.33333334} 186 | adaptiveTilingThreshold: 0.5 187 | drawMode: 0 188 | adaptiveTiling: 0 189 | m_AutoTiling: 0 190 | serializedVersion: 2 191 | m_Size: {x: 1, y: 1} 192 | m_EdgeRadius: 0 193 | --- !u!102 &102405063411811104 194 | TextMesh: 195 | serializedVersion: 3 196 | m_ObjectHideFlags: 1 197 | m_CorrespondingSourceObject: {fileID: 0} 198 | m_PrefabInternal: {fileID: 100100000} 199 | m_GameObject: {fileID: 1098798862970976} 200 | m_Text: btnT 201 | m_OffsetZ: -0.1 202 | m_CharacterSize: 0.3 203 | m_LineSpacing: 1 204 | m_Anchor: 4 205 | m_Alignment: 1 206 | m_TabSize: 4 207 | m_FontSize: 15 208 | m_FontStyle: 0 209 | m_RichText: 1 210 | m_Font: {fileID: 12800000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 211 | m_Color: 212 | serializedVersion: 2 213 | rgba: 4278190080 214 | --- !u!114 &114124265028518828 215 | MonoBehaviour: 216 | m_ObjectHideFlags: 1 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInternal: {fileID: 100100000} 219 | m_GameObject: {fileID: 1170245571256782} 220 | m_Enabled: 1 221 | m_EditorHideFlags: 0 222 | m_Script: {fileID: 11500000, guid: 8a7ce06ac94a459e8aa3ec368a1a5a1b, type: 3} 223 | m_Name: 224 | m_EditorClassIdentifier: 225 | value: 0 226 | Outs: [] 227 | --- !u!114 &114783542323169838 228 | MonoBehaviour: 229 | m_ObjectHideFlags: 1 230 | m_CorrespondingSourceObject: {fileID: 0} 231 | m_PrefabInternal: {fileID: 100100000} 232 | m_GameObject: {fileID: 1456504340275990} 233 | m_Enabled: 1 234 | m_EditorHideFlags: 0 235 | m_Script: {fileID: 11500000, guid: b67ffec22d034eb997251d3c7f56db13, type: 3} 236 | m_Name: 237 | m_EditorClassIdentifier: 238 | --- !u!212 &212024540484843996 239 | SpriteRenderer: 240 | m_ObjectHideFlags: 1 241 | m_CorrespondingSourceObject: {fileID: 0} 242 | m_PrefabInternal: {fileID: 100100000} 243 | m_GameObject: {fileID: 1170245571256782} 244 | m_Enabled: 1 245 | m_CastShadows: 0 246 | m_ReceiveShadows: 0 247 | m_DynamicOccludee: 1 248 | m_MotionVectors: 1 249 | m_LightProbeUsage: 1 250 | m_ReflectionProbeUsage: 1 251 | m_RenderingLayerMask: 4294967295 252 | m_Materials: 253 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 254 | m_StaticBatchInfo: 255 | firstSubMesh: 0 256 | subMeshCount: 0 257 | m_StaticBatchRoot: {fileID: 0} 258 | m_ProbeAnchor: {fileID: 0} 259 | m_LightProbeVolumeOverride: {fileID: 0} 260 | m_ScaleInLightmap: 1 261 | m_PreserveUVs: 0 262 | m_IgnoreNormalsForChartDetection: 0 263 | m_ImportantGI: 0 264 | m_StitchLightmapSeams: 0 265 | m_SelectedEditorRenderState: 0 266 | m_MinimumChartSize: 4 267 | m_AutoUVMaxDistance: 0.5 268 | m_AutoUVMaxAngle: 89 269 | m_LightmapParameters: {fileID: 0} 270 | m_SortingLayerID: 0 271 | m_SortingLayer: 0 272 | m_SortingOrder: 0 273 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 274 | m_Color: {r: 0.3301887, g: 0.3301887, b: 0.3301887, a: 1} 275 | m_FlipX: 0 276 | m_FlipY: 0 277 | m_DrawMode: 0 278 | m_Size: {x: 1, y: 1} 279 | m_AdaptiveModeThreshold: 0.5 280 | m_SpriteTileMode: 0 281 | m_WasSpriteAssigned: 1 282 | m_MaskInteraction: 0 283 | m_SpriteSortPoint: 0 284 | --- !u!212 &212972397447385238 285 | SpriteRenderer: 286 | m_ObjectHideFlags: 1 287 | m_CorrespondingSourceObject: {fileID: 0} 288 | m_PrefabInternal: {fileID: 100100000} 289 | m_GameObject: {fileID: 1456504340275990} 290 | m_Enabled: 1 291 | m_CastShadows: 0 292 | m_ReceiveShadows: 0 293 | m_DynamicOccludee: 1 294 | m_MotionVectors: 1 295 | m_LightProbeUsage: 1 296 | m_ReflectionProbeUsage: 1 297 | m_RenderingLayerMask: 4294967295 298 | m_Materials: 299 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 300 | m_StaticBatchInfo: 301 | firstSubMesh: 0 302 | subMeshCount: 0 303 | m_StaticBatchRoot: {fileID: 0} 304 | m_ProbeAnchor: {fileID: 0} 305 | m_LightProbeVolumeOverride: {fileID: 0} 306 | m_ScaleInLightmap: 1 307 | m_PreserveUVs: 0 308 | m_IgnoreNormalsForChartDetection: 0 309 | m_ImportantGI: 0 310 | m_StitchLightmapSeams: 0 311 | m_SelectedEditorRenderState: 0 312 | m_MinimumChartSize: 4 313 | m_AutoUVMaxDistance: 0.5 314 | m_AutoUVMaxAngle: 89 315 | m_LightmapParameters: {fileID: 0} 316 | m_SortingLayerID: 0 317 | m_SortingLayer: 0 318 | m_SortingOrder: 0 319 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 320 | m_Color: {r: 0.6132076, g: 0.5987451, b: 0.5987451, a: 1} 321 | m_FlipX: 0 322 | m_FlipY: 0 323 | m_DrawMode: 0 324 | m_Size: {x: 0.33333334, y: 0.33333334} 325 | m_AdaptiveModeThreshold: 0.5 326 | m_SpriteTileMode: 0 327 | m_WasSpriteAssigned: 1 328 | m_MaskInteraction: 0 329 | m_SpriteSortPoint: 0 330 | -------------------------------------------------------------------------------- /Assets/Prefabs/BitDisplay.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1492917785032452} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1265282144401690 15 | GameObject: 16 | m_ObjectHideFlags: 1 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 4843833926723780} 22 | - component: {fileID: 212251108140733130} 23 | - component: {fileID: 50761101656594020} 24 | - component: {fileID: 114583840585729912} 25 | m_Layer: 2 26 | m_Name: Line 27 | m_TagString: Untagged 28 | m_Icon: {fileID: 0} 29 | m_NavMeshLayer: 0 30 | m_StaticEditorFlags: 0 31 | m_IsActive: 0 32 | --- !u!1 &1363040643311254 33 | GameObject: 34 | m_ObjectHideFlags: 0 35 | m_CorrespondingSourceObject: {fileID: 0} 36 | m_PrefabInternal: {fileID: 100100000} 37 | serializedVersion: 6 38 | m_Component: 39 | - component: {fileID: 4555245532932012} 40 | - component: {fileID: 212042039336508634} 41 | - component: {fileID: 114801969972331120} 42 | - component: {fileID: 61426001718579122} 43 | m_Layer: 0 44 | m_Name: In 45 | m_TagString: Untagged 46 | m_Icon: {fileID: 0} 47 | m_NavMeshLayer: 0 48 | m_StaticEditorFlags: 0 49 | m_IsActive: 1 50 | --- !u!1 &1434405432233642 51 | GameObject: 52 | m_ObjectHideFlags: 0 53 | m_CorrespondingSourceObject: {fileID: 0} 54 | m_PrefabInternal: {fileID: 100100000} 55 | serializedVersion: 6 56 | m_Component: 57 | - component: {fileID: 4936032404971042} 58 | - component: {fileID: 23184365553149868} 59 | - component: {fileID: 102342693767726066} 60 | m_Layer: 2 61 | m_Name: New Text 62 | m_TagString: Untagged 63 | m_Icon: {fileID: 0} 64 | m_NavMeshLayer: 0 65 | m_StaticEditorFlags: 0 66 | m_IsActive: 1 67 | --- !u!1 &1492917785032452 68 | GameObject: 69 | m_ObjectHideFlags: 0 70 | m_CorrespondingSourceObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | serializedVersion: 6 73 | m_Component: 74 | - component: {fileID: 4199529992277794} 75 | - component: {fileID: 212131919991635326} 76 | - component: {fileID: 61599613905315436} 77 | - component: {fileID: 114401430525821324} 78 | m_Layer: 0 79 | m_Name: BitDisplay 80 | m_TagString: Untagged 81 | m_Icon: {fileID: 0} 82 | m_NavMeshLayer: 0 83 | m_StaticEditorFlags: 0 84 | m_IsActive: 1 85 | --- !u!4 &4199529992277794 86 | Transform: 87 | m_ObjectHideFlags: 1 88 | m_CorrespondingSourceObject: {fileID: 0} 89 | m_PrefabInternal: {fileID: 100100000} 90 | m_GameObject: {fileID: 1492917785032452} 91 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 92 | m_LocalPosition: {x: 0, y: 0, z: 0} 93 | m_LocalScale: {x: 2, y: 1, z: 1} 94 | m_Children: 95 | - {fileID: 4936032404971042} 96 | - {fileID: 4555245532932012} 97 | m_Father: {fileID: 0} 98 | m_RootOrder: 0 99 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 100 | --- !u!4 &4555245532932012 101 | Transform: 102 | m_ObjectHideFlags: 1 103 | m_CorrespondingSourceObject: {fileID: 0} 104 | m_PrefabInternal: {fileID: 100100000} 105 | m_GameObject: {fileID: 1363040643311254} 106 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 107 | m_LocalPosition: {x: -0.575, y: 0, z: 0} 108 | m_LocalScale: {x: 0.14999999, y: 0.29999998, z: 1} 109 | m_Children: 110 | - {fileID: 4843833926723780} 111 | m_Father: {fileID: 4199529992277794} 112 | m_RootOrder: 1 113 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 114 | --- !u!4 &4843833926723780 115 | Transform: 116 | m_ObjectHideFlags: 1 117 | m_CorrespondingSourceObject: {fileID: 0} 118 | m_PrefabInternal: {fileID: 100100000} 119 | m_GameObject: {fileID: 1265282144401690} 120 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 121 | m_LocalPosition: {x: -6.13617, y: -4.4087954, z: 0} 122 | m_LocalScale: {x: 3.3333335, y: 3.3333335, z: 1} 123 | m_Children: [] 124 | m_Father: {fileID: 4555245532932012} 125 | m_RootOrder: 0 126 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 127 | --- !u!4 &4936032404971042 128 | Transform: 129 | m_ObjectHideFlags: 1 130 | m_CorrespondingSourceObject: {fileID: 0} 131 | m_PrefabInternal: {fileID: 100100000} 132 | m_GameObject: {fileID: 1434405432233642} 133 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 134 | m_LocalPosition: {x: 0, y: 0, z: 0} 135 | m_LocalScale: {x: 0.5, y: 1, z: 1} 136 | m_Children: [] 137 | m_Father: {fileID: 4199529992277794} 138 | m_RootOrder: 0 139 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 140 | --- !u!23 &23184365553149868 141 | MeshRenderer: 142 | m_ObjectHideFlags: 1 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInternal: {fileID: 100100000} 145 | m_GameObject: {fileID: 1434405432233642} 146 | m_Enabled: 1 147 | m_CastShadows: 1 148 | m_ReceiveShadows: 1 149 | m_DynamicOccludee: 1 150 | m_MotionVectors: 1 151 | m_LightProbeUsage: 1 152 | m_ReflectionProbeUsage: 1 153 | m_RenderingLayerMask: 4294967295 154 | m_Materials: 155 | - {fileID: 2100000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 156 | m_StaticBatchInfo: 157 | firstSubMesh: 0 158 | subMeshCount: 0 159 | m_StaticBatchRoot: {fileID: 0} 160 | m_ProbeAnchor: {fileID: 0} 161 | m_LightProbeVolumeOverride: {fileID: 0} 162 | m_ScaleInLightmap: 1 163 | m_PreserveUVs: 0 164 | m_IgnoreNormalsForChartDetection: 0 165 | m_ImportantGI: 0 166 | m_StitchLightmapSeams: 0 167 | m_SelectedEditorRenderState: 3 168 | m_MinimumChartSize: 4 169 | m_AutoUVMaxDistance: 0.5 170 | m_AutoUVMaxAngle: 89 171 | m_LightmapParameters: {fileID: 0} 172 | m_SortingLayerID: 0 173 | m_SortingLayer: 0 174 | m_SortingOrder: 0 175 | --- !u!50 &50761101656594020 176 | Rigidbody2D: 177 | serializedVersion: 4 178 | m_ObjectHideFlags: 1 179 | m_CorrespondingSourceObject: {fileID: 0} 180 | m_PrefabInternal: {fileID: 100100000} 181 | m_GameObject: {fileID: 1265282144401690} 182 | m_BodyType: 1 183 | m_Simulated: 0 184 | m_UseFullKinematicContacts: 0 185 | m_UseAutoMass: 0 186 | m_Mass: 1 187 | m_LinearDrag: 0 188 | m_AngularDrag: 0.05 189 | m_GravityScale: 1 190 | m_Material: {fileID: 0} 191 | m_Interpolate: 0 192 | m_SleepingMode: 1 193 | m_CollisionDetection: 0 194 | m_Constraints: 0 195 | --- !u!61 &61426001718579122 196 | BoxCollider2D: 197 | m_ObjectHideFlags: 1 198 | m_CorrespondingSourceObject: {fileID: 0} 199 | m_PrefabInternal: {fileID: 100100000} 200 | m_GameObject: {fileID: 1363040643311254} 201 | m_Enabled: 1 202 | m_Density: 1 203 | m_Material: {fileID: 0} 204 | m_IsTrigger: 0 205 | m_UsedByEffector: 0 206 | m_UsedByComposite: 0 207 | m_Offset: {x: 0, y: 0} 208 | m_SpriteTilingProperty: 209 | border: {x: 0, y: 0, z: 0, w: 0} 210 | pivot: {x: 0.5, y: 0.5} 211 | oldSize: {x: 1, y: 1} 212 | newSize: {x: 1, y: 1} 213 | adaptiveTilingThreshold: 0.5 214 | drawMode: 0 215 | adaptiveTiling: 0 216 | m_AutoTiling: 0 217 | serializedVersion: 2 218 | m_Size: {x: 1, y: 1} 219 | m_EdgeRadius: 0 220 | --- !u!61 &61599613905315436 221 | BoxCollider2D: 222 | m_ObjectHideFlags: 1 223 | m_CorrespondingSourceObject: {fileID: 0} 224 | m_PrefabInternal: {fileID: 100100000} 225 | m_GameObject: {fileID: 1492917785032452} 226 | m_Enabled: 1 227 | m_Density: 1 228 | m_Material: {fileID: 0} 229 | m_IsTrigger: 0 230 | m_UsedByEffector: 0 231 | m_UsedByComposite: 0 232 | m_Offset: {x: 0, y: 0} 233 | m_SpriteTilingProperty: 234 | border: {x: 0, y: 0, z: 0, w: 0} 235 | pivot: {x: 0.5, y: 0.5} 236 | oldSize: {x: 1, y: 1} 237 | newSize: {x: 0.33333334, y: 0.33333334} 238 | adaptiveTilingThreshold: 0.5 239 | drawMode: 0 240 | adaptiveTiling: 0 241 | m_AutoTiling: 0 242 | serializedVersion: 2 243 | m_Size: {x: 1, y: 1} 244 | m_EdgeRadius: 0 245 | --- !u!102 &102342693767726066 246 | TextMesh: 247 | serializedVersion: 3 248 | m_ObjectHideFlags: 1 249 | m_CorrespondingSourceObject: {fileID: 0} 250 | m_PrefabInternal: {fileID: 100100000} 251 | m_GameObject: {fileID: 1434405432233642} 252 | m_Text: 0 253 | m_OffsetZ: -0.1 254 | m_CharacterSize: 0.3 255 | m_LineSpacing: 1 256 | m_Anchor: 4 257 | m_Alignment: 1 258 | m_TabSize: 4 259 | m_FontSize: 15 260 | m_FontStyle: 0 261 | m_RichText: 1 262 | m_Font: {fileID: 12800000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 263 | m_Color: 264 | serializedVersion: 2 265 | rgba: 4278190080 266 | --- !u!114 &114401430525821324 267 | MonoBehaviour: 268 | m_ObjectHideFlags: 1 269 | m_CorrespondingSourceObject: {fileID: 0} 270 | m_PrefabInternal: {fileID: 100100000} 271 | m_GameObject: {fileID: 1492917785032452} 272 | m_Enabled: 1 273 | m_EditorHideFlags: 0 274 | m_Script: {fileID: 11500000, guid: baecb2c6ea964283a886b1c6c28734ef, type: 3} 275 | m_Name: 276 | m_EditorClassIdentifier: 277 | text: {fileID: 102342693767726066} 278 | --- !u!114 &114583840585729912 279 | MonoBehaviour: 280 | m_ObjectHideFlags: 1 281 | m_CorrespondingSourceObject: {fileID: 0} 282 | m_PrefabInternal: {fileID: 100100000} 283 | m_GameObject: {fileID: 1265282144401690} 284 | m_Enabled: 1 285 | m_EditorHideFlags: 0 286 | m_Script: {fileID: 11500000, guid: 8b34068df4b284f60add5d301695f152, type: 3} 287 | m_Name: 288 | m_EditorClassIdentifier: 289 | --- !u!114 &114801969972331120 290 | MonoBehaviour: 291 | m_ObjectHideFlags: 1 292 | m_CorrespondingSourceObject: {fileID: 0} 293 | m_PrefabInternal: {fileID: 100100000} 294 | m_GameObject: {fileID: 1363040643311254} 295 | m_Enabled: 1 296 | m_EditorHideFlags: 0 297 | m_Script: {fileID: 11500000, guid: dcf871e5c50248d5ad7a504e1302bac9, type: 3} 298 | m_Name: 299 | m_EditorClassIdentifier: 300 | value: 0 301 | line: {fileID: 114583840585729912} 302 | Input: {fileID: 0} 303 | --- !u!212 &212042039336508634 304 | SpriteRenderer: 305 | m_ObjectHideFlags: 1 306 | m_CorrespondingSourceObject: {fileID: 0} 307 | m_PrefabInternal: {fileID: 100100000} 308 | m_GameObject: {fileID: 1363040643311254} 309 | m_Enabled: 1 310 | m_CastShadows: 0 311 | m_ReceiveShadows: 0 312 | m_DynamicOccludee: 1 313 | m_MotionVectors: 1 314 | m_LightProbeUsage: 1 315 | m_ReflectionProbeUsage: 1 316 | m_RenderingLayerMask: 4294967295 317 | m_Materials: 318 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 319 | m_StaticBatchInfo: 320 | firstSubMesh: 0 321 | subMeshCount: 0 322 | m_StaticBatchRoot: {fileID: 0} 323 | m_ProbeAnchor: {fileID: 0} 324 | m_LightProbeVolumeOverride: {fileID: 0} 325 | m_ScaleInLightmap: 1 326 | m_PreserveUVs: 0 327 | m_IgnoreNormalsForChartDetection: 0 328 | m_ImportantGI: 0 329 | m_StitchLightmapSeams: 0 330 | m_SelectedEditorRenderState: 0 331 | m_MinimumChartSize: 4 332 | m_AutoUVMaxDistance: 0.5 333 | m_AutoUVMaxAngle: 89 334 | m_LightmapParameters: {fileID: 0} 335 | m_SortingLayerID: 0 336 | m_SortingLayer: 0 337 | m_SortingOrder: 0 338 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 339 | m_Color: {r: 0.3301887, g: 0.3301887, b: 0.3301887, a: 1} 340 | m_FlipX: 0 341 | m_FlipY: 0 342 | m_DrawMode: 0 343 | m_Size: {x: 1, y: 1} 344 | m_AdaptiveModeThreshold: 0.5 345 | m_SpriteTileMode: 0 346 | m_WasSpriteAssigned: 1 347 | m_MaskInteraction: 0 348 | m_SpriteSortPoint: 0 349 | --- !u!212 &212131919991635326 350 | SpriteRenderer: 351 | m_ObjectHideFlags: 1 352 | m_CorrespondingSourceObject: {fileID: 0} 353 | m_PrefabInternal: {fileID: 100100000} 354 | m_GameObject: {fileID: 1492917785032452} 355 | m_Enabled: 1 356 | m_CastShadows: 0 357 | m_ReceiveShadows: 0 358 | m_DynamicOccludee: 1 359 | m_MotionVectors: 1 360 | m_LightProbeUsage: 1 361 | m_ReflectionProbeUsage: 1 362 | m_RenderingLayerMask: 4294967295 363 | m_Materials: 364 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 365 | m_StaticBatchInfo: 366 | firstSubMesh: 0 367 | subMeshCount: 0 368 | m_StaticBatchRoot: {fileID: 0} 369 | m_ProbeAnchor: {fileID: 0} 370 | m_LightProbeVolumeOverride: {fileID: 0} 371 | m_ScaleInLightmap: 1 372 | m_PreserveUVs: 0 373 | m_IgnoreNormalsForChartDetection: 0 374 | m_ImportantGI: 0 375 | m_StitchLightmapSeams: 0 376 | m_SelectedEditorRenderState: 0 377 | m_MinimumChartSize: 4 378 | m_AutoUVMaxDistance: 0.5 379 | m_AutoUVMaxAngle: 89 380 | m_LightmapParameters: {fileID: 0} 381 | m_SortingLayerID: 0 382 | m_SortingLayer: 0 383 | m_SortingOrder: 0 384 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 385 | m_Color: {r: 0.6132076, g: 0.5987451, b: 0.5987451, a: 1} 386 | m_FlipX: 0 387 | m_FlipY: 0 388 | m_DrawMode: 0 389 | m_Size: {x: 0.33333334, y: 0.33333334} 390 | m_AdaptiveModeThreshold: 0.5 391 | m_SpriteTileMode: 0 392 | m_WasSpriteAssigned: 1 393 | m_MaskInteraction: 0 394 | m_SpriteSortPoint: 0 395 | --- !u!212 &212251108140733130 396 | SpriteRenderer: 397 | m_ObjectHideFlags: 1 398 | m_CorrespondingSourceObject: {fileID: 0} 399 | m_PrefabInternal: {fileID: 100100000} 400 | m_GameObject: {fileID: 1265282144401690} 401 | m_Enabled: 1 402 | m_CastShadows: 0 403 | m_ReceiveShadows: 0 404 | m_DynamicOccludee: 1 405 | m_MotionVectors: 1 406 | m_LightProbeUsage: 0 407 | m_ReflectionProbeUsage: 0 408 | m_RenderingLayerMask: 4294967295 409 | m_Materials: 410 | - {fileID: 2100000, guid: 6a699246958f043a4999f047b26871af, type: 2} 411 | m_StaticBatchInfo: 412 | firstSubMesh: 0 413 | subMeshCount: 0 414 | m_StaticBatchRoot: {fileID: 0} 415 | m_ProbeAnchor: {fileID: 0} 416 | m_LightProbeVolumeOverride: {fileID: 0} 417 | m_ScaleInLightmap: 1 418 | m_PreserveUVs: 0 419 | m_IgnoreNormalsForChartDetection: 0 420 | m_ImportantGI: 0 421 | m_StitchLightmapSeams: 0 422 | m_SelectedEditorRenderState: 0 423 | m_MinimumChartSize: 4 424 | m_AutoUVMaxDistance: 0.5 425 | m_AutoUVMaxAngle: 89 426 | m_LightmapParameters: {fileID: 0} 427 | m_SortingLayerID: -94776817 428 | m_SortingLayer: 0 429 | m_SortingOrder: -100 430 | m_Sprite: {fileID: 21300000, guid: 99397ff1167bee7468d9086851d46576, type: 3} 431 | m_Color: {r: 0, g: 0, b: 0, a: 1} 432 | m_FlipX: 0 433 | m_FlipY: 0 434 | m_DrawMode: 0 435 | m_Size: {x: 1, y: 1} 436 | m_AdaptiveModeThreshold: 0.5 437 | m_SpriteTileMode: 0 438 | m_WasSpriteAssigned: 1 439 | m_MaskInteraction: 0 440 | m_SpriteSortPoint: 0 441 | -------------------------------------------------------------------------------- /Assets/Prefabs/Not.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_SourcePrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1138806749746390} 13 | m_IsPrefabAsset: 1 14 | --- !u!1 &1138806749746390 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_CorrespondingSourceObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 6 20 | m_Component: 21 | - component: {fileID: 4442061317720330} 22 | - component: {fileID: 212418726904970410} 23 | - component: {fileID: 61367457650009932} 24 | - component: {fileID: 114830070540318696} 25 | m_Layer: 0 26 | m_Name: Not 27 | m_TagString: Untagged 28 | m_Icon: {fileID: 0} 29 | m_NavMeshLayer: 0 30 | m_StaticEditorFlags: 0 31 | m_IsActive: 1 32 | --- !u!1 &1329706048503188 33 | GameObject: 34 | m_ObjectHideFlags: 0 35 | m_CorrespondingSourceObject: {fileID: 0} 36 | m_PrefabInternal: {fileID: 100100000} 37 | serializedVersion: 6 38 | m_Component: 39 | - component: {fileID: 4304405846720790} 40 | - component: {fileID: 23137128572322808} 41 | - component: {fileID: 102392183041257188} 42 | m_Layer: 2 43 | m_Name: New Text 44 | m_TagString: Untagged 45 | m_Icon: {fileID: 0} 46 | m_NavMeshLayer: 0 47 | m_StaticEditorFlags: 0 48 | m_IsActive: 1 49 | --- !u!1 &1508375788909998 50 | GameObject: 51 | m_ObjectHideFlags: 0 52 | m_CorrespondingSourceObject: {fileID: 0} 53 | m_PrefabInternal: {fileID: 100100000} 54 | serializedVersion: 6 55 | m_Component: 56 | - component: {fileID: 4183789611619208} 57 | - component: {fileID: 212607421230338290} 58 | - component: {fileID: 114373809330610652} 59 | - component: {fileID: 61399341231042576} 60 | m_Layer: 0 61 | m_Name: In 62 | m_TagString: Untagged 63 | m_Icon: {fileID: 0} 64 | m_NavMeshLayer: 0 65 | m_StaticEditorFlags: 0 66 | m_IsActive: 1 67 | --- !u!1 &1872385304823962 68 | GameObject: 69 | m_ObjectHideFlags: 0 70 | m_CorrespondingSourceObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | serializedVersion: 6 73 | m_Component: 74 | - component: {fileID: 4308788087507652} 75 | - component: {fileID: 212502520714374860} 76 | - component: {fileID: 114098163977886478} 77 | - component: {fileID: 61358720764240928} 78 | m_Layer: 0 79 | m_Name: Out 80 | m_TagString: Untagged 81 | m_Icon: {fileID: 0} 82 | m_NavMeshLayer: 0 83 | m_StaticEditorFlags: 0 84 | m_IsActive: 1 85 | --- !u!1 &1983752207688336 86 | GameObject: 87 | m_ObjectHideFlags: 1 88 | m_CorrespondingSourceObject: {fileID: 0} 89 | m_PrefabInternal: {fileID: 100100000} 90 | serializedVersion: 6 91 | m_Component: 92 | - component: {fileID: 4633551563074994} 93 | - component: {fileID: 212419476549292894} 94 | - component: {fileID: 50673160947308514} 95 | - component: {fileID: 114862094471735240} 96 | m_Layer: 2 97 | m_Name: Line 98 | m_TagString: Untagged 99 | m_Icon: {fileID: 0} 100 | m_NavMeshLayer: 0 101 | m_StaticEditorFlags: 0 102 | m_IsActive: 0 103 | --- !u!4 &4183789611619208 104 | Transform: 105 | m_ObjectHideFlags: 1 106 | m_CorrespondingSourceObject: {fileID: 0} 107 | m_PrefabInternal: {fileID: 100100000} 108 | m_GameObject: {fileID: 1508375788909998} 109 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 110 | m_LocalPosition: {x: -0.575, y: 0, z: 0} 111 | m_LocalScale: {x: 0.14999999, y: 0.29999998, z: 1} 112 | m_Children: 113 | - {fileID: 4633551563074994} 114 | m_Father: {fileID: 4442061317720330} 115 | m_RootOrder: 1 116 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 117 | --- !u!4 &4304405846720790 118 | Transform: 119 | m_ObjectHideFlags: 1 120 | m_CorrespondingSourceObject: {fileID: 0} 121 | m_PrefabInternal: {fileID: 100100000} 122 | m_GameObject: {fileID: 1329706048503188} 123 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 124 | m_LocalPosition: {x: 0, y: 0, z: 0} 125 | m_LocalScale: {x: 0.5, y: 1, z: 1} 126 | m_Children: [] 127 | m_Father: {fileID: 4442061317720330} 128 | m_RootOrder: 0 129 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 130 | --- !u!4 &4308788087507652 131 | Transform: 132 | m_ObjectHideFlags: 1 133 | m_CorrespondingSourceObject: {fileID: 0} 134 | m_PrefabInternal: {fileID: 100100000} 135 | m_GameObject: {fileID: 1872385304823962} 136 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 137 | m_LocalPosition: {x: 0.575, y: 0, z: 0} 138 | m_LocalScale: {x: 0.14999999, y: 0.29999998, z: 1} 139 | m_Children: [] 140 | m_Father: {fileID: 4442061317720330} 141 | m_RootOrder: 2 142 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 143 | --- !u!4 &4442061317720330 144 | Transform: 145 | m_ObjectHideFlags: 1 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 100100000} 148 | m_GameObject: {fileID: 1138806749746390} 149 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 150 | m_LocalPosition: {x: -0.29, y: -3.45, z: 0} 151 | m_LocalScale: {x: 2, y: 1, z: 1} 152 | m_Children: 153 | - {fileID: 4304405846720790} 154 | - {fileID: 4183789611619208} 155 | - {fileID: 4308788087507652} 156 | m_Father: {fileID: 0} 157 | m_RootOrder: 0 158 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 159 | --- !u!4 &4633551563074994 160 | Transform: 161 | m_ObjectHideFlags: 1 162 | m_CorrespondingSourceObject: {fileID: 0} 163 | m_PrefabInternal: {fileID: 100100000} 164 | m_GameObject: {fileID: 1983752207688336} 165 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 166 | m_LocalPosition: {x: -6.13617, y: -4.4087954, z: 0} 167 | m_LocalScale: {x: 3.3333335, y: 3.3333335, z: 1} 168 | m_Children: [] 169 | m_Father: {fileID: 4183789611619208} 170 | m_RootOrder: 0 171 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 172 | --- !u!23 &23137128572322808 173 | MeshRenderer: 174 | m_ObjectHideFlags: 1 175 | m_CorrespondingSourceObject: {fileID: 0} 176 | m_PrefabInternal: {fileID: 100100000} 177 | m_GameObject: {fileID: 1329706048503188} 178 | m_Enabled: 1 179 | m_CastShadows: 1 180 | m_ReceiveShadows: 1 181 | m_DynamicOccludee: 1 182 | m_MotionVectors: 1 183 | m_LightProbeUsage: 1 184 | m_ReflectionProbeUsage: 1 185 | m_RenderingLayerMask: 4294967295 186 | m_Materials: 187 | - {fileID: 2100000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 188 | m_StaticBatchInfo: 189 | firstSubMesh: 0 190 | subMeshCount: 0 191 | m_StaticBatchRoot: {fileID: 0} 192 | m_ProbeAnchor: {fileID: 0} 193 | m_LightProbeVolumeOverride: {fileID: 0} 194 | m_ScaleInLightmap: 1 195 | m_PreserveUVs: 0 196 | m_IgnoreNormalsForChartDetection: 0 197 | m_ImportantGI: 0 198 | m_StitchLightmapSeams: 0 199 | m_SelectedEditorRenderState: 3 200 | m_MinimumChartSize: 4 201 | m_AutoUVMaxDistance: 0.5 202 | m_AutoUVMaxAngle: 89 203 | m_LightmapParameters: {fileID: 0} 204 | m_SortingLayerID: 0 205 | m_SortingLayer: 0 206 | m_SortingOrder: 0 207 | --- !u!50 &50673160947308514 208 | Rigidbody2D: 209 | serializedVersion: 4 210 | m_ObjectHideFlags: 1 211 | m_CorrespondingSourceObject: {fileID: 0} 212 | m_PrefabInternal: {fileID: 100100000} 213 | m_GameObject: {fileID: 1983752207688336} 214 | m_BodyType: 1 215 | m_Simulated: 0 216 | m_UseFullKinematicContacts: 0 217 | m_UseAutoMass: 0 218 | m_Mass: 1 219 | m_LinearDrag: 0 220 | m_AngularDrag: 0.05 221 | m_GravityScale: 1 222 | m_Material: {fileID: 0} 223 | m_Interpolate: 0 224 | m_SleepingMode: 1 225 | m_CollisionDetection: 0 226 | m_Constraints: 0 227 | --- !u!61 &61358720764240928 228 | BoxCollider2D: 229 | m_ObjectHideFlags: 1 230 | m_CorrespondingSourceObject: {fileID: 0} 231 | m_PrefabInternal: {fileID: 100100000} 232 | m_GameObject: {fileID: 1872385304823962} 233 | m_Enabled: 1 234 | m_Density: 1 235 | m_Material: {fileID: 0} 236 | m_IsTrigger: 0 237 | m_UsedByEffector: 0 238 | m_UsedByComposite: 0 239 | m_Offset: {x: 0, y: 0} 240 | m_SpriteTilingProperty: 241 | border: {x: 0, y: 0, z: 0, w: 0} 242 | pivot: {x: 0.5, y: 0.5} 243 | oldSize: {x: 1, y: 1} 244 | newSize: {x: 1, y: 1} 245 | adaptiveTilingThreshold: 0.5 246 | drawMode: 0 247 | adaptiveTiling: 0 248 | m_AutoTiling: 0 249 | serializedVersion: 2 250 | m_Size: {x: 1, y: 1} 251 | m_EdgeRadius: 0 252 | --- !u!61 &61367457650009932 253 | BoxCollider2D: 254 | m_ObjectHideFlags: 1 255 | m_CorrespondingSourceObject: {fileID: 0} 256 | m_PrefabInternal: {fileID: 100100000} 257 | m_GameObject: {fileID: 1138806749746390} 258 | m_Enabled: 1 259 | m_Density: 1 260 | m_Material: {fileID: 0} 261 | m_IsTrigger: 0 262 | m_UsedByEffector: 0 263 | m_UsedByComposite: 0 264 | m_Offset: {x: 0, y: 0} 265 | m_SpriteTilingProperty: 266 | border: {x: 0, y: 0, z: 0, w: 0} 267 | pivot: {x: 0.5, y: 0.5} 268 | oldSize: {x: 1, y: 1} 269 | newSize: {x: 0.33333334, y: 0.33333334} 270 | adaptiveTilingThreshold: 0.5 271 | drawMode: 0 272 | adaptiveTiling: 0 273 | m_AutoTiling: 0 274 | serializedVersion: 2 275 | m_Size: {x: 1, y: 1} 276 | m_EdgeRadius: 0 277 | --- !u!61 &61399341231042576 278 | BoxCollider2D: 279 | m_ObjectHideFlags: 1 280 | m_CorrespondingSourceObject: {fileID: 0} 281 | m_PrefabInternal: {fileID: 100100000} 282 | m_GameObject: {fileID: 1508375788909998} 283 | m_Enabled: 1 284 | m_Density: 1 285 | m_Material: {fileID: 0} 286 | m_IsTrigger: 0 287 | m_UsedByEffector: 0 288 | m_UsedByComposite: 0 289 | m_Offset: {x: 0, y: 0} 290 | m_SpriteTilingProperty: 291 | border: {x: 0, y: 0, z: 0, w: 0} 292 | pivot: {x: 0.5, y: 0.5} 293 | oldSize: {x: 1, y: 1} 294 | newSize: {x: 1, y: 1} 295 | adaptiveTilingThreshold: 0.5 296 | drawMode: 0 297 | adaptiveTiling: 0 298 | m_AutoTiling: 0 299 | serializedVersion: 2 300 | m_Size: {x: 1, y: 1} 301 | m_EdgeRadius: 0 302 | --- !u!102 &102392183041257188 303 | TextMesh: 304 | serializedVersion: 3 305 | m_ObjectHideFlags: 1 306 | m_CorrespondingSourceObject: {fileID: 0} 307 | m_PrefabInternal: {fileID: 100100000} 308 | m_GameObject: {fileID: 1329706048503188} 309 | m_Text: Not 310 | m_OffsetZ: -0.1 311 | m_CharacterSize: 0.3 312 | m_LineSpacing: 1 313 | m_Anchor: 4 314 | m_Alignment: 1 315 | m_TabSize: 4 316 | m_FontSize: 15 317 | m_FontStyle: 0 318 | m_RichText: 1 319 | m_Font: {fileID: 12800000, guid: 2579b43daeb2d234fba73be5e9e09efa, type: 3} 320 | m_Color: 321 | serializedVersion: 2 322 | rgba: 4278190080 323 | --- !u!114 &114098163977886478 324 | MonoBehaviour: 325 | m_ObjectHideFlags: 1 326 | m_CorrespondingSourceObject: {fileID: 0} 327 | m_PrefabInternal: {fileID: 100100000} 328 | m_GameObject: {fileID: 1872385304823962} 329 | m_Enabled: 1 330 | m_EditorHideFlags: 0 331 | m_Script: {fileID: 11500000, guid: 8a7ce06ac94a459e8aa3ec368a1a5a1b, type: 3} 332 | m_Name: 333 | m_EditorClassIdentifier: 334 | value: 0 335 | Outs: [] 336 | --- !u!114 &114373809330610652 337 | MonoBehaviour: 338 | m_ObjectHideFlags: 1 339 | m_CorrespondingSourceObject: {fileID: 0} 340 | m_PrefabInternal: {fileID: 100100000} 341 | m_GameObject: {fileID: 1508375788909998} 342 | m_Enabled: 1 343 | m_EditorHideFlags: 0 344 | m_Script: {fileID: 11500000, guid: dcf871e5c50248d5ad7a504e1302bac9, type: 3} 345 | m_Name: 346 | m_EditorClassIdentifier: 347 | value: 0 348 | line: {fileID: 114862094471735240} 349 | Input: {fileID: 0} 350 | --- !u!114 &114830070540318696 351 | MonoBehaviour: 352 | m_ObjectHideFlags: 1 353 | m_CorrespondingSourceObject: {fileID: 0} 354 | m_PrefabInternal: {fileID: 100100000} 355 | m_GameObject: {fileID: 1138806749746390} 356 | m_Enabled: 1 357 | m_EditorHideFlags: 0 358 | m_Script: {fileID: 11500000, guid: 8d2c603593d248439701322f69c3f63b, type: 3} 359 | m_Name: 360 | m_EditorClassIdentifier: 361 | --- !u!114 &114862094471735240 362 | MonoBehaviour: 363 | m_ObjectHideFlags: 1 364 | m_CorrespondingSourceObject: {fileID: 0} 365 | m_PrefabInternal: {fileID: 100100000} 366 | m_GameObject: {fileID: 1983752207688336} 367 | m_Enabled: 1 368 | m_EditorHideFlags: 0 369 | m_Script: {fileID: 11500000, guid: 8b34068df4b284f60add5d301695f152, type: 3} 370 | m_Name: 371 | m_EditorClassIdentifier: 372 | --- !u!212 &212418726904970410 373 | SpriteRenderer: 374 | m_ObjectHideFlags: 1 375 | m_CorrespondingSourceObject: {fileID: 0} 376 | m_PrefabInternal: {fileID: 100100000} 377 | m_GameObject: {fileID: 1138806749746390} 378 | m_Enabled: 1 379 | m_CastShadows: 0 380 | m_ReceiveShadows: 0 381 | m_DynamicOccludee: 1 382 | m_MotionVectors: 1 383 | m_LightProbeUsage: 1 384 | m_ReflectionProbeUsage: 1 385 | m_RenderingLayerMask: 4294967295 386 | m_Materials: 387 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 388 | m_StaticBatchInfo: 389 | firstSubMesh: 0 390 | subMeshCount: 0 391 | m_StaticBatchRoot: {fileID: 0} 392 | m_ProbeAnchor: {fileID: 0} 393 | m_LightProbeVolumeOverride: {fileID: 0} 394 | m_ScaleInLightmap: 1 395 | m_PreserveUVs: 0 396 | m_IgnoreNormalsForChartDetection: 0 397 | m_ImportantGI: 0 398 | m_StitchLightmapSeams: 0 399 | m_SelectedEditorRenderState: 0 400 | m_MinimumChartSize: 4 401 | m_AutoUVMaxDistance: 0.5 402 | m_AutoUVMaxAngle: 89 403 | m_LightmapParameters: {fileID: 0} 404 | m_SortingLayerID: 0 405 | m_SortingLayer: 0 406 | m_SortingOrder: 0 407 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 408 | m_Color: {r: 0.6132076, g: 0.5987451, b: 0.5987451, a: 1} 409 | m_FlipX: 0 410 | m_FlipY: 0 411 | m_DrawMode: 0 412 | m_Size: {x: 0.33333334, y: 0.33333334} 413 | m_AdaptiveModeThreshold: 0.5 414 | m_SpriteTileMode: 0 415 | m_WasSpriteAssigned: 1 416 | m_MaskInteraction: 0 417 | m_SpriteSortPoint: 0 418 | --- !u!212 &212419476549292894 419 | SpriteRenderer: 420 | m_ObjectHideFlags: 1 421 | m_CorrespondingSourceObject: {fileID: 0} 422 | m_PrefabInternal: {fileID: 100100000} 423 | m_GameObject: {fileID: 1983752207688336} 424 | m_Enabled: 1 425 | m_CastShadows: 0 426 | m_ReceiveShadows: 0 427 | m_DynamicOccludee: 1 428 | m_MotionVectors: 1 429 | m_LightProbeUsage: 0 430 | m_ReflectionProbeUsage: 0 431 | m_RenderingLayerMask: 4294967295 432 | m_Materials: 433 | - {fileID: 2100000, guid: 6a699246958f043a4999f047b26871af, type: 2} 434 | m_StaticBatchInfo: 435 | firstSubMesh: 0 436 | subMeshCount: 0 437 | m_StaticBatchRoot: {fileID: 0} 438 | m_ProbeAnchor: {fileID: 0} 439 | m_LightProbeVolumeOverride: {fileID: 0} 440 | m_ScaleInLightmap: 1 441 | m_PreserveUVs: 0 442 | m_IgnoreNormalsForChartDetection: 0 443 | m_ImportantGI: 0 444 | m_StitchLightmapSeams: 0 445 | m_SelectedEditorRenderState: 0 446 | m_MinimumChartSize: 4 447 | m_AutoUVMaxDistance: 0.5 448 | m_AutoUVMaxAngle: 89 449 | m_LightmapParameters: {fileID: 0} 450 | m_SortingLayerID: -94776817 451 | m_SortingLayer: 0 452 | m_SortingOrder: -100 453 | m_Sprite: {fileID: 21300000, guid: 99397ff1167bee7468d9086851d46576, type: 3} 454 | m_Color: {r: 0, g: 0, b: 0, a: 1} 455 | m_FlipX: 0 456 | m_FlipY: 0 457 | m_DrawMode: 0 458 | m_Size: {x: 1, y: 1} 459 | m_AdaptiveModeThreshold: 0.5 460 | m_SpriteTileMode: 0 461 | m_WasSpriteAssigned: 1 462 | m_MaskInteraction: 0 463 | m_SpriteSortPoint: 0 464 | --- !u!212 &212502520714374860 465 | SpriteRenderer: 466 | m_ObjectHideFlags: 1 467 | m_CorrespondingSourceObject: {fileID: 0} 468 | m_PrefabInternal: {fileID: 100100000} 469 | m_GameObject: {fileID: 1872385304823962} 470 | m_Enabled: 1 471 | m_CastShadows: 0 472 | m_ReceiveShadows: 0 473 | m_DynamicOccludee: 1 474 | m_MotionVectors: 1 475 | m_LightProbeUsage: 1 476 | m_ReflectionProbeUsage: 1 477 | m_RenderingLayerMask: 4294967295 478 | m_Materials: 479 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 480 | m_StaticBatchInfo: 481 | firstSubMesh: 0 482 | subMeshCount: 0 483 | m_StaticBatchRoot: {fileID: 0} 484 | m_ProbeAnchor: {fileID: 0} 485 | m_LightProbeVolumeOverride: {fileID: 0} 486 | m_ScaleInLightmap: 1 487 | m_PreserveUVs: 0 488 | m_IgnoreNormalsForChartDetection: 0 489 | m_ImportantGI: 0 490 | m_StitchLightmapSeams: 0 491 | m_SelectedEditorRenderState: 0 492 | m_MinimumChartSize: 4 493 | m_AutoUVMaxDistance: 0.5 494 | m_AutoUVMaxAngle: 89 495 | m_LightmapParameters: {fileID: 0} 496 | m_SortingLayerID: 0 497 | m_SortingLayer: 0 498 | m_SortingOrder: 0 499 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 500 | m_Color: {r: 0.3301887, g: 0.3301887, b: 0.3301887, a: 1} 501 | m_FlipX: 0 502 | m_FlipY: 0 503 | m_DrawMode: 0 504 | m_Size: {x: 1, y: 1} 505 | m_AdaptiveModeThreshold: 0.5 506 | m_SpriteTileMode: 0 507 | m_WasSpriteAssigned: 1 508 | m_MaskInteraction: 0 509 | m_SpriteSortPoint: 0 510 | --- !u!212 &212607421230338290 511 | SpriteRenderer: 512 | m_ObjectHideFlags: 1 513 | m_CorrespondingSourceObject: {fileID: 0} 514 | m_PrefabInternal: {fileID: 100100000} 515 | m_GameObject: {fileID: 1508375788909998} 516 | m_Enabled: 1 517 | m_CastShadows: 0 518 | m_ReceiveShadows: 0 519 | m_DynamicOccludee: 1 520 | m_MotionVectors: 1 521 | m_LightProbeUsage: 1 522 | m_ReflectionProbeUsage: 1 523 | m_RenderingLayerMask: 4294967295 524 | m_Materials: 525 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 526 | m_StaticBatchInfo: 527 | firstSubMesh: 0 528 | subMeshCount: 0 529 | m_StaticBatchRoot: {fileID: 0} 530 | m_ProbeAnchor: {fileID: 0} 531 | m_LightProbeVolumeOverride: {fileID: 0} 532 | m_ScaleInLightmap: 1 533 | m_PreserveUVs: 0 534 | m_IgnoreNormalsForChartDetection: 0 535 | m_ImportantGI: 0 536 | m_StitchLightmapSeams: 0 537 | m_SelectedEditorRenderState: 0 538 | m_MinimumChartSize: 4 539 | m_AutoUVMaxDistance: 0.5 540 | m_AutoUVMaxAngle: 89 541 | m_LightmapParameters: {fileID: 0} 542 | m_SortingLayerID: 0 543 | m_SortingLayer: 0 544 | m_SortingOrder: 0 545 | m_Sprite: {fileID: 21300000, guid: 8ef1b100e40bbac41be77b4febe65492, type: 3} 546 | m_Color: {r: 0.3301887, g: 0.3301887, b: 0.3301887, a: 1} 547 | m_FlipX: 0 548 | m_FlipY: 0 549 | m_DrawMode: 0 550 | m_Size: {x: 1, y: 1} 551 | m_AdaptiveModeThreshold: 0.5 552 | m_SpriteTileMode: 0 553 | m_WasSpriteAssigned: 1 554 | m_MaskInteraction: 0 555 | m_SpriteSortPoint: 0 556 | --------------------------------------------------------------------------------