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 0000000..adc15a7
Binary files /dev/null and b/Assets/2dSprits/cursor1.png differ
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 0000000..dc59309
Binary files /dev/null and b/Assets/2dSprits/cursor2.png differ
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:
+ k__BackingField:
+ k__BackingField: {fileID: -1327393707, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3}
+ type: 1
+ stackable: 0
+ maxStack: 1
+ currentStack: 1
+ k__BackingField: 0
+ 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 artifacts;
+ private List 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();
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();
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}
+ k__BackingField:
+ k__BackingField:
+ 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.SetInventoryType(ItemType.Artifact);
+ GameObject newItem = Instantiate(inventoryItemPrefab, newSlot.transform);
+ InventoryItem inventoryItem = newItem.GetComponent();
+ 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(out var playerControllert))
- playerController = playerControllert;
+ playerController = GetComponentInParent();
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();
- inventory = new Inventory(this);
+ skillUser = GetComponent();
+ 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();
healthBar = GetComponent();
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();
- 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 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 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(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:
+ k__BackingField: Healing
+ k__BackingField: "\u0425\u0438\u043B\u0438\u0442"
+ k__BackingField: {fileID: -1327393707, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3}
+ type: 1
+ stackable: 0
+ maxStack: 1
+ currentStack: 1
+ k__BackingField: 3
+ 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();
+
+ explosion.Initialise(LayerMask, Damage, ExplosionRadius, RepulsionForce);
+
+ Rigidbody bombRb = bomb.GetComponent();
+
+ 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:
+ k__BackingField: MagicBomb
+ k__BackingField:
+ k__BackingField: {fileID: -1460125226, guid: 754ea07d8d8111946b499d8e28fcd583, type: 3}
+ type: 1
+ stackable: 0
+ maxStack: 1
+ currentStack: 1
+ k__BackingField: 0
+ k__BackingField: 40
+ k__BackingField: 4
+ k__BackingField: 40
+ k__BackingField:
+ serializedVersion: 2
+ m_Bits: 64
+ 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();
+ 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