From 0d6d176fc61d47a82acbf879e80dc2414016d04b Mon Sep 17 00:00:00 2001 From: DoG3312 Date: Fri, 9 Jan 2026 20:33:16 +0500 Subject: [PATCH] Speals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Добавлены способности -Мне казалось что я делал больше но оказывается только способности. И то кое-где недоделаны. --- .../2dSprits/Materials/SheaderMaterials.meta | 8 + .../Materials/SheaderMaterials/Test2.mat | 60 + .../Materials/SheaderMaterials/Test2.mat.meta | 8 + .../Materials/SheaderMaterials/TestSheder.mat | 140 ++ .../SheaderMaterials/TestSheder.mat.meta | 8 + Assets/2dSprits/Materials/cursor1.mat | 136 ++ Assets/2dSprits/Materials/cursor1.mat.meta | 8 + Assets/2dSprits/Materials/cursor2.mat | 136 ++ Assets/2dSprits/Materials/cursor2.mat.meta | 8 + Assets/2dSprits/cursor1.png | Bin 0 -> 12040 bytes Assets/2dSprits/cursor1.png.meta | 117 ++ Assets/2dSprits/cursor2.png | Bin 0 -> 12727 bytes Assets/2dSprits/cursor2.png.meta | 117 ++ Assets/Prefabs/ItemFromChest1.prefab | 2 +- Assets/Prefabs/ItemFromChest2.prefab | 2 +- Assets/Prefabs/ItemFromChest3.prefab | 2 +- Assets/Prefabs/Shells.meta | 8 + Assets/Prefabs/Shells/MagicBomb.prefab | 151 ++ Assets/Prefabs/Shells/MagicBomb.prefab.meta | 7 + Assets/Prefabs/Speals.meta | 8 + Assets/Prefabs/Speals/New Health Config.asset | 23 + .../Speals/New Health Config.asset.meta | 8 + Assets/Scenes/Dinar.unity | 259 ++- Assets/Scripts/Buffs.meta | 8 + Assets/Scripts/Buffs/IBuff.cs | 11 + Assets/Scripts/Buffs/IBuff.cs.meta | 2 + Assets/Scripts/CursorManager.cs | 42 + Assets/Scripts/CursorManager.cs.meta | 2 + Assets/Scripts/Inventory/Inventory.cs | 42 +- Assets/Scripts/Inventory/InventoryItem.cs | 6 +- Assets/Scripts/Inventory/InventorySlot.cs | 5 + Assets/Scripts/Inventory/Items/Item.cs | 8 +- Assets/Scripts/Inventory/Items/SkillItem.cs | 2 +- Assets/Scripts/Inventory/Items/Stick.asset | 5 +- Assets/Scripts/Inventory/PlayerInventory.cs | 14 +- Assets/Scripts/ItemsDrop/LootTable.asset | 17 + Assets/Scripts/ItemsDrop/LootTable.asset.meta | 8 + Assets/Scripts/Looting/Interaction.cs | 3 +- Assets/Scripts/MVC/Controller.cs | 14 +- Assets/Scripts/MVC/Player/PlayerController.cs | 4 +- Assets/Scripts/MVC/Repulsiveness.cs | 4 +- Assets/Scripts/MVC/View.cs | 2 +- Assets/Scripts/RaycastRay.cs | 23 - Assets/Scripts/Spells.meta | 8 + Assets/Scripts/Spells/BaseSkill.cs | 53 + Assets/Scripts/Spells/BaseSkill.cs.meta | 2 + .../Scripts/{ => Spells}/FirstSkillPlayer.cs | 3 +- .../{ => Spells}/FirstSkillPlayer.cs.meta | 0 Assets/Scripts/Spells/SkillBuilder.cs | 24 + Assets/Scripts/Spells/SkillBuilder.cs.meta | 2 + Assets/Scripts/Spells/SkillConfig.cs | 9 + Assets/Scripts/Spells/SkillConfig.cs.meta | 2 + Assets/Scripts/Spells/SkillUser.cs | 92 + Assets/Scripts/Spells/SkillUser.cs.meta | 2 + Assets/Scripts/Spells/Skills.meta | 8 + .../Scripts/Spells/Skills/HealingSkill.meta | 8 + .../Skills/HealingSkill/HealingSkill.cs | 45 + .../Skills/HealingSkill/HealingSkill.cs.meta | 2 + .../Skills/HealingSkill/HealthBuilder.cs | 16 + .../Skills/HealingSkill/HealthBuilder.cs.meta | 2 + .../Skills/HealingSkill/HealthConfig.cs | 12 + .../Skills/HealingSkill/HealthConfig.cs.meta | 2 + .../HealingSkill/New Health Config.asset | 23 + .../HealingSkill/New Health Config.asset.meta | 8 + Assets/Scripts/Spells/Skills/MagicArrow.cs | 35 + .../Scripts/Spells/Skills/MagicArrow.cs.meta | 2 + Assets/Scripts/Spells/Skills/MagicBomb.meta | 8 + .../Spells/Skills/MagicBomb/MagicBomb.cs | 82 + .../Spells/Skills/MagicBomb/MagicBomb.cs.meta | 2 + .../Skills/MagicBomb/MagicBombBuilder.cs | 22 + .../Skills/MagicBomb/MagicBombBuilder.cs.meta | 2 + .../Skills/MagicBomb/MagicBombConfig.cs | 16 + .../Skills/MagicBomb/MagicBombConfig.cs.meta | 2 + .../MagicBomb/New Magic Bomb Config.asset | 29 + .../New Magic Bomb Config.asset.meta | 8 + Assets/Scripts/Static.meta | 8 + .../{ => Static}/GetFirstLayerNameFromMask.cs | 0 .../GetFirstLayerNameFromMask.cs.meta | 0 Assets/Scripts/Static/MousePosition.cs | 16 + Assets/Scripts/Static/MousePosition.cs.meta | 2 + .../{ => Static}/RandomTransformGenerator.cs | 0 .../RandomTransformGenerator.cs.meta | 0 Assets/Scripts/Static/RaycastRay.cs | 18 + .../Scripts/{ => Static}/RaycastRay.cs.meta | 0 Assets/Scripts/Stats/BaseStats.cs | 36 +- .../Stats/EnemyStats/EnemyWithStick.asset | 4 +- Assets/Scripts/TemporaryClassWeapons.cs | 15 - Assets/Scripts/TemporaryClassWeapons.cs.meta | 2 - Assets/Scripts/Weapon/Anything.meta | 8 + Assets/Scripts/Weapon/Anything/Bomb.cs | 33 + Assets/Scripts/Weapon/Anything/Bomb.cs.meta | 2 + Assets/Scripts/Weapon/BodyWeapon.cs | 2 +- Assets/Scripts/Weapon/Bullet/Bullet.cs | 2 +- Assets/Scripts/Weapon/MeleeWeapon.cs | 2 +- Assets/Shaders.meta | 8 + Assets/Shaders/test.shadergraph | 1775 +++++++++++++++++ Assets/Shaders/test.shadergraph.meta | 10 + Assets/Shaders/test2.shadergraph | 1746 ++++++++++++++++ Assets/Shaders/test2.shadergraph.meta | 10 + Assets/playerInteract.cs | 6 + Assets/playerInteract.cs.meta | 2 + ProjectSettings/ProjectSettings.asset | 2 +- ProjectSettings/TagManager.asset | 1 + 103 files changed, 5570 insertions(+), 109 deletions(-) create mode 100644 Assets/2dSprits/Materials/SheaderMaterials.meta create mode 100644 Assets/2dSprits/Materials/SheaderMaterials/Test2.mat create mode 100644 Assets/2dSprits/Materials/SheaderMaterials/Test2.mat.meta create mode 100644 Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat create mode 100644 Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat.meta create mode 100644 Assets/2dSprits/Materials/cursor1.mat create mode 100644 Assets/2dSprits/Materials/cursor1.mat.meta create mode 100644 Assets/2dSprits/Materials/cursor2.mat create mode 100644 Assets/2dSprits/Materials/cursor2.mat.meta create mode 100644 Assets/2dSprits/cursor1.png create mode 100644 Assets/2dSprits/cursor1.png.meta create mode 100644 Assets/2dSprits/cursor2.png create mode 100644 Assets/2dSprits/cursor2.png.meta create mode 100644 Assets/Prefabs/Shells.meta create mode 100644 Assets/Prefabs/Shells/MagicBomb.prefab create mode 100644 Assets/Prefabs/Shells/MagicBomb.prefab.meta create mode 100644 Assets/Prefabs/Speals.meta create mode 100644 Assets/Prefabs/Speals/New Health Config.asset create mode 100644 Assets/Prefabs/Speals/New Health Config.asset.meta create mode 100644 Assets/Scripts/Buffs.meta create mode 100644 Assets/Scripts/Buffs/IBuff.cs create mode 100644 Assets/Scripts/Buffs/IBuff.cs.meta create mode 100644 Assets/Scripts/CursorManager.cs create mode 100644 Assets/Scripts/CursorManager.cs.meta create mode 100644 Assets/Scripts/ItemsDrop/LootTable.asset create mode 100644 Assets/Scripts/ItemsDrop/LootTable.asset.meta delete mode 100644 Assets/Scripts/RaycastRay.cs create mode 100644 Assets/Scripts/Spells.meta create mode 100644 Assets/Scripts/Spells/BaseSkill.cs create mode 100644 Assets/Scripts/Spells/BaseSkill.cs.meta rename Assets/Scripts/{ => Spells}/FirstSkillPlayer.cs (89%) rename Assets/Scripts/{ => Spells}/FirstSkillPlayer.cs.meta (100%) create mode 100644 Assets/Scripts/Spells/SkillBuilder.cs create mode 100644 Assets/Scripts/Spells/SkillBuilder.cs.meta create mode 100644 Assets/Scripts/Spells/SkillConfig.cs create mode 100644 Assets/Scripts/Spells/SkillConfig.cs.meta create mode 100644 Assets/Scripts/Spells/SkillUser.cs create mode 100644 Assets/Scripts/Spells/SkillUser.cs.meta create mode 100644 Assets/Scripts/Spells/Skills.meta create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill.meta create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset create mode 100644 Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset.meta create mode 100644 Assets/Scripts/Spells/Skills/MagicArrow.cs create mode 100644 Assets/Scripts/Spells/Skills/MagicArrow.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb.meta create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs.meta create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset create mode 100644 Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset.meta create mode 100644 Assets/Scripts/Static.meta rename Assets/Scripts/{ => Static}/GetFirstLayerNameFromMask.cs (100%) rename Assets/Scripts/{ => Static}/GetFirstLayerNameFromMask.cs.meta (100%) create mode 100644 Assets/Scripts/Static/MousePosition.cs create mode 100644 Assets/Scripts/Static/MousePosition.cs.meta rename Assets/Scripts/{ => Static}/RandomTransformGenerator.cs (100%) rename Assets/Scripts/{ => Static}/RandomTransformGenerator.cs.meta (100%) create mode 100644 Assets/Scripts/Static/RaycastRay.cs rename Assets/Scripts/{ => Static}/RaycastRay.cs.meta (100%) delete mode 100644 Assets/Scripts/TemporaryClassWeapons.cs delete mode 100644 Assets/Scripts/TemporaryClassWeapons.cs.meta create mode 100644 Assets/Scripts/Weapon/Anything.meta create mode 100644 Assets/Scripts/Weapon/Anything/Bomb.cs create mode 100644 Assets/Scripts/Weapon/Anything/Bomb.cs.meta create mode 100644 Assets/Shaders.meta create mode 100644 Assets/Shaders/test.shadergraph create mode 100644 Assets/Shaders/test.shadergraph.meta create mode 100644 Assets/Shaders/test2.shadergraph create mode 100644 Assets/Shaders/test2.shadergraph.meta create mode 100644 Assets/playerInteract.cs create mode 100644 Assets/playerInteract.cs.meta diff --git a/Assets/2dSprits/Materials/SheaderMaterials.meta b/Assets/2dSprits/Materials/SheaderMaterials.meta new file mode 100644 index 0000000..bf46717 --- /dev/null +++ b/Assets/2dSprits/Materials/SheaderMaterials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 71c3ef3f07e68f34f8a0a68bb06ef949 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/2dSprits/Materials/SheaderMaterials/Test2.mat b/Assets/2dSprits/Materials/SheaderMaterials/Test2.mat new file mode 100644 index 0000000..5e3c90b --- /dev/null +++ b/Assets/2dSprits/Materials/SheaderMaterials/Test2.mat @@ -0,0 +1,60 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Test2 + m_Shader: {fileID: -6465566751694194690, guid: fb4a5dcf24b356b42a22208f6081695a, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _QueueControl: 0 + - _QueueOffset: 0 + m_Colors: + - _Color: {r: 1, g: 0, b: 0, a: 0} + - _Color_1: {r: 0.0332122, g: 1, b: 0.004716992, a: 0} + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &443976640454878573 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 diff --git a/Assets/2dSprits/Materials/SheaderMaterials/Test2.mat.meta b/Assets/2dSprits/Materials/SheaderMaterials/Test2.mat.meta new file mode 100644 index 0000000..885ca1c --- /dev/null +++ b/Assets/2dSprits/Materials/SheaderMaterials/Test2.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 23071d11845d78f46ba7d5b48b677cca +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat b/Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat new file mode 100644 index 0000000..364b013 --- /dev/null +++ b/Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat @@ -0,0 +1,140 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: TestSheder + m_Shader: {fileID: -6465566751694194690, guid: bacc3446e2a957d48ab26ba414b53e7b, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Texture2D: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueControl: 0 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &2383195939930824641 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 diff --git a/Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat.meta b/Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat.meta new file mode 100644 index 0000000..9088d09 --- /dev/null +++ b/Assets/2dSprits/Materials/SheaderMaterials/TestSheder.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8631f9a45c476dc489ae010139fea948 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/2dSprits/Materials/cursor1.mat b/Assets/2dSprits/Materials/cursor1.mat new file mode 100644 index 0000000..de541e8 --- /dev/null +++ b/Assets/2dSprits/Materials/cursor1.mat @@ -0,0 +1,136 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: cursor1 + m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: + RenderType: Opaque + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 2800000, guid: 6188cf6643f82b04cafc6ac69560dbdf, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 6188cf6643f82b04cafc6ac69560dbdf, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &5730609210375908582 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 diff --git a/Assets/2dSprits/Materials/cursor1.mat.meta b/Assets/2dSprits/Materials/cursor1.mat.meta new file mode 100644 index 0000000..3e3227e --- /dev/null +++ b/Assets/2dSprits/Materials/cursor1.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 459629a8559639e4d966d44229e7bd01 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/2dSprits/Materials/cursor2.mat b/Assets/2dSprits/Materials/cursor2.mat new file mode 100644 index 0000000..cdd5eec --- /dev/null +++ b/Assets/2dSprits/Materials/cursor2.mat @@ -0,0 +1,136 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: cursor2 + m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: + RenderType: Opaque + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 2800000, guid: 814895978ea42074c87a0a69d83684f5, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 814895978ea42074c87a0a69d83684f5, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &4135232201110537824 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 diff --git a/Assets/2dSprits/Materials/cursor2.mat.meta b/Assets/2dSprits/Materials/cursor2.mat.meta new file mode 100644 index 0000000..b2402d4 --- /dev/null +++ b/Assets/2dSprits/Materials/cursor2.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 85fb72eb5d9e10448af3afe750886728 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/2dSprits/cursor1.png b/Assets/2dSprits/cursor1.png new file mode 100644 index 0000000000000000000000000000000000000000..adc15a7bc7f34ef83c3707d09ff8309b167aab7a GIT binary patch literal 12040 zcmeHNWm8;Dum(a1?(XjH5ZonraCaxTOK@8txCer}yR)#127`?&(-{Re3aIVq_Q?7&Ju%8BG`%Sh@cyA_DXa{u2KM^nv86pzi?# zgM$5Eg`M39eu06Zgi(}{{OW6Rn(quS2KkNr`);}j20NNak-F*;{Ds>Cbzn!Tr$;i< zrc;~$n59o=UUT^IRJqI)cg55u{#9v}IVw;=JYqEdE1e2UsD^#cciehIM0h02O(quz zA3dQ(IDykiYwyF&BgJ{>@o~U;b~X=>?Uc}aa@|YQ^;2%=dyvh3Hc=^|!gu)pFaH+^ z6biwo?DIylQNd!zjz7Qh>*O30%=Q&lO^G6AB(b%g!W zX**@bSZu_GjP<{a_Ft~B7u3!+enyKo^Tf7;59JP9Mx$(z&?MxGD)hXFky)dph_PtL z#NUHSUS}@&#FQdi@o-I#>Bx;4HyF29%LoS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5c>W}zl1=< U*yvgcn%WMdD61+{CuJ7)KkGp}-2eap literal 0 HcmV?d00001 diff --git a/Assets/2dSprits/cursor1.png.meta b/Assets/2dSprits/cursor1.png.meta new file mode 100644 index 0000000..9d03ce1 --- /dev/null +++ b/Assets/2dSprits/cursor1.png.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: 6188cf6643f82b04cafc6ac69560dbdf +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 1 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 7 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/2dSprits/cursor2.png b/Assets/2dSprits/cursor2.png new file mode 100644 index 0000000000000000000000000000000000000000..dc59309a2a72cce38d626c576dd3a0112d759081 GIT binary patch literal 12727 zcmeHu^;272)HP6w7A;QjVg&*e3+_p%JLORnSF4Ls$Cm#=$~;LoqM> z8})$;d28Z@hK5i2-;F-C67qnC#)zh(Agk|Zd6MJy(W2jf@BXd8mq}Wd0!r<0>&Dl^ zgjh@|JZY2;)F)~DHJ<& zRkNF*QjU!-*z8T86!@aUtzUIh7?TDtj5;cPIeE(Q>YLqJ4ZPbq@Vd+X>oM;ac5piV zc;xkTeGrm+Y8V%b`8MqTuKy<%s8C=m*99-mIg>0@{e$SYP)UO=Ohb&HT3E1Wr*B3T zFmy=r`ILkJvmOZ)@-gd03;Zv(yVmq&BNr*ah+r?_TWw+N24r!}u7zK+JmJ7!7IOe5h6*G7d>L-U4Z3;$oWehSUWrzk(i6S)p^d265 zuLb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N;>j~ZfWK*V}Q*uu`=e=o7a^wMmsL*xOlg_&?1eN`#}wu4by z&`r{4QR5SoPsEz`wlxrZRDo}G1M<=o_umn2( zhnt=n9S{8OnXac-b`(ka$2Oc7L-|!6Lw%Et!0Z>^Z{y3=vc#7H`UaM+PDF-bOxjtH z96mo9BQ81L=C&)ExpdW(&L!sv9dhDgL+S!dXpmVgxg21gt)<-HkYYCEhWlTL>Z5K> zhU9Ce7?aApm(Eg^u`yvGiJ5P$;bG&s2fopj7n1gQDyN-FDN9d;E+;38d4APgN^k5T z#??j2VxK38U9qB2-Dh+aQ=6^J1J14vVK2Q5S&OQlB9mQAHPaSZG+jP?Y6y;Nd8Q=x zCUDOwe?g%>s$-kmtlssns}nL0^?FN;PA+Z(hc zkRgW%Oqd8(O@8WC+<#1O4$-$YR1Cano|(_sx`YiQ$*6-EPIkOLh_h|W`gM~LPwO} zr=$Mssa4d%I7s<2jcnuMWQ=Rfr~Tufx%M%nAq$TAA2-ydv;xx`hXyNTIwghNl>MUy zwvuc$lHs$__iQ=xEAipfqnHO(;^KzWtFgID>$cVMP)2>lR}$|_PsOGp?T~YhQmc{D zN|R06_|rA|8FI}8mgf%lCNAihpTns<6}a?8qUz-$$o2G^IC@MYX0eVm-k8MeIS+2q ztnfdA!K1cu5;dWa3GVP_QM)w2Al|&9P1W!9{)r2HMuvH}4_+wN<1<_)<6_*ab9(+F zk}-xQB<<4iMajN|GK$lu(TzqdeEa|`%qri(`p~zsN?c+ohszWR>iA;n{33$WHtgmF nDI@y-UH@M!@Ii_6<|$d6k8xyx^*idH7-%YrnhG^?*5UsHMQRcJ literal 0 HcmV?d00001 diff --git a/Assets/2dSprits/cursor2.png.meta b/Assets/2dSprits/cursor2.png.meta new file mode 100644 index 0000000..c4b6189 --- /dev/null +++ b/Assets/2dSprits/cursor2.png.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: 814895978ea42074c87a0a69d83684f5 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 1 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 7 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/ItemFromChest1.prefab b/Assets/Prefabs/ItemFromChest1.prefab index ac5412a..fcb924e 100644 --- a/Assets/Prefabs/ItemFromChest1.prefab +++ b/Assets/Prefabs/ItemFromChest1.prefab @@ -150,7 +150,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 40ec6b32dcc3d764086b41fda8a61e1f, type: 3} m_Name: m_EditorClassIdentifier: - item: {fileID: 11400000, guid: f70637a587820c0458b55bfa88ddf4e0, type: 2} + item: {fileID: 11400000, guid: 887a767d0b4d4b147b603d29167cfe5d, type: 2} --- !u!1 &6294691187422428340 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/ItemFromChest2.prefab b/Assets/Prefabs/ItemFromChest2.prefab index 5acf604..96d5ab3 100644 --- a/Assets/Prefabs/ItemFromChest2.prefab +++ b/Assets/Prefabs/ItemFromChest2.prefab @@ -150,7 +150,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 40ec6b32dcc3d764086b41fda8a61e1f, type: 3} m_Name: m_EditorClassIdentifier: - item: {fileID: 11400000, guid: f70637a587820c0458b55bfa88ddf4e0, type: 2} + item: {fileID: 11400000, guid: 887a767d0b4d4b147b603d29167cfe5d, type: 2} --- !u!1 &6294691187422428340 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/ItemFromChest3.prefab b/Assets/Prefabs/ItemFromChest3.prefab index 52a386f..0a33298 100644 --- a/Assets/Prefabs/ItemFromChest3.prefab +++ b/Assets/Prefabs/ItemFromChest3.prefab @@ -150,7 +150,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 40ec6b32dcc3d764086b41fda8a61e1f, type: 3} m_Name: m_EditorClassIdentifier: - item: {fileID: 11400000, guid: f70637a587820c0458b55bfa88ddf4e0, type: 2} + item: {fileID: 11400000, guid: 887a767d0b4d4b147b603d29167cfe5d, type: 2} --- !u!1 &6294691187422428340 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Shells.meta b/Assets/Prefabs/Shells.meta new file mode 100644 index 0000000..45af38b --- /dev/null +++ b/Assets/Prefabs/Shells.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1c295c25919516b45bed9d3428e43ed9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Shells/MagicBomb.prefab b/Assets/Prefabs/Shells/MagicBomb.prefab new file mode 100644 index 0000000..afcd607 --- /dev/null +++ b/Assets/Prefabs/Shells/MagicBomb.prefab @@ -0,0 +1,151 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &2003357300044948170 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8852602501415823456} + - component: {fileID: 2014635672378676990} + - component: {fileID: 9158225706257331882} + - component: {fileID: 6518838641284169058} + - component: {fileID: 151109303503936275} + - component: {fileID: 1088907601116032204} + m_Layer: 0 + m_Name: MagicBomb + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &8852602501415823456 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2003357300044948170} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.2309021, y: 2.23, z: 3.5080812} + m_LocalScale: {x: 0.71716, y: 0.71716, z: 0.71716} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &2014635672378676990 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2003357300044948170} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &9158225706257331882 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2003357300044948170} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 01c3439fe365ee74990f3bbfab4fb4ae, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!135 &6518838641284169058 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2003357300044948170} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Radius: 0.5 + m_Center: {x: 0, y: 0, z: 0} +--- !u!54 &151109303503936275 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2003357300044948170} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!114 &1088907601116032204 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2003357300044948170} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 87dac9c859166564eba4360495ab38fd, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Prefabs/Shells/MagicBomb.prefab.meta b/Assets/Prefabs/Shells/MagicBomb.prefab.meta new file mode 100644 index 0000000..49b901d --- /dev/null +++ b/Assets/Prefabs/Shells/MagicBomb.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b4cb0176e79afe24ca3ba9876eb964b8 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Speals.meta b/Assets/Prefabs/Speals.meta new file mode 100644 index 0000000..0da8df0 --- /dev/null +++ b/Assets/Prefabs/Speals.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b8969d543b9ecaf43a99e52bce860b66 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Speals/New Health Config.asset b/Assets/Prefabs/Speals/New Health Config.asset new file mode 100644 index 0000000..12ebf6e --- /dev/null +++ b/Assets/Prefabs/Speals/New Health Config.asset @@ -0,0 +1,23 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1eff6a02baac2804ebc682cc0a4a3d5e, type: 3} + m_Name: New Health Config + m_EditorClassIdentifier: + k__BackingField: + <Description>k__BackingField: + <IconImage>k__BackingField: {fileID: -1327393707, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3} + type: 1 + stackable: 0 + maxStack: 1 + currentStack: 1 + <CooldownTime>k__BackingField: 0 + <HealthCount>k__BackingField: 30 diff --git a/Assets/Prefabs/Speals/New Health Config.asset.meta b/Assets/Prefabs/Speals/New Health Config.asset.meta new file mode 100644 index 0000000..5e1f024 --- /dev/null +++ b/Assets/Prefabs/Speals/New Health Config.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e8612c284699d8e4b91cc4e763138708 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Dinar.unity b/Assets/Scenes/Dinar.unity index 04d184e..c7f4f51 100644 --- a/Assets/Scenes/Dinar.unity +++ b/Assets/Scenes/Dinar.unity @@ -2985,27 +2985,6 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 30391f79767138444af9ec4f0dcd0e7d, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!135 &720040331 -SphereCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 720040311} - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_IsTrigger: 1 - m_ProvidesContacts: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Radius: 2.24 - m_Center: {x: 0, y: 0, z: 0} --- !u!114 &720040341 MonoBehaviour: m_ObjectHideFlags: 0 @@ -3071,7 +3050,9 @@ MonoBehaviour: skills: - {fileID: 1710246590} - {fileID: 1858606018} + artifactInventory: {fileID: 1907049566} inventoryItemPrefab: {fileID: 6427248498179078871, guid: af3a73fee8ba69d4aa0e2f2d56122eee, type: 3} + slotPrefab: {fileID: 8008491569145563797, guid: 6a6ca07fb2933cb4db414145f20781ac, type: 3} --- !u!1 &733811261 GameObject: m_ObjectHideFlags: 0 @@ -3461,6 +3442,7 @@ GameObject: m_Component: - component: {fileID: 796005069} - component: {fileID: 796005068} + - component: {fileID: 796005070} m_Layer: 0 m_Name: ObjectPool m_TagString: Untagged @@ -3498,6 +3480,21 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &796005070 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 796005067} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8c499ba12b6419c459a786aa116c5351, type: 3} + m_Name: + m_EditorClassIdentifier: + baseCursor: {fileID: 2800000, guid: 6188cf6643f82b04cafc6ac69560dbdf, type: 3} + attackCursor: {fileID: 2800000, guid: 814895978ea42074c87a0a69d83684f5, type: 3} + hotspot: {x: 0, y: 0} --- !u!1 &806575778 GameObject: m_ObjectHideFlags: 0 @@ -4267,7 +4264,7 @@ GameObject: - component: {fileID: 1069758624} m_Layer: 3 m_Name: Plane - m_TagString: Untagged + m_TagString: Ground m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -4995,7 +4992,7 @@ GameObject: - component: {fileID: 1272386660} - component: {fileID: 1272386659} m_Layer: 5 - m_Name: potions + m_Name: Artefacts m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -6511,6 +6508,71 @@ PrefabInstance: insertIndex: -1 addedObject: {fileID: 1195539768} m_SourcePrefab: {fileID: 100100000, guid: 6a6ca07fb2933cb4db414145f20781ac, type: 3} +--- !u!1001 &1599564830 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1454948359048871346, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_Name + value: Slime + objectReference: {fileID: 0} + - target: {fileID: 1454948359048871346, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalPosition.x + value: -6.95621 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalPosition.z + value: -0.85694695 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5528790172050830030, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5896536626848190147, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: 342938fe2199246438a9cb82262ed0bf, type: 2} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: c6ba72135f53b0140965b1e2d5bfadc1, type: 3} --- !u!224 &1607884267 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 3357497633703939119, guid: 6a6ca07fb2933cb4db414145f20781ac, type: 3} @@ -7638,6 +7700,7 @@ GameObject: - component: {fileID: 1907049566} - component: {fileID: 1907049568} - component: {fileID: 1907049567} + - component: {fileID: 1907049569} m_Layer: 5 m_Name: items (1) m_TagString: Untagged @@ -7702,6 +7765,30 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1907049565} m_CullTransparentMesh: 1 +--- !u!114 &1907049569 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1907049565} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8a8695521f0d02e499659fee002a26c2, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 35 + m_Right: 0 + m_Top: 37 + m_Bottom: 0 + m_ChildAlignment: 0 + m_StartCorner: 0 + m_StartAxis: 0 + m_CellSize: {x: 60, y: 60} + m_Spacing: {x: 76.24, y: 81.4} + m_Constraint: 0 + m_ConstraintCount: 2 --- !u!1 &1912617632 GameObject: m_ObjectHideFlags: 0 @@ -8243,6 +8330,72 @@ PrefabInstance: insertIndex: -1 addedObject: {fileID: 2024179364} m_SourcePrefab: {fileID: 100100000, guid: 6a6ca07fb2933cb4db414145f20781ac, type: 3} +--- !u!1 &1978302451 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1978302452} + - component: {fileID: 1978302454} + - component: {fileID: 1978302453} + m_Layer: 7 + m_Name: Interact + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1978302452 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1978302451} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 8109217734038064813} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1978302453 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1978302451} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30391f79767138444af9ec4f0dcd0e7d, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!135 &1978302454 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1978302451} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Radius: 2.4 + m_Center: {x: 0, y: 0, z: 0} --- !u!114 &1992269461 MonoBehaviour: m_ObjectHideFlags: 0 @@ -9464,10 +9617,18 @@ PrefabInstance: propertyPath: weapon value: objectReference: {fileID: 0} + - target: {fileID: 2402451037569061147, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + propertyPath: weaponn + value: + objectReference: {fileID: 11400000, guid: 29f66c801be6ce44e9b8d1b0af93b92e, type: 2} - target: {fileID: 2402451037569061147, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} propertyPath: dopWeapon value: objectReference: {fileID: 11400000, guid: 0d8f8492a3c80304dbd49de5d8426d32, type: 2} + - target: {fileID: 2772804243436231539, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: 0cfa997aac02c6547a5b77f1889a8b04, type: 2} - target: {fileID: 3212472220199758659, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} propertyPath: m_LocalPosition.x value: 1.669 @@ -9520,24 +9681,67 @@ PrefabInstance: propertyPath: yellowHP value: objectReference: {fileID: 1028529764} + - target: {fileID: 5001874848452215400, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + propertyPath: m_Interpolate + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5001874848452215400, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + propertyPath: m_CollisionDetection + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: - {fileID: 8440561567260336362, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} - m_AddedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: 3212472220199758659, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + insertIndex: -1 + addedObject: {fileID: 1978302452} m_AddedComponents: - targetCorrespondingSourceObject: {fileID: 35843881798245346, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} insertIndex: -1 addedObject: {fileID: 720040321} - - targetCorrespondingSourceObject: {fileID: 35843881798245346, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} - insertIndex: -1 - addedObject: {fileID: 720040331} - targetCorrespondingSourceObject: {fileID: 35843881798245346, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} insertIndex: -1 addedObject: {fileID: 720040341} - targetCorrespondingSourceObject: {fileID: 35843881798245346, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} insertIndex: -1 addedObject: {fileID: 720040351} + - targetCorrespondingSourceObject: {fileID: 35843881798245346, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + insertIndex: -1 + addedObject: {fileID: 8109217734038064812} m_SourcePrefab: {fileID: 100100000, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} +--- !u!114 &8109217734038064802 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2402451037569061147, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + m_PrefabInstance: {fileID: 8109217734038064801} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 720040311} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ece090328156d844c94d6f314af22887, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &8109217734038064812 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 720040311} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7b1ee3422761d184abf5c3ede6cee95f, type: 3} + m_Name: + m_EditorClassIdentifier: + ownerController: {fileID: 8109217734038064802} + targetLayer: + serializedVersion: 2 + m_Bits: 136 +--- !u!4 &8109217734038064813 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 3212472220199758659, guid: 7658e6d549b25b94c9943012f8153e19, type: 3} + m_PrefabInstance: {fileID: 8109217734038064801} + m_PrefabAsset: {fileID: 0} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 @@ -9553,3 +9757,4 @@ SceneRoots: - {fileID: 444770713} - {fileID: 1069758627} - {fileID: 834792115} + - {fileID: 1599564830} diff --git a/Assets/Scripts/Buffs.meta b/Assets/Scripts/Buffs.meta new file mode 100644 index 0000000..5148dc7 --- /dev/null +++ b/Assets/Scripts/Buffs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a674f29c05ab8346b348ca391c2b0fc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Buffs/IBuff.cs b/Assets/Scripts/Buffs/IBuff.cs new file mode 100644 index 0000000..43deb4a --- /dev/null +++ b/Assets/Scripts/Buffs/IBuff.cs @@ -0,0 +1,11 @@ + +public interface IBuff +{ + +} + +public interface Ibaffable +{ + void AddBaff(IBuff buff); + void RemoveBaff(IBuff buff); +} diff --git a/Assets/Scripts/Buffs/IBuff.cs.meta b/Assets/Scripts/Buffs/IBuff.cs.meta new file mode 100644 index 0000000..056694b --- /dev/null +++ b/Assets/Scripts/Buffs/IBuff.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: efec873ca3e9ee442a44570ef8369440 \ No newline at end of file diff --git a/Assets/Scripts/CursorManager.cs b/Assets/Scripts/CursorManager.cs new file mode 100644 index 0000000..47fe665 --- /dev/null +++ b/Assets/Scripts/CursorManager.cs @@ -0,0 +1,42 @@ +using UnityEngine; + +public enum CursorType +{ + Default, + Attack, + Interact +} + +public class CursorManager : MonoBehaviour +{ + [Header("Курсоры")] + public Texture2D baseCursor; + public Texture2D attackCursor; + + public Vector2 hotspot = Vector2.zero; + public static CursorManager Instance { get; private set; } + + private CursorType currentMode; + + private void Start() + { + Instance = this; + } + + public void SetCursor(CursorType type) + { + if (currentMode == type) return; + + currentMode = type; + + switch (type) + { + case CursorType.Default: + Cursor.SetCursor(baseCursor, hotspot, CursorMode.Auto); + break; + case CursorType.Attack: + Cursor.SetCursor(attackCursor, hotspot, CursorMode.Auto); + break; + } + } +} diff --git a/Assets/Scripts/CursorManager.cs.meta b/Assets/Scripts/CursorManager.cs.meta new file mode 100644 index 0000000..7444bf1 --- /dev/null +++ b/Assets/Scripts/CursorManager.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 8c499ba12b6419c459a786aa116c5351 \ No newline at end of file diff --git a/Assets/Scripts/Inventory/Inventory.cs b/Assets/Scripts/Inventory/Inventory.cs index 5ab2d72..e852250 100644 --- a/Assets/Scripts/Inventory/Inventory.cs +++ b/Assets/Scripts/Inventory/Inventory.cs @@ -1,6 +1,7 @@ +using System; using System.Collections.Generic; +using Unity.VisualScripting; using UnityEngine; -using System; public enum InventoryListType { @@ -16,29 +17,34 @@ public class Inventory { [Header("Inventory")] public WeaponItem[] weaponSlots; - public SkillItem[] skillSlots; + public SkillConfig[] skillSlots; public Item[] throwablesSlots; public Item[] potionsSlots; [Header("QuickAccessToolbar")] public WeaponItem[] weapons; - public SkillItem[] skills; + public SkillConfig[] skills; [Header("Artifacts")] public List<Artifact> artifacts; + private List<BaseSkill> currentSkills = new(); + public event Action OnWeaponsChanged; + public SkillUser skillUser; //надеюсь временно + public Controller controller; //возможно здесь его не должно быть - public Inventory(Controller controller) + public Inventory(Controller controller, SkillUser skillUser) { weaponSlots = new WeaponItem[10]; - skillSlots = new SkillItem[10]; + skillSlots = new SkillConfig[10]; throwablesSlots = new Item[5]; potionsSlots = new Item[5]; weapons = new WeaponItem[2]; - skills = new SkillItem[2]; + skills = new SkillConfig[2]; artifacts = new List<Artifact>(); this.controller = controller; + this.skillUser = skillUser; } public void AddItem(Item item) @@ -60,6 +66,10 @@ public void AddItem(Item item) { AddItemToSlot(skillSlots, item); } + else + { + InitSkills(); + } break; case ItemType.Throwable: AddItemToSlot(throwablesSlots, item); @@ -95,7 +105,7 @@ public void AddArtifact(ArtifactItem artifact) artifact.artifact.ApplyEffect(controller); } - public bool MoveItem(InventoryListType from, int fromIndex, InventoryListType to, int toIndex) + public void MoveItem(InventoryListType from, int fromIndex, InventoryListType to, int toIndex) { //откуда Item[] sourceList = GetInventoryList(from); @@ -112,8 +122,7 @@ public bool MoveItem(InventoryListType from, int fromIndex, InventoryListType to sourceList[fromIndex] = null; OnWeaponsChanged(); - - return true; + InitSkills(); } private Item[] GetInventoryList(InventoryListType listType) @@ -130,4 +139,19 @@ private Item[] GetInventoryList(InventoryListType listType) Debug.Log("Тут ошибочка с enum"); return null; } + + public void InitSkills() + { + for (int i = 0; i < skills.Length; ++i) + { + if(skills[i] == null) return; + SkillBuilder skillBuilder = skills[i].GetBuildet(); + currentSkills.Clear(); + skillBuilder.Make(); + currentSkills.Add(skillBuilder.GetResult()); + skillUser.Initialization(); + } + } + + public BaseSkill[] GetSkills() => currentSkills.ToArray(); } diff --git a/Assets/Scripts/Inventory/InventoryItem.cs b/Assets/Scripts/Inventory/InventoryItem.cs index 7eef0a4..8ed41c6 100644 --- a/Assets/Scripts/Inventory/InventoryItem.cs +++ b/Assets/Scripts/Inventory/InventoryItem.cs @@ -4,20 +4,20 @@ public class InventoryItem : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler { - [HideInInspector] public Item item; + public Item item; public InventoryListType currentInventoryType; public int currentIndex; [HideInInspector]public Image image; [HideInInspector]public Transform parentAfterDrag; - public void InitialiseItem(Item item, int index, InventoryListType inventoryType) + public void InitialiseItem(Item item, int index = 0, InventoryListType inventoryType = InventoryListType.Weapons) { image = GetComponent<Image>(); this.item = item; currentIndex = index; currentInventoryType = inventoryType; - image.sprite = item.image; + image.sprite = item.IconImage; } public void OnBeginDrag(PointerEventData eventData) diff --git a/Assets/Scripts/Inventory/InventorySlot.cs b/Assets/Scripts/Inventory/InventorySlot.cs index a105994..c561e63 100644 --- a/Assets/Scripts/Inventory/InventorySlot.cs +++ b/Assets/Scripts/Inventory/InventorySlot.cs @@ -33,4 +33,9 @@ public void SetPlayerController(PlayerController playerController) { this.playerController = playerController; } + + public void SetInventoryType(ItemType itemType) + { + this.itemType = itemType; + } } diff --git a/Assets/Scripts/Inventory/Items/Item.cs b/Assets/Scripts/Inventory/Items/Item.cs index 7bac5e6..bbb551f 100644 --- a/Assets/Scripts/Inventory/Items/Item.cs +++ b/Assets/Scripts/Inventory/Items/Item.cs @@ -11,9 +11,11 @@ public enum ItemType public abstract class Item : ScriptableObject -{ - public string itemName; - public Sprite image; +{ + [Header("Item")] + [field: SerializeField] public string Title { get; private set; } + [field: SerializeField] public string Description { get; private set; } + [field: SerializeField] public Sprite IconImage { get; private set; } public ItemType type; public bool stackable = false; public int maxStack = 1; diff --git a/Assets/Scripts/Inventory/Items/SkillItem.cs b/Assets/Scripts/Inventory/Items/SkillItem.cs index 5cf61da..809aaa3 100644 --- a/Assets/Scripts/Inventory/Items/SkillItem.cs +++ b/Assets/Scripts/Inventory/Items/SkillItem.cs @@ -3,5 +3,5 @@ [CreateAssetMenu] public class SkillItem : Item { - + public BaseSkill skill; } diff --git a/Assets/Scripts/Inventory/Items/Stick.asset b/Assets/Scripts/Inventory/Items/Stick.asset index 4cdc67b..eef8e2c 100644 --- a/Assets/Scripts/Inventory/Items/Stick.asset +++ b/Assets/Scripts/Inventory/Items/Stick.asset @@ -12,8 +12,9 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 607b8383e4520df4a96bb2f624ab187f, type: 3} m_Name: Stick m_EditorClassIdentifier: - itemName: - image: {fileID: 1478559130, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3} + <Title>k__BackingField: + <Description>k__BackingField: + <IconImage>k__BackingField: {fileID: 1478559130, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3} type: 0 stackable: 0 maxStack: 1 diff --git a/Assets/Scripts/Inventory/PlayerInventory.cs b/Assets/Scripts/Inventory/PlayerInventory.cs index 9a712f0..c3c98eb 100644 --- a/Assets/Scripts/Inventory/PlayerInventory.cs +++ b/Assets/Scripts/Inventory/PlayerInventory.cs @@ -11,7 +11,9 @@ public class PlayerInventory : MonoBehaviour public InventorySlot[] weapons; public InventorySlot[] skills; + public Transform artifactInventory; public GameObject inventoryItemPrefab; + public GameObject slotPrefab; public void AddItem(Item item) { @@ -36,7 +38,7 @@ public void AddItem(Item item) AddItemToSlot(potionsSlots, item); break; case ItemType.Artifact: - + SpawnArtifactInInventory(item); break; } } @@ -48,6 +50,16 @@ void SpawnNewItem(Item item, InventorySlot slot, int index) inventoryItem.InitialiseItem(item, index, slot.inventoryListType); } + void SpawnArtifactInInventory(Item item) + { + GameObject newSlot = Instantiate(slotPrefab, artifactInventory); + InventorySlot inventorySlot = newSlot.GetComponent<InventorySlot>(); + inventorySlot.SetInventoryType(ItemType.Artifact); + GameObject newItem = Instantiate(inventoryItemPrefab, newSlot.transform); + InventoryItem inventoryItem = newItem.GetComponent<InventoryItem>(); + inventoryItem.InitialiseItem(item); + } + bool AddItemToSlot(InventorySlot[] inventorySlots, Item item) { for (int i = 0; i < inventorySlots.Length; i++) diff --git a/Assets/Scripts/ItemsDrop/LootTable.asset b/Assets/Scripts/ItemsDrop/LootTable.asset new file mode 100644 index 0000000..3044aaf --- /dev/null +++ b/Assets/Scripts/ItemsDrop/LootTable.asset @@ -0,0 +1,17 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 355b315728df50944abda26189fa455f, type: 3} + m_Name: LootTable + m_EditorClassIdentifier: + items: + - gameObject: {fileID: 0} + weight: 30 diff --git a/Assets/Scripts/ItemsDrop/LootTable.asset.meta b/Assets/Scripts/ItemsDrop/LootTable.asset.meta new file mode 100644 index 0000000..7faf813 --- /dev/null +++ b/Assets/Scripts/ItemsDrop/LootTable.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 46d1f64c68c79a64da2d9e877df0a8f0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Looting/Interaction.cs b/Assets/Scripts/Looting/Interaction.cs index eea0903..3eb262b 100644 --- a/Assets/Scripts/Looting/Interaction.cs +++ b/Assets/Scripts/Looting/Interaction.cs @@ -10,8 +10,7 @@ public class Interaction : MonoBehaviour private void Awake() { - if (TryGetComponent<PlayerController>(out var playerControllert)) - playerController = playerControllert; + playerController = GetComponentInParent<PlayerController>(); inputActions = new InputSystem_Actions(); inputActions.Enable(); } diff --git a/Assets/Scripts/MVC/Controller.cs b/Assets/Scripts/MVC/Controller.cs index 9b5abe8..4d32fbd 100644 --- a/Assets/Scripts/MVC/Controller.cs +++ b/Assets/Scripts/MVC/Controller.cs @@ -9,12 +9,14 @@ public abstract class Controller : MonoBehaviour [SerializeField] protected Transform weaponSlot; protected QuickAccessToolbarController toolbarController; protected Inventory inventory; + protected SkillUser skillUser; public Repulsiveness repulsiveness; protected virtual void Awake() { view = GetComponent<View>(); - inventory = new Inventory(this); + skillUser = GetComponent<SkillUser>(); + inventory = new Inventory(this, skillUser); toolbarController = new QuickAccessToolbarController(this, inventory.weapons); inventory.OnWeaponsChanged += toolbarController.UpdateToolBar; } @@ -33,12 +35,12 @@ public void ApplyHealing(float amount) view.healthBar.UpdateHealthBar(model.HP,model.stats.MaxHP); } - public void TakeDamage(float damage, float repulsionForce = 0, GameObject source = null) + public void TakeDamage(float damage, float repulsionForce = 0, Vector3 source = default) { model.TakeDamage(damage); view.healthBar.UpdateHealthBar(model.HP,model.stats.MaxHP); - if (source != null && repulsiveness != null) + if (source != Vector3.zero && repulsiveness != null) { repulsiveness.ApplyRepulsion(source, repulsionForce); } @@ -68,8 +70,8 @@ public void RemoveWeapon() public void ApplyAmp(Amplifier amp) => model.ApplyAmp(amp); public void RemoveAmp(Amplifier amp) => model.RemoveAmp(amp); - - + public Inventory GetInventory() => inventory; + public Transform GetAttackPoint() => weaponSlot; public void RemoveArtifact(ArtifactItem artifact) { @@ -87,4 +89,6 @@ public virtual void AddItemInInventory(Item item) { inventory.AddItem(item); } + + } diff --git a/Assets/Scripts/MVC/Player/PlayerController.cs b/Assets/Scripts/MVC/Player/PlayerController.cs index eab53ff..f7b666c 100644 --- a/Assets/Scripts/MVC/Player/PlayerController.cs +++ b/Assets/Scripts/MVC/Player/PlayerController.cs @@ -8,7 +8,8 @@ public class PlayerController : Controller private PlayerMovement playerMovement; public InputSystem_Actions inputActions; private PlayerInventory playerInventory; - public Item dopWeapon; + + public Item weaponn; protected void Start() { @@ -27,6 +28,7 @@ protected void Start() weapon.UpdateWeaponStats(model.stats, model.calculatedAttackSpeed); view.AttackSpeedAnimChanged(model.calculatedAttackSpeed); } + AddItemInInventory(weaponn); } protected override void Awake() diff --git a/Assets/Scripts/MVC/Repulsiveness.cs b/Assets/Scripts/MVC/Repulsiveness.cs index c0139a3..b19461c 100644 --- a/Assets/Scripts/MVC/Repulsiveness.cs +++ b/Assets/Scripts/MVC/Repulsiveness.cs @@ -13,10 +13,10 @@ public Repulsiveness(Controller controller, IRepulsionResistance repulsionResist this.repulsionResistance = repulsionResistance; } - public void ApplyRepulsion(GameObject source, float force) + public void ApplyRepulsion(Vector3 source, float force) { float currentForce = force * (1 - repulsionResistance.RepulsionResistance); - Vector3 repulsionDirection = (controller.transform.position - source.transform.position).normalized; + Vector3 repulsionDirection = (controller.transform.position - source).normalized; repulsionDirection.y = 0f; repulsionDirection = repulsionDirection.normalized; diff --git a/Assets/Scripts/MVC/View.cs b/Assets/Scripts/MVC/View.cs index ab14000..920b493 100644 --- a/Assets/Scripts/MVC/View.cs +++ b/Assets/Scripts/MVC/View.cs @@ -19,7 +19,7 @@ public virtual void AttackSpeedAnimChanged(float speed) animator.SetFloat("AttackSpeed", speed); } - private void Start() + private void Awake() { animator = GetComponent<Animator>(); healthBar = GetComponent<HealthBar>(); diff --git a/Assets/Scripts/RaycastRay.cs b/Assets/Scripts/RaycastRay.cs deleted file mode 100644 index c641632..0000000 --- a/Assets/Scripts/RaycastRay.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; -using Unity.VisualScripting; - -public static class CreatingDamageArea -{ - public static void AbilityDamageArea(LayerMask surfaceLayer, float explosionRadius, float skillDamage) - { - Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); - if (Physics.Raycast(ray, out RaycastHit hitInfo, Mathf.Infinity, surfaceLayer)) - { - Collider[] colliders = Physics.OverlapSphere(hitInfo.point, explosionRadius, surfaceLayer); - foreach (Collider hit1 in colliders) - { - Controller health = hit1.GetComponent<Controller>(); - if (health != null) - { - health.TakeDamage(skillDamage); - } - } - } - } -} - diff --git a/Assets/Scripts/Spells.meta b/Assets/Scripts/Spells.meta new file mode 100644 index 0000000..bb242a4 --- /dev/null +++ b/Assets/Scripts/Spells.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 56b137475b48cbb41ab1add9a3b5bcdc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Spells/BaseSkill.cs b/Assets/Scripts/Spells/BaseSkill.cs new file mode 100644 index 0000000..754f377 --- /dev/null +++ b/Assets/Scripts/Spells/BaseSkill.cs @@ -0,0 +1,53 @@ +using System; +using UnityEngine; + +public enum SkillStatus : byte +{ + None, + Ready, + Cooldown +} +public abstract class BaseSkill +{ + public event Action<float, float> EventChangeCooldownTimer; + public string Title { get; private set; } + public string Description { get; private set; } + public Sprite IconImage { get; private set; } + public float CooldownTime { get; private set; } + public float CooldownTimer { get; private set; } + public SkillStatus Status { get; private set; } + + public void SetDescription(string title, string description, Sprite iconImage) + { + Title = title; + Description = description; + IconImage = iconImage; + } + + public float SetCooldownTime(float cooldown) => CooldownTime = cooldown; + public void ChangeStatus(SkillStatus skillStatus) => Status = skillStatus; + public void ChangeCooltownTimer(float timer) + { + CooldownTimer = Mathf.Clamp(timer, 0.0f, CooldownTime); + EventChangeCooldownTimer?.Invoke(CooldownTimer, CooldownTime); + } + + public virtual void StartCast() + { + + } + + public virtual bool CheckCondition(Controller owner, Controller target, Vector3 location = default) + { + return false; + } + public virtual void ApplayCast() + { + + } + public virtual void EventTick(float deltaTick) + { + + } + public virtual void CancelCast() { } +} diff --git a/Assets/Scripts/Spells/BaseSkill.cs.meta b/Assets/Scripts/Spells/BaseSkill.cs.meta new file mode 100644 index 0000000..40779bb --- /dev/null +++ b/Assets/Scripts/Spells/BaseSkill.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: ca532183bc6bc704d80f51d2b2bc335e \ No newline at end of file diff --git a/Assets/Scripts/FirstSkillPlayer.cs b/Assets/Scripts/Spells/FirstSkillPlayer.cs similarity index 89% rename from Assets/Scripts/FirstSkillPlayer.cs rename to Assets/Scripts/Spells/FirstSkillPlayer.cs index 29fd38d..ce3881e 100644 --- a/Assets/Scripts/FirstSkillPlayer.cs +++ b/Assets/Scripts/Spells/FirstSkillPlayer.cs @@ -9,6 +9,7 @@ public class FirstSkillPlayer : MonoBehaviour [SerializeField] private float skillCooldown = 5f; [SerializeField] private float skillDamage = 10f; [SerializeField] private float explosionRadius = 3f; + [SerializeField] private float repulsionForce = 1f; [SerializeField] private KeyCode abilityKey = KeyCode.Alpha1; [SerializeField] LayerMask surfaceLayer; private bool isOnCooldown = false; @@ -40,7 +41,7 @@ private IEnumerator UseAbility() if (playerControlls != null) playerControlls.enabled = false; - CreatingDamageArea.AbilityDamageArea(surfaceLayer, explosionRadius, skillDamage); + CreatingDamageArea.AbilityDamageArea(MousePosition.GetMousePosition(), surfaceLayer, explosionRadius, skillDamage, repulsionForce); yield return new WaitForSeconds(castTime); diff --git a/Assets/Scripts/FirstSkillPlayer.cs.meta b/Assets/Scripts/Spells/FirstSkillPlayer.cs.meta similarity index 100% rename from Assets/Scripts/FirstSkillPlayer.cs.meta rename to Assets/Scripts/Spells/FirstSkillPlayer.cs.meta diff --git a/Assets/Scripts/Spells/SkillBuilder.cs b/Assets/Scripts/Spells/SkillBuilder.cs new file mode 100644 index 0000000..74ae210 --- /dev/null +++ b/Assets/Scripts/Spells/SkillBuilder.cs @@ -0,0 +1,24 @@ +using UnityEngine; + +public class SkillBuilder +{ + private SkillConfig config; + protected BaseSkill skill; + + public SkillBuilder(SkillConfig skillConfig) + { + config = skillConfig; + } + + public virtual void Make() + { + if(skill != null) + { + skill.SetDescription(config.Title, config.Description, config.IconImage); + skill.SetCooldownTime(config.CooldownTime); + skill.ChangeStatus(SkillStatus.Ready); + } + } + + public virtual BaseSkill GetResult() => skill; +} diff --git a/Assets/Scripts/Spells/SkillBuilder.cs.meta b/Assets/Scripts/Spells/SkillBuilder.cs.meta new file mode 100644 index 0000000..fec7cc4 --- /dev/null +++ b/Assets/Scripts/Spells/SkillBuilder.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: d82afae3a3dc72d438ea08b17c743a5b \ No newline at end of file diff --git a/Assets/Scripts/Spells/SkillConfig.cs b/Assets/Scripts/Spells/SkillConfig.cs new file mode 100644 index 0000000..4983ab4 --- /dev/null +++ b/Assets/Scripts/Spells/SkillConfig.cs @@ -0,0 +1,9 @@ +using UnityEngine; + +public class SkillConfig : Item +{ + [Header("Skill")] + [field: SerializeField] public float CooldownTime { get; private set; } + + public virtual SkillBuilder GetBuildet() => new SkillBuilder(this); +} diff --git a/Assets/Scripts/Spells/SkillConfig.cs.meta b/Assets/Scripts/Spells/SkillConfig.cs.meta new file mode 100644 index 0000000..410ee1f --- /dev/null +++ b/Assets/Scripts/Spells/SkillConfig.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 62740c6f11dfcd24f856918d65cdc68f \ No newline at end of file diff --git a/Assets/Scripts/Spells/SkillUser.cs b/Assets/Scripts/Spells/SkillUser.cs new file mode 100644 index 0000000..3faaf28 --- /dev/null +++ b/Assets/Scripts/Spells/SkillUser.cs @@ -0,0 +1,92 @@ +using System.Collections.Generic; +using UnityEngine; + +public class SkillUser : MonoBehaviour +{ + [SerializeField] private Controller ownerController; + [SerializeField] private LayerMask targetLayer; + private Inventory inventory; + + private List<BaseSkill> skills = new(); + private BaseSkill currentSkill; + + private Camera camera; + + private void Start() + { + camera = Camera.main; + inventory = ownerController.GetInventory(); + inventory.InitSkills(); + skills.AddRange(inventory.GetSkills()); + } + + public void Initialization() + { + skills.AddRange(inventory.GetSkills()); + } + + public void OnClickSkillButton(int skillIndex) + { + currentSkill?.CancelCast(); + switch (skills[skillIndex].Status) + { + case SkillStatus.Ready: + currentSkill = skills[skillIndex]; + currentSkill.StartCast(); + break; + case SkillStatus.Cooldown: + break; + } + } + + private void Update() + { + for (int i = 0; i < skills.Count; ++i) + { + skills[i].EventTick(Time.deltaTime); + if (Input.GetKeyDown(KeyCode.E)) + { + OnClickSkillButton(1); + CursorManager.Instance.SetCursor(CursorType.Attack); + } + + } + + if(currentSkill != null) + { + if (Input.GetKeyDown(KeyCode.Mouse1)) + { + currentSkill.CancelCast(); + currentSkill = null; + CursorManager.Instance.SetCursor(CursorType.Default); + return; + } + + Vector3 location = Vector3.zero; + Controller target = null; + + Ray ray = camera.ScreenPointToRay(Input.mousePosition); + RaycastHit[] hitResult = Physics.RaycastAll(ray, 500f, targetLayer); + + for (int i = 0;i < hitResult.Length;++i) + { + hitResult[i].collider.TryGetComponent<Controller>(out target); + + if (hitResult[i].collider.CompareTag("Ground")) + { + location = hitResult[i].point; + } + } + + if (currentSkill.CheckCondition(ownerController, target, location)) + { + if (Input.GetKeyDown(KeyCode.Mouse0)) + { + currentSkill.ApplayCast(); + CursorManager.Instance.SetCursor(CursorType.Default); + currentSkill = null; + } + } + } + } +} diff --git a/Assets/Scripts/Spells/SkillUser.cs.meta b/Assets/Scripts/Spells/SkillUser.cs.meta new file mode 100644 index 0000000..a0a6802 --- /dev/null +++ b/Assets/Scripts/Spells/SkillUser.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 7b1ee3422761d184abf5c3ede6cee95f \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills.meta b/Assets/Scripts/Spells/Skills.meta new file mode 100644 index 0000000..a3ea96e --- /dev/null +++ b/Assets/Scripts/Spells/Skills.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c6c5fee6be86ce4c9d61b6b1ba57df7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Spells/Skills/HealingSkill.meta b/Assets/Scripts/Spells/Skills/HealingSkill.meta new file mode 100644 index 0000000..52cd07e --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a5eb4492e7539d54caa262e66f4a0693 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs b/Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs new file mode 100644 index 0000000..7b54a30 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs @@ -0,0 +1,45 @@ +using UnityEngine; + +public class HealingSkill : BaseSkill +{ + public float HealthCount { get; private set; } + public Controller target; + + public HealingSkill(float healthCount) + { + HealthCount = healthCount; + } + + public override bool CheckCondition(Controller owner, Controller target, Vector3 location = default) + { + if(target == null || owner == null) return false; + + if (owner.CompareTag("Player")) + { + this.target = target; + return true; + } + return false; + } + + public override void ApplayCast() + { + if(target != null) + { + target.ApplyHealing(HealthCount); + + ChangeCooltownTimer(CooldownTime); + ChangeStatus(SkillStatus.Cooldown); + } + } + + public override void EventTick(float deltaTick) + { + if(Status == SkillStatus.Cooldown) + { + ChangeCooltownTimer(CooldownTimer - Time.deltaTime); + + if (CooldownTimer <= 0) ChangeStatus(SkillStatus.Ready); + } + } +} diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs.meta b/Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs.meta new file mode 100644 index 0000000..7bc59b0 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/HealingSkill.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: c8b4c973803fe6841af180ac939888b0 \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs b/Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs new file mode 100644 index 0000000..fe3d59b --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +public class HealthBuilder : SkillBuilder +{ + private readonly HealthConfig healthConfig; + public HealthBuilder(HealthConfig skillConfig) : base(skillConfig) + { + healthConfig = skillConfig; + } + + public override void Make() + { + skill = new HealingSkill(healthConfig.HealthCount); + base.Make(); + } +} diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs.meta b/Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs.meta new file mode 100644 index 0000000..58fe8b5 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/HealthBuilder.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 60a076834e5175e4ebe9a0bd1a77f541 \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs b/Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs new file mode 100644 index 0000000..b5cac6c --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs @@ -0,0 +1,12 @@ +using UnityEngine; + +[CreateAssetMenu] +public class HealthConfig : SkillConfig +{ + [field: SerializeField] public float HealthCount { get; private set; } + + public override SkillBuilder GetBuildet() + { + return new HealthBuilder(this); + } +} diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs.meta b/Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs.meta new file mode 100644 index 0000000..fd1cf6e --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/HealthConfig.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 1eff6a02baac2804ebc682cc0a4a3d5e \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset b/Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset new file mode 100644 index 0000000..5db6edd --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset @@ -0,0 +1,23 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1eff6a02baac2804ebc682cc0a4a3d5e, type: 3} + m_Name: New Health Config + m_EditorClassIdentifier: + <Title>k__BackingField: Healing + <Description>k__BackingField: "\u0425\u0438\u043B\u0438\u0442" + <IconImage>k__BackingField: {fileID: -1327393707, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3} + type: 1 + stackable: 0 + maxStack: 1 + currentStack: 1 + <CooldownTime>k__BackingField: 3 + <HealthCount>k__BackingField: 50 diff --git a/Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset.meta b/Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset.meta new file mode 100644 index 0000000..dfd3298 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/HealingSkill/New Health Config.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 58e63bcb77d13d14dae3d0305c8623e5 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Spells/Skills/MagicArrow.cs b/Assets/Scripts/Spells/Skills/MagicArrow.cs new file mode 100644 index 0000000..9292266 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicArrow.cs @@ -0,0 +1,35 @@ +using UnityEngine; + +public class MagicArrow : BaseSkill +{ + protected float skillDamage; + protected IAttackMask layerMask; + protected Transform attackPoint; + + protected float bulletSpeed = 12; + + + + public MagicArrow(float skillCooldown, float damage, IAttackMask attackMask, Transform attackPoint) + { + skillDamage = damage; + layerMask = attackMask; + this.attackPoint = attackPoint; + } + + public void Activate() + { + Bullet bulletObject = BulletPoolManager.Instance.GetBullet(); + + if (bulletObject == null) + { + return; + } + + Quaternion yRotation = Quaternion.Euler(0f, attackPoint.rotation.eulerAngles.y, 0f); + bulletObject.transform.SetPositionAndRotation(attackPoint.position, yRotation); + + bulletObject.Initialize(bulletSpeed, skillDamage, 5, 5, layerMask); + bulletObject.Deactivate(); + } +} diff --git a/Assets/Scripts/Spells/Skills/MagicArrow.cs.meta b/Assets/Scripts/Spells/Skills/MagicArrow.cs.meta new file mode 100644 index 0000000..f94ec4e --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicArrow.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 01e87b5f7beda734da18e0e29f142771 \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/MagicBomb.meta b/Assets/Scripts/Spells/Skills/MagicBomb.meta new file mode 100644 index 0000000..aea37fe --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fd56d1a279422bd4bb31558dd7c5c127 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs new file mode 100644 index 0000000..6071b2a --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs @@ -0,0 +1,82 @@ +using UnityEngine; +using static UnityEngine.GraphicsBuffer; + +public class MagicBomb : BaseSkill +{ + public float Damage { get; private set; } + public float ExplosionRadius { get; private set; } + public float RepulsionForce { get; private set; } + public LayerMask LayerMask { get; private set; } + public Transform AttackPoint { get; private set; } + public GameObject BombPrefab { get; private set; } + + [Header("Internal")] + private float baseThrowForce = 2f; + private float distanceMultiplier = 0.5f; + private float upwardModifier = 1f; + + + + public MagicBomb(float damage, float explosionRadius, float repulsionForce, LayerMask attackMask, GameObject bombPrefab) + { + Damage = damage; + ExplosionRadius = explosionRadius; + RepulsionForce = repulsionForce; + LayerMask = attackMask; + BombPrefab = bombPrefab; + } + + public override void ApplayCast() + { + Activate(); + ChangeCooltownTimer(CooldownTime); + ChangeStatus(SkillStatus.Cooldown); + } + + public override bool CheckCondition(Controller owner, Controller target, Vector3 location = default) + { + AttackPoint = owner.GetAttackPoint(); + return true; + } + + public override void EventTick(float deltaTick) + { + if (Status == SkillStatus.Cooldown) + { + ChangeCooltownTimer(CooldownTimer - Time.deltaTime); + + if (CooldownTimer <= 0) ChangeStatus(SkillStatus.Ready); + } + } + + public void Activate() + { + GameObject bomb = Object.Instantiate(BombPrefab, AttackPoint.position, Quaternion.identity); + + Bomb explosion = bomb.GetComponent<Bomb>(); + + explosion.Initialise(LayerMask, Damage, ExplosionRadius, RepulsionForce); + + Rigidbody bombRb = bomb.GetComponent<Rigidbody>(); + + bombRb.AddForce(Throw(AttackPoint.position), ForceMode.Impulse); + } + + public Vector3 Throw(Vector3 attackPoint) + { + Vector3 mousePosition = MousePosition.GetMousePosition(); + + //расстояние до точки попадания мыши + float distance = Vector3.Distance(attackPoint, mousePosition); + + //силу броска на основе расстояния + float throwForce = baseThrowForce + (distance * distanceMultiplier); + + //направление броска + Vector3 direction = (mousePosition - attackPoint).normalized; + direction.y += upwardModifier; + direction *= throwForce; + + return direction; + } +} diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs.meta b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs.meta new file mode 100644 index 0000000..1a221a2 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBomb.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 7341a77a85425b842b6789a8182c09f3 \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs new file mode 100644 index 0000000..16f5520 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +public class MagicBombBuilder : SkillBuilder +{ + private readonly MagicBombConfig magicBombConfig; + public MagicBombBuilder(MagicBombConfig skillConfig) : base(skillConfig) + { + magicBombConfig = skillConfig; + } + + public override void Make() + { + skill = new MagicBomb( + magicBombConfig.Damage, + magicBombConfig.ExplosionRadius, + magicBombConfig.RepulsionForce, + magicBombConfig.LayerMask, + magicBombConfig.BombPrefab + ); + base.Make(); + } +} diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs.meta b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs.meta new file mode 100644 index 0000000..935f7ae --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombBuilder.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 30e0281e51726db4a8cac020825a0450 \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs new file mode 100644 index 0000000..244afbb --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +[CreateAssetMenu] +public class MagicBombConfig : SkillConfig +{ + [field: SerializeField] public float Damage { get; private set; } + [field: SerializeField] public float ExplosionRadius { get; private set; } + [field: SerializeField] public float RepulsionForce { get; private set; } + [field: SerializeField] public LayerMask LayerMask { get; private set; } + [field: SerializeField] public GameObject BombPrefab { get; private set; } + + public override SkillBuilder GetBuildet() + { + return new MagicBombBuilder(this); + } +} diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs.meta b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs.meta new file mode 100644 index 0000000..7a80013 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/MagicBombConfig.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 595aa8e8f27ead44b8584a7218199491 \ No newline at end of file diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset b/Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset new file mode 100644 index 0000000..8eaf517 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset @@ -0,0 +1,29 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 595aa8e8f27ead44b8584a7218199491, type: 3} + m_Name: New Magic Bomb Config + m_EditorClassIdentifier: + <Title>k__BackingField: MagicBomb + <Description>k__BackingField: + <IconImage>k__BackingField: {fileID: -1460125226, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3} + type: 1 + stackable: 0 + maxStack: 1 + currentStack: 1 + <CooldownTime>k__BackingField: 0 + <Damage>k__BackingField: 40 + <ExplosionRadius>k__BackingField: 4 + <RepulsionForce>k__BackingField: 40 + <LayerMask>k__BackingField: + serializedVersion: 2 + m_Bits: 64 + <BombPrefab>k__BackingField: {fileID: 2003357300044948170, guid: b4cb0176e79afe24ca3ba9876eb964b8, type: 3} diff --git a/Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset.meta b/Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset.meta new file mode 100644 index 0000000..1e61ff8 --- /dev/null +++ b/Assets/Scripts/Spells/Skills/MagicBomb/New Magic Bomb Config.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 887a767d0b4d4b147b603d29167cfe5d +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Static.meta b/Assets/Scripts/Static.meta new file mode 100644 index 0000000..360c614 --- /dev/null +++ b/Assets/Scripts/Static.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a570b80dd80ce4744ac70d8c6f5f485b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GetFirstLayerNameFromMask.cs b/Assets/Scripts/Static/GetFirstLayerNameFromMask.cs similarity index 100% rename from Assets/Scripts/GetFirstLayerNameFromMask.cs rename to Assets/Scripts/Static/GetFirstLayerNameFromMask.cs diff --git a/Assets/Scripts/GetFirstLayerNameFromMask.cs.meta b/Assets/Scripts/Static/GetFirstLayerNameFromMask.cs.meta similarity index 100% rename from Assets/Scripts/GetFirstLayerNameFromMask.cs.meta rename to Assets/Scripts/Static/GetFirstLayerNameFromMask.cs.meta diff --git a/Assets/Scripts/Static/MousePosition.cs b/Assets/Scripts/Static/MousePosition.cs new file mode 100644 index 0000000..fdfe3ed --- /dev/null +++ b/Assets/Scripts/Static/MousePosition.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +public static class MousePosition +{ + public static LayerMask targetLayer = LayerMask.GetMask("Surface"); + public static Vector3 GetMousePosition() + { + Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); + if (Physics.Raycast(ray, out RaycastHit hitInfo, Mathf.Infinity, targetLayer)) + { + return hitInfo.point; + } + Debug.Log("Тут что-то не так"); + return Vector3.zero; + } +} diff --git a/Assets/Scripts/Static/MousePosition.cs.meta b/Assets/Scripts/Static/MousePosition.cs.meta new file mode 100644 index 0000000..1dc6212 --- /dev/null +++ b/Assets/Scripts/Static/MousePosition.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: f7fad50230eed2a49bf815da1b164e59 \ No newline at end of file diff --git a/Assets/Scripts/RandomTransformGenerator.cs b/Assets/Scripts/Static/RandomTransformGenerator.cs similarity index 100% rename from Assets/Scripts/RandomTransformGenerator.cs rename to Assets/Scripts/Static/RandomTransformGenerator.cs diff --git a/Assets/Scripts/RandomTransformGenerator.cs.meta b/Assets/Scripts/Static/RandomTransformGenerator.cs.meta similarity index 100% rename from Assets/Scripts/RandomTransformGenerator.cs.meta rename to Assets/Scripts/Static/RandomTransformGenerator.cs.meta diff --git a/Assets/Scripts/Static/RaycastRay.cs b/Assets/Scripts/Static/RaycastRay.cs new file mode 100644 index 0000000..f0c64f2 --- /dev/null +++ b/Assets/Scripts/Static/RaycastRay.cs @@ -0,0 +1,18 @@ +using UnityEngine; + +public static class CreatingDamageArea +{ + public static void AbilityDamageArea(Vector3 position, LayerMask layer, float explosionRadius, float skillDamage, float repulsionForce) + { + Collider[] colliders = Physics.OverlapSphere(position, explosionRadius, layer); + foreach (Collider hit1 in colliders) + { + Controller health = hit1.GetComponent<Controller>(); + if (health != null) + { + health.TakeDamage(skillDamage, repulsionForce, position); + } + } + } +} + diff --git a/Assets/Scripts/RaycastRay.cs.meta b/Assets/Scripts/Static/RaycastRay.cs.meta similarity index 100% rename from Assets/Scripts/RaycastRay.cs.meta rename to Assets/Scripts/Static/RaycastRay.cs.meta diff --git a/Assets/Scripts/Stats/BaseStats.cs b/Assets/Scripts/Stats/BaseStats.cs index 3e496bb..f2f9cca 100644 --- a/Assets/Scripts/Stats/BaseStats.cs +++ b/Assets/Scripts/Stats/BaseStats.cs @@ -1,5 +1,20 @@ using UnityEngine; +public interface ISpellDamage +{ + float SpellDamage { get; set; } +} + +public interface ICooldownReduction +{ + float CooldownReduction { get; set; } +} + +public interface ISpellStats : ICooldownReduction, ISpellDamage +{ + +} + public interface IAttackSpeed { float AttackSpeed { get; set; } @@ -29,7 +44,7 @@ public interface IAttackMask LayerMask IgnoreMask { get; set; } //что должна игнорировать } -public abstract class BaseStats : ScriptableObject, IHealthStats, IMoveSpeed, IAttackStats, IAttackMask +public abstract class BaseStats : ScriptableObject, IHealthStats, IMoveSpeed, IAttackStats, IAttackMask, ISpellStats { [Header("Health")] [SerializeField] protected float maxHP; @@ -42,6 +57,9 @@ public abstract class BaseStats : ScriptableObject, IHealthStats, IMoveSpeed, IA [SerializeField] protected float attackRange; [SerializeField] protected float attackSpeed; [SerializeField] protected float repulsionForce = 4f; + [Header("SpellStats")] + [SerializeField] protected float spellDamage; + [SerializeField] protected float cooldownReduction; [Header("AttackMask")] [SerializeField] protected LayerMask layerMask; [SerializeField] protected LayerMask ignoreMask; @@ -61,11 +79,13 @@ public float RepulsionResistance get { return repulsionResistance; } set { repulsionResistance = value; } } + //Movement public float Speed { get { return speed; } set { speed = value; } } + //Attack public float Damage { get { return damage; } @@ -81,13 +101,23 @@ public float AttackSpeed get { return attackSpeed; } set { attackSpeed = value; } } - public float RepulsionForce { get { return repulsionForce; } set { repulsionForce = value; } } - + //SpeelStats + public float SpellDamage + { + get { return spellDamage; } + set { spellDamage = value; } + } + public float CooldownReduction + { + get { return cooldownReduction; } + set { cooldownReduction = value; } + } + //AttackMask public LayerMask LayerMask { get { return layerMask; } diff --git a/Assets/Scripts/Stats/EnemyStats/EnemyWithStick.asset b/Assets/Scripts/Stats/EnemyStats/EnemyWithStick.asset index c1ee010..821dc4c 100644 --- a/Assets/Scripts/Stats/EnemyStats/EnemyWithStick.asset +++ b/Assets/Scripts/Stats/EnemyStats/EnemyWithStick.asset @@ -12,7 +12,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 75bad691c1b38354691d4f9506a7a145, type: 3} m_Name: EnemyWithStick m_EditorClassIdentifier: - maxHP: 300 + maxHP: 100 armor: 10 repulsionResistance: 0 speed: 3.5 @@ -20,6 +20,8 @@ MonoBehaviour: attackRange: 2 attackSpeed: 100 repulsionForce: 50 + spellDamage: 0 + cooldownReduction: 0 layerMask: serializedVersion: 2 m_Bits: 384 diff --git a/Assets/Scripts/TemporaryClassWeapons.cs b/Assets/Scripts/TemporaryClassWeapons.cs deleted file mode 100644 index 4ab808a..0000000 --- a/Assets/Scripts/TemporaryClassWeapons.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; - -public enum WeaponType -{ - Sword -} - -public class Weapon : Item -{ - public int maxSlots = 1; - public float rarity; - public WeaponType weaponType; - - public WeaponType GetWeaponType() { return weaponType; } -} diff --git a/Assets/Scripts/TemporaryClassWeapons.cs.meta b/Assets/Scripts/TemporaryClassWeapons.cs.meta deleted file mode 100644 index 09cb78b..0000000 --- a/Assets/Scripts/TemporaryClassWeapons.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 53af139a75a87474f9b903393a013b51 \ No newline at end of file diff --git a/Assets/Scripts/Weapon/Anything.meta b/Assets/Scripts/Weapon/Anything.meta new file mode 100644 index 0000000..50065f4 --- /dev/null +++ b/Assets/Scripts/Weapon/Anything.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: be51ae744649b024e9f4d39330e6bba6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Weapon/Anything/Bomb.cs b/Assets/Scripts/Weapon/Anything/Bomb.cs new file mode 100644 index 0000000..37029a9 --- /dev/null +++ b/Assets/Scripts/Weapon/Anything/Bomb.cs @@ -0,0 +1,33 @@ +using UnityEngine; + +public class Bomb : MonoBehaviour +{ + private LayerMask attackMask; + private LayerMask surface; + private float damage; + private float explosionRadius; + private float repulsionForce; + + void Awake() + { + surface = LayerMask.GetMask("Surface"); + } + + public void Initialise(LayerMask layer, float damage, float explosionRadius, float repulsionForce) + { + attackMask = layer; + this.damage = damage; + this.explosionRadius = explosionRadius; + this.repulsionForce = repulsionForce; + } + + private void OnTriggerEnter(Collider other) + { + if ((surface & (1 << other.gameObject.layer)) != 0) + { + CreatingDamageArea.AbilityDamageArea(transform.position, attackMask, explosionRadius, damage, repulsionForce); + Destroy(gameObject); + } + + } +} diff --git a/Assets/Scripts/Weapon/Anything/Bomb.cs.meta b/Assets/Scripts/Weapon/Anything/Bomb.cs.meta new file mode 100644 index 0000000..e46e7a6 --- /dev/null +++ b/Assets/Scripts/Weapon/Anything/Bomb.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 87dac9c859166564eba4360495ab38fd \ No newline at end of file diff --git a/Assets/Scripts/Weapon/BodyWeapon.cs b/Assets/Scripts/Weapon/BodyWeapon.cs index 625ab0a..36d3591 100644 --- a/Assets/Scripts/Weapon/BodyWeapon.cs +++ b/Assets/Scripts/Weapon/BodyWeapon.cs @@ -13,6 +13,6 @@ private void Start() public override void DamageTrigger(Controller controller, GameObject attacker) { base.DamageTrigger(controller, attacker); - ownerController.repulsiveness.ApplyRepulsion(attacker, repulsionForce); + ownerController.repulsiveness.ApplyRepulsion(attacker.transform.position, repulsionForce); } } diff --git a/Assets/Scripts/Weapon/Bullet/Bullet.cs b/Assets/Scripts/Weapon/Bullet/Bullet.cs index 5903f2a..49b0a4d 100644 --- a/Assets/Scripts/Weapon/Bullet/Bullet.cs +++ b/Assets/Scripts/Weapon/Bullet/Bullet.cs @@ -49,7 +49,7 @@ private void OnTriggerEnter(Collider other) { if (other.TryGetComponent(out Controller controller)) { - controller.TakeDamage(damage, repulsionForce, gameObject); + controller.TakeDamage(damage, repulsionForce, gameObject.transform.position); } bulletPool.Release(this); } diff --git a/Assets/Scripts/Weapon/MeleeWeapon.cs b/Assets/Scripts/Weapon/MeleeWeapon.cs index c1be676..948167c 100644 --- a/Assets/Scripts/Weapon/MeleeWeapon.cs +++ b/Assets/Scripts/Weapon/MeleeWeapon.cs @@ -15,6 +15,6 @@ private void OnTriggerEnter(Collider other) public virtual void DamageTrigger(Controller controller, GameObject attacker) { - controller.TakeDamage(GetAtkStat(AtkStat.Damage), GetAtkStat(AtkStat.Repulsion), gameObject); + controller.TakeDamage(GetAtkStat(AtkStat.Damage), GetAtkStat(AtkStat.Repulsion), gameObject.transform.position); } } diff --git a/Assets/Shaders.meta b/Assets/Shaders.meta new file mode 100644 index 0000000..b868f26 --- /dev/null +++ b/Assets/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6624c53bed92ff4418d61b2e8b7dbb31 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Shaders/test.shadergraph b/Assets/Shaders/test.shadergraph new file mode 100644 index 0000000..d1dcd36 --- /dev/null +++ b/Assets/Shaders/test.shadergraph @@ -0,0 +1,1775 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "8a3d5101eb68446e8c53922287430c48", + "m_Properties": [], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "8cda9c245384433389dbed092be1626c" + } + ], + "m_Nodes": [ + { + "m_Id": "a65f25e95b9d48aab55ac39c6a0062c3" + }, + { + "m_Id": "9d4974a6be904989835621167f4d1739" + }, + { + "m_Id": "87859664229b4d1eb3dad086d9be8678" + }, + { + "m_Id": "fa06feeaa25f4f828ec1e7f46c9271a2" + }, + { + "m_Id": "94fbf493eb7243d19501e5c172d1b634" + }, + { + "m_Id": "fc55934d386d48e98651a7647c4f207a" + }, + { + "m_Id": "33f689711eec4b50913c8a66960c373c" + }, + { + "m_Id": "df4f850e8284419b9f0f5b47012432b6" + }, + { + "m_Id": "82c29b3393004af7887e15239216534f" + }, + { + "m_Id": "e41a378739e14c729937bc0d24b19381" + }, + { + "m_Id": "6536e8e517b949e7a0eb63bcb813abc0" + }, + { + "m_Id": "d3589106c5c04fa7b6efe8c5df25112a" + }, + { + "m_Id": "664b5132fbd54c07953158054d173f2d" + }, + { + "m_Id": "ddaaafd5f27245b4af739cd1d074cc65" + }, + { + "m_Id": "0de01b963194427caeef3ba00d5897e7" + }, + { + "m_Id": "e954263d2d724ca59e3a877c756fb918" + }, + { + "m_Id": "48994c9cac094710b6d98cf2157ab9ca" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0de01b963194427caeef3ba00d5897e7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e954263d2d724ca59e3a877c756fb918" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "33f689711eec4b50913c8a66960c373c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a65f25e95b9d48aab55ac39c6a0062c3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "48994c9cac094710b6d98cf2157ab9ca" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "33f689711eec4b50913c8a66960c373c" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "94fbf493eb7243d19501e5c172d1b634" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e954263d2d724ca59e3a877c756fb918" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ddaaafd5f27245b4af739cd1d074cc65" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "48994c9cac094710b6d98cf2157ab9ca" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e954263d2d724ca59e3a877c756fb918" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ddaaafd5f27245b4af739cd1d074cc65" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fa06feeaa25f4f828ec1e7f46c9271a2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "94fbf493eb7243d19501e5c172d1b634" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fa06feeaa25f4f828ec1e7f46c9271a2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fc55934d386d48e98651a7647c4f207a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fc55934d386d48e98651a7647c4f207a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "33f689711eec4b50913c8a66960c373c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fc55934d386d48e98651a7647c4f207a" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "33f689711eec4b50913c8a66960c373c" + }, + "m_SlotId": 3 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.000008225440979003906, + "y": -6.000001907348633 + }, + "m_Blocks": [ + { + "m_Id": "a65f25e95b9d48aab55ac39c6a0062c3" + }, + { + "m_Id": "df4f850e8284419b9f0f5b47012432b6" + }, + { + "m_Id": "82c29b3393004af7887e15239216534f" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "9d4974a6be904989835621167f4d1739" + }, + { + "m_Id": "87859664229b4d1eb3dad086d9be8678" + }, + { + "m_Id": "e41a378739e14c729937bc0d24b19381" + }, + { + "m_Id": "6536e8e517b949e7a0eb63bcb813abc0" + }, + { + "m_Id": "d3589106c5c04fa7b6efe8c5df25112a" + }, + { + "m_Id": "664b5132fbd54c07953158054d173f2d" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "7fd822a85a684183bffa83d22ce643f8" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "06a651f8433b430abb3718f5aa34aea2", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "07ad59ad41b245b5a0b105e10545a612", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0b09fe6cf0eb44e4b2cbd276584e4950", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 4.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TimeNode", + "m_ObjectId": "0de01b963194427caeef3ba00d5897e7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Time", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1327.0, + "y": 404.0, + "width": 124.0, + "height": 172.99993896484376 + } + }, + "m_Slots": [ + { + "m_Id": "22863eac3207407fab0d811e727a6561" + }, + { + "m_Id": "8b48c3851d884cffba02b165af12022e" + }, + { + "m_Id": "f4a203735b6c408982c14877552cd6db" + }, + { + "m_Id": "f07a66d2886246f6bcce3c5d9b2bd7e4" + }, + { + "m_Id": "e674b8d0757648a2b779b94fb2354b86" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "17c69785362a48a6a3a955b95623940c", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "22863eac3207407fab0d811e727a6561", + "m_Id": 0, + "m_DisplayName": "Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2a039aa710f44d2eb8b41fca14aa3a10", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2b082d2be8614ae6bad3b959d75a30c3", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "2c19ff6177b047de9471bd01a1dcb211", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2c40a58c853f4a7ea320d764f3b1f9cc", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "321d1557fefa42fe9fcdbba6f4ab438a", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "33f689711eec4b50913c8a66960c373c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -361.0000305175781, + "y": -35.999996185302737, + "width": 127.99998474121094, + "height": 124.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "321d1557fefa42fe9fcdbba6f4ab438a" + }, + { + "m_Id": "72c18db45ff44085bf107c1e78567788" + }, + { + "m_Id": "2c40a58c853f4a7ea320d764f3b1f9cc" + }, + { + "m_Id": "17c69785362a48a6a3a955b95623940c" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "33fa97e5af1547da862f2f126e3f4e85", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "35b8331d94ed4b22b31e3d94de2f5e5f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "3e89d1a3b5624a4cb7eb436b0b3ab7fd", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "486ed88b0e654621b70fa2cfaad61b05", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "48994c9cac094710b6d98cf2157ab9ca", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -526.0, + "y": 143.0, + "width": 208.00003051757813, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "b2db41725d48420e86068103b2e3a15c" + }, + { + "m_Id": "0b09fe6cf0eb44e4b2cbd276584e4950" + }, + { + "m_Id": "55ea6febf0df4e3087a9182e2c934582" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5397628d8d9f4de7a487ef148097ef3e", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "55ea6febf0df4e3087a9182e2c934582", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "56137a0cb6d649769acc5b2a03150ca7", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6536e8e517b949e7a0eb63bcb813abc0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "33fa97e5af1547da862f2f126e3f4e85" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6569b76cc59d4479a79119670ac65235", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "664b5132fbd54c07953158054d173f2d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "ec05f5a748134f32a991c40f4bab3943" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "72c18db45ff44085bf107c1e78567788", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "7fd822a85a684183bffa83d22ce643f8", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "9298a094246c4a1f9f2873a18dddb723" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "82c29b3393004af7887e15239216534f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "f86ca17e62fd44438b68267a01afd233" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "87859664229b4d1eb3dad086d9be8678", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "06a651f8433b430abb3718f5aa34aea2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8b48c3851d884cffba02b165af12022e", + "m_Id": 1, + "m_DisplayName": "Sine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Sine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "8cda9c245384433389dbed092be1626c", + "m_Name": "", + "m_ChildObjectList": [] +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "9298a094246c4a1f9f2873a18dddb723", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "94fbf493eb7243d19501e5c172d1b634", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1136.0, + "y": 5.999987602233887, + "width": 120.0, + "height": 148.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "486ed88b0e654621b70fa2cfaad61b05" + }, + { + "m_Id": "2b082d2be8614ae6bad3b959d75a30c3" + }, + { + "m_Id": "6569b76cc59d4479a79119670ac65235" + }, + { + "m_Id": "b60f73c0019f412b89dacde95bbe7134" + }, + { + "m_Id": "efb4dc924d3f4cf7bdfe20d016057813" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "97f4681276db46b4a3f86350d09f0c33", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "9d4974a6be904989835621167f4d1739", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "9de027dd66b24c3f94a23b5e8e87f017" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "9de027dd66b24c3f94a23b5e8e87f017", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.05724918842315674, + "y": 1.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "a65f25e95b9d48aab55ac39c6a0062c3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "ed3495f5ea5c4e68b319e20c4056d9a9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ace5b3c2e680467fb2db147adc1e372e", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "afa7cf9170804891bd9a966744e94293", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "b2db41725d48420e86068103b2e3a15c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b60f73c0019f412b89dacde95bbe7134", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "cd807268499f4706a05823d23a2eb000", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "d3589106c5c04fa7b6efe8c5df25112a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "2c19ff6177b047de9471bd01a1dcb211" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SineNode", + "m_ObjectId": "ddaaafd5f27245b4af739cd1d074cc65", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -825.0, + "y": 89.0, + "width": 208.0, + "height": 277.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "2a039aa710f44d2eb8b41fca14aa3a10" + }, + { + "m_Id": "5397628d8d9f4de7a487ef148097ef3e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "df4f850e8284419b9f0f5b47012432b6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "3e89d1a3b5624a4cb7eb436b0b3ab7fd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e41a378739e14c729937bc0d24b19381", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "cd807268499f4706a05823d23a2eb000" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e50917784e7c420cab052859a673b03c", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e674b8d0757648a2b779b94fb2354b86", + "m_Id": 4, + "m_DisplayName": "Smooth Delta", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smooth Delta", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "e954263d2d724ca59e3a877c756fb918", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1108.0, + "y": 293.99993896484377, + "width": 208.0, + "height": 302.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "fbe3e99051c946b6bb4dbcf6d36a10b6" + }, + { + "m_Id": "35b8331d94ed4b22b31e3d94de2f5e5f" + }, + { + "m_Id": "56137a0cb6d649769acc5b2a03150ca7" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ec05f5a748134f32a991c40f4bab3943", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "ed3495f5ea5c4e68b319e20c4056d9a9", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "efb4dc924d3f4cf7bdfe20d016057813", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f07a66d2886246f6bcce3c5d9b2bd7e4", + "m_Id": 3, + "m_DisplayName": "Delta Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Delta Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f4a203735b6c408982c14877552cd6db", + "m_Id": 2, + "m_DisplayName": "Cosine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Cosine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "f86ca17e62fd44438b68267a01afd233", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f8da1b13f2e14997bcf2f9e74b8f3fc0", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.PositionNode", + "m_ObjectId": "fa06feeaa25f4f828ec1e7f46c9271a2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1411.0, + "y": 5.999987602233887, + "width": 208.0, + "height": 313.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "97f4681276db46b4a3f86350d09f0c33" + } + ], + "synonyms": [ + "location" + ], + "m_Precision": 1, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 0, + "m_PositionSource": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "fbe3e99051c946b6bb4dbcf6d36a10b6", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "fc55934d386d48e98651a7647c4f207a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1108.0, + "y": -186.00003051757813, + "width": 120.0, + "height": 149.0000457763672 + } + }, + "m_Slots": [ + { + "m_Id": "e50917784e7c420cab052859a673b03c" + }, + { + "m_Id": "afa7cf9170804891bd9a966744e94293" + }, + { + "m_Id": "ace5b3c2e680467fb2db147adc1e372e" + }, + { + "m_Id": "f8da1b13f2e14997bcf2f9e74b8f3fc0" + }, + { + "m_Id": "07ad59ad41b245b5a0b105e10545a612" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + diff --git a/Assets/Shaders/test.shadergraph.meta b/Assets/Shaders/test.shadergraph.meta new file mode 100644 index 0000000..de3c4a3 --- /dev/null +++ b/Assets/Shaders/test.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: bacc3446e2a957d48ab26ba414b53e7b +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Shaders/test2.shadergraph b/Assets/Shaders/test2.shadergraph new file mode 100644 index 0000000..c94fd06 --- /dev/null +++ b/Assets/Shaders/test2.shadergraph @@ -0,0 +1,1746 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "d0ca2d4fb02346bd9b553eff4ff8b4c6", + "m_Properties": [ + { + "m_Id": "be732a7b424047fabecb80362a057d0a" + }, + { + "m_Id": "172ec1ecad414e37a49ed1a2e8f89d30" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "d20462f621d541adb70fdca547886934" + } + ], + "m_Nodes": [ + { + "m_Id": "64b798e9a4c44df7b7e77232387073f7" + }, + { + "m_Id": "f8589cdd9fbb4abcaa43aa65b94a22cd" + }, + { + "m_Id": "55d3aa2dd51a4162a90a63dca3a1679d" + }, + { + "m_Id": "e31ba3b8312940258ef741f9127a434f" + }, + { + "m_Id": "08b12fcba6824051ab0b00953445d9de" + }, + { + "m_Id": "ca14948edee745b7ac46501fb5b59788" + }, + { + "m_Id": "41084dd29178453bab536c9b85ef9231" + }, + { + "m_Id": "e13b193ae4ce4a9c987ad302ce591e44" + }, + { + "m_Id": "8ee5340bbc8540738403058fcaa9b7d1" + }, + { + "m_Id": "a8c9eff1ea5241b584c018e0cba5af4a" + }, + { + "m_Id": "4130684d1cb64ee4bba078941a2cdeef" + }, + { + "m_Id": "00eb0e81e0ac4ca48ffc9c08c607a777" + }, + { + "m_Id": "0632759de58e4ef582799d8820edb479" + }, + { + "m_Id": "38d374c50959483591ae6940bc6dae15" + }, + { + "m_Id": "826b5a6c80dc40c8bf257993b8aec49a" + }, + { + "m_Id": "20e4c961044049b6be319a6314c5af13" + }, + { + "m_Id": "cbfa3a9df6f542a7b02c1dd4c1beaf80" + }, + { + "m_Id": "65351a9f63b24cd9805990286db58707" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "00eb0e81e0ac4ca48ffc9c08c607a777" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "826b5a6c80dc40c8bf257993b8aec49a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0632759de58e4ef582799d8820edb479" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e31ba3b8312940258ef741f9127a434f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "20e4c961044049b6be319a6314c5af13" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0632759de58e4ef582799d8820edb479" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "38d374c50959483591ae6940bc6dae15" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0632759de58e4ef582799d8820edb479" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4130684d1cb64ee4bba078941a2cdeef" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0632759de58e4ef582799d8820edb479" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "65351a9f63b24cd9805990286db58707" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cbfa3a9df6f542a7b02c1dd4c1beaf80" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "826b5a6c80dc40c8bf257993b8aec49a" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "20e4c961044049b6be319a6314c5af13" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a8c9eff1ea5241b584c018e0cba5af4a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "00eb0e81e0ac4ca48ffc9c08c607a777" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cbfa3a9df6f542a7b02c1dd4c1beaf80" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "826b5a6c80dc40c8bf257993b8aec49a" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "64b798e9a4c44df7b7e77232387073f7" + }, + { + "m_Id": "f8589cdd9fbb4abcaa43aa65b94a22cd" + }, + { + "m_Id": "55d3aa2dd51a4162a90a63dca3a1679d" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "e31ba3b8312940258ef741f9127a434f" + }, + { + "m_Id": "08b12fcba6824051ab0b00953445d9de" + }, + { + "m_Id": "ca14948edee745b7ac46501fb5b59788" + }, + { + "m_Id": "41084dd29178453bab536c9b85ef9231" + }, + { + "m_Id": "e13b193ae4ce4a9c987ad302ce591e44" + }, + { + "m_Id": "8ee5340bbc8540738403058fcaa9b7d1" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "30201de0be3c406b8b4c779c3635d682" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "00eb0e81e0ac4ca48ffc9c08c607a777", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -989.0, + "y": 232.0, + "width": 120.00006103515625, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "d3624529857d4d65837d4e78b6c2d076" + }, + { + "m_Id": "b4b4c0b8c2d24cce88a10ac4d855c81b" + }, + { + "m_Id": "645352d68c1e43a2901d7a5a38441903" + }, + { + "m_Id": "cb01454f30904f4591adc943c8cded2e" + }, + { + "m_Id": "6818cd5e20cd4305830edf0225dd4730" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "0632759de58e4ef582799d8820edb479", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -355.9999694824219, + "y": 128.99998474121095, + "width": 208.00001525878907, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "e207123643774087a6e3d07b5a8e580b" + }, + { + "m_Id": "163fb58a2edb4571afec9e3dda745b08" + }, + { + "m_Id": "42e8ce32ee994c2092362bbdb9b71ba1" + }, + { + "m_Id": "1fe19cdc06c9482888005954d25e019a" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "08b12fcba6824051ab0b00953445d9de", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "60575b63eda84a73b36e05cd518af8af" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0b17564c44d64bf6be4856efb7389868", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "16270b081d9c4bb3a32577d87daf2221", + "m_Id": 3, + "m_DisplayName": "Delta Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Delta Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "163fb58a2edb4571afec9e3dda745b08", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "172ec1ecad414e37a49ed1a2e8f89d30", + "m_Guid": { + "m_GuidSerialized": "db176050-32dd-4e1a-af04-0b927a99c274" + }, + "m_Name": "Color (1)", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Color (1)", + "m_DefaultReferenceName": "_Color_1", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.03321219980716705, + "g": 1.0, + "b": 0.004716992378234863, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "18b55a13713242a590739d74dbfa9fbe", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1fe19cdc06c9482888005954d25e019a", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SaturateNode", + "m_ObjectId": "20e4c961044049b6be319a6314c5af13", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Saturate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -638.0000610351563, + "y": 343.0000305175781, + "width": 208.00003051757813, + "height": 278.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "5225caa4d5bf4db5a71da0267d45630e" + }, + { + "m_Id": "0b17564c44d64bf6be4856efb7389868" + } + ], + "synonyms": [ + "clamp" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "2678f43ff18b4329bb1866f9ae8c66e2", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "26861d947b8f4748b5861cc572db1715", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "28d1014a5d08498688fe83c3240779f8", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "2c409db1199e4821a281e7c06b7893f1", + "m_Id": 0, + "m_DisplayName": "Color", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2dc4db13886643fbb9c92b180172ca67", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "30201de0be3c406b8b4c779c3635d682", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "364cd0ca46094128a3f6936b61a6a694" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "364cd0ca46094128a3f6936b61a6a694", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3821d8b249774335bbad8b7666e2a756", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.5, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "38d374c50959483591ae6940bc6dae15", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -593.9999389648438, + "y": 111.99999237060547, + "width": 121.99996948242188, + "height": 34.00000762939453 + } + }, + "m_Slots": [ + { + "m_Id": "7cc65e01047b428d9499bb1c9d319505" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "172ec1ecad414e37a49ed1a2e8f89d30" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "3f434fee011f4ec5a49d96c679abea2c", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "41084dd29178453bab536c9b85ef9231", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "e5538f52f957461ca47d41dec4eff60e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4130684d1cb64ee4bba078941a2cdeef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -577.0, + "y": 52.999996185302737, + "width": 105.00003051757813, + "height": 34.0000114440918 + } + }, + "m_Slots": [ + { + "m_Id": "2c409db1199e4821a281e7c06b7893f1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "be732a7b424047fabecb80362a057d0a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "42e8ce32ee994c2092362bbdb9b71ba1", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "430b1e34acea4743abec2c2bdc369178", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "4463f056989c4a46ab1376ab120bcdc3", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5225caa4d5bf4db5a71da0267d45630e", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "55d3aa2dd51a4162a90a63dca3a1679d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "4463f056989c4a46ab1376ab120bcdc3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5e413326b3a942908944f3e4fe4e14b7", + "m_Id": 1, + "m_DisplayName": "Sine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Sine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "60575b63eda84a73b36e05cd518af8af", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "645352d68c1e43a2901d7a5a38441903", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "64b798e9a4c44df7b7e77232387073f7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "26861d947b8f4748b5861cc572db1715" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TimeNode", + "m_ObjectId": "65351a9f63b24cd9805990286db58707", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Time", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1335.0001220703125, + "y": 645.0000610351563, + "width": 124.0, + "height": 173.0 + } + }, + "m_Slots": [ + { + "m_Id": "9200289cf8074b48bf0f15a19b461a67" + }, + { + "m_Id": "5e413326b3a942908944f3e4fe4e14b7" + }, + { + "m_Id": "bac6f5e0b4354741a53766ed10005b6c" + }, + { + "m_Id": "16270b081d9c4bb3a32577d87daf2221" + }, + { + "m_Id": "7d6eca2c889142b1be2a1f0743d60138" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6818cd5e20cd4305830edf0225dd4730", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "7cc65e01047b428d9499bb1c9d319505", + "m_Id": 0, + "m_DisplayName": "Color (1)", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7d6eca2c889142b1be2a1f0743d60138", + "m_Id": 4, + "m_DisplayName": "Smooth Delta", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smooth Delta", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "80c8b2b5079d45feb0599a5262463d98", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "826b5a6c80dc40c8bf257993b8aec49a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -846.0001220703125, + "y": 343.0000305175781, + "width": 208.00006103515626, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "18b55a13713242a590739d74dbfa9fbe" + }, + { + "m_Id": "3821d8b249774335bbad8b7666e2a756" + }, + { + "m_Id": "e298f1fb80224c41ac7ea2edd64fae17" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "86396fbe2e6546019e054772e1854384", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "8ee5340bbc8540738403058fcaa9b7d1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "c5aa3ac66b2d4be2b5ba0a1586b3abf3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9200289cf8074b48bf0f15a19b461a67", + "m_Id": 0, + "m_DisplayName": "Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.PositionNode", + "m_ObjectId": "a8c9eff1ea5241b584c018e0cba5af4a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1197.0, + "y": 232.0, + "width": 208.0, + "height": 314.0 + } + }, + "m_Slots": [ + { + "m_Id": "28d1014a5d08498688fe83c3240779f8" + } + ], + "synonyms": [ + "location" + ], + "m_Precision": 1, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 2, + "m_PositionSource": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b4b4c0b8c2d24cce88a10ac4d855c81b", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bac6f5e0b4354741a53766ed10005b6c", + "m_Id": 2, + "m_DisplayName": "Cosine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Cosine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "be732a7b424047fabecb80362a057d0a", + "m_Guid": { + "m_GuidSerialized": "ff9f0711-b3ef-4f58-acde-e99f670fa016" + }, + "m_Name": "Color", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Color", + "m_DefaultReferenceName": "_Color", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c5aa3ac66b2d4be2b5ba0a1586b3abf3", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ca14948edee745b7ac46501fb5b59788", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "3f434fee011f4ec5a49d96c679abea2c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cb01454f30904f4591adc943c8cded2e", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SineNode", + "m_ObjectId": "cbfa3a9df6f542a7b02c1dd4c1beaf80", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1211.0001220703125, + "y": 645.0000610351563, + "width": 208.0, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "2dc4db13886643fbb9c92b180172ca67" + }, + { + "m_Id": "430b1e34acea4743abec2c2bdc369178" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "d20462f621d541adb70fdca547886934", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "be732a7b424047fabecb80362a057d0a" + }, + { + "m_Id": "172ec1ecad414e37a49ed1a2e8f89d30" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d3624529857d4d65837d4e78b6c2d076", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e13b193ae4ce4a9c987ad302ce591e44", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "86396fbe2e6546019e054772e1854384" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e207123643774087a6e3d07b5a8e580b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e298f1fb80224c41ac7ea2edd64fae17", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e31ba3b8312940258ef741f9127a434f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "2678f43ff18b4329bb1866f9ae8c66e2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "e5538f52f957461ca47d41dec4eff60e", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f8589cdd9fbb4abcaa43aa65b94a22cd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "80c8b2b5079d45feb0599a5262463d98" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + diff --git a/Assets/Shaders/test2.shadergraph.meta b/Assets/Shaders/test2.shadergraph.meta new file mode 100644 index 0000000..ecec6a4 --- /dev/null +++ b/Assets/Shaders/test2.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: fb4a5dcf24b356b42a22208f6081695a +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/playerInteract.cs b/Assets/playerInteract.cs new file mode 100644 index 0000000..2bde02d --- /dev/null +++ b/Assets/playerInteract.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +public class playerInteract : MonoBehaviour +{ + +} diff --git a/Assets/playerInteract.cs.meta b/Assets/playerInteract.cs.meta new file mode 100644 index 0000000..488d702 --- /dev/null +++ b/Assets/playerInteract.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: e3fdf077090e86a49b31d7c997db98ec \ No newline at end of file diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index d11de73..fe50bde 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -14,7 +14,7 @@ PlayerSettings: accelerometerFrequency: 60 companyName: DefaultCompany productName: SparkProject - defaultCursor: {fileID: 0} + defaultCursor: {fileID: 2800000, guid: 6188cf6643f82b04cafc6ac69560dbdf, type: 3} cursorHotspot: {x: 0, y: 0} m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} m_ShowUnitySplashScreen: 1 diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index 3d1e289..b0a3ac1 100644 --- a/ProjectSettings/TagManager.asset +++ b/ProjectSettings/TagManager.asset @@ -6,6 +6,7 @@ TagManager: tags: - Enemy - Summon + - Ground layers: - Default - TransparentFX