Compare commits
23 Commits
9eaa6517c3
...
InvSave
| Author | SHA1 | Date | |
|---|---|---|---|
| b1954dd40e | |||
| be8b9a987d | |||
| 5f55b04eba | |||
| fd4432fc6d | |||
| 029c6cf7ba | |||
| ca41eda129 | |||
| ec2dd764d4 | |||
| cd1633af54 | |||
| 82b7e7fbb2 | |||
| f032bb323a | |||
| f7e6a2e44b | |||
| ba8883786b | |||
| 1ed57d5c31 | |||
| f7734432cc | |||
| 6f7c3eaa9b | |||
| 26e2d0d1db | |||
| 1f2af9127e | |||
| 9b4be15690 | |||
| 09e7e26cbb | |||
| 037432c393 | |||
| 8727b6d949 | |||
| e0f3c3e580 | |||
| 194574ee65 |
+2
-2
@@ -45,7 +45,7 @@ Material:
|
|||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 2800000, guid: b883faee006af594480a183e2c37d229, type: 3}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MetallicGlossMap:
|
- _MetallicGlossMap:
|
||||||
@@ -108,7 +108,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.8018868, g: 0.8018868, b: 0.8018868, a: 1}
|
- _BaseColor: {r: 0.8018868, g: 0.8018868, b: 0.8018868, a: 1}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 0.8018868, g: 0.8018868, b: 0.8018868, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0, g: 0, b: 0, a: 1}
|
- _BaseColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ GameObject:
|
|||||||
- component: {fileID: 13646088}
|
- component: {fileID: 13646088}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: hands_coll:b_r_index3
|
m_Name: hands_coll:b_r_index3
|
||||||
m_TagString: Untagged
|
m_TagString: Hand
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
@@ -502,8 +502,8 @@ CapsuleCollider:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 157110}
|
m_GameObject: {fileID: 157110}
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_IsTrigger: 0
|
m_IsTrigger: 1
|
||||||
m_Enabled: 0
|
m_Enabled: 1
|
||||||
m_Radius: 0.01
|
m_Radius: 0.01
|
||||||
m_Height: 0.05
|
m_Height: 0.05
|
||||||
m_Direction: 2
|
m_Direction: 2
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ Material:
|
|||||||
RenderType: Transparent
|
RenderType: Transparent
|
||||||
disabledShaderPasses:
|
disabledShaderPasses:
|
||||||
- DepthOnly
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
m_SavedProperties:
|
m_SavedProperties:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TexEnvs:
|
m_TexEnvs:
|
||||||
@@ -109,7 +110,7 @@ Material:
|
|||||||
- _ZWrite: 0
|
- _ZWrite: 0
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.90344834, g: 1, b: 0, a: 0.78431374}
|
- _BaseColor: {r: 0.90344834, g: 1, b: 0, a: 0.78431374}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 0.90344834, g: 1, b: 0, a: 0.78431374}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ Material:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: PBR
|
m_Name: PBR
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
m_ShaderKeywords: _EMISSION _METALLICSPECGLOSSMAP _NORMALMAP _OCCLUSIONMAP
|
m_ShaderKeywords: _EMISSION
|
||||||
m_LightmapFlags: 1
|
m_LightmapFlags: 1
|
||||||
m_EnableInstancingVariants: 0
|
m_EnableInstancingVariants: 0
|
||||||
m_DoubleSidedGI: 0
|
m_DoubleSidedGI: 0
|
||||||
|
|||||||
+1
-1
@@ -108,7 +108,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.5612491, g: 0.61764705, b: 0.18620238, a: 1}
|
- _BaseColor: {r: 0.5612491, g: 0.61764705, b: 0.18620238, a: 1}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 0.5612491, g: 0.61764705, b: 0.18620235, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
+1
-1
@@ -108,7 +108,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.45882356, g: 0.517647, b: 0.07058821, a: 1}
|
- _BaseColor: {r: 0.45882356, g: 0.517647, b: 0.07058821, a: 1}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 0.45882356, g: 0.517647, b: 0.07058818, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
+1
-1
@@ -108,7 +108,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.828, g: 0.197287, b: 0, a: 1}
|
- _BaseColor: {r: 0.828, g: 0.197287, b: 0, a: 1}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 0.828, g: 0.19728696, b: 0, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Material:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: Red Beam
|
m_Name: Red Beam
|
||||||
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
|
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
|
||||||
m_ShaderKeywords: _EMISSION _GLOSSINESS_FROM_BASE_ALPHA _SPECULAR_COLOR
|
m_ShaderKeywords: _EMISSION
|
||||||
m_LightmapFlags: 1
|
m_LightmapFlags: 1
|
||||||
m_EnableInstancingVariants: 0
|
m_EnableInstancingVariants: 0
|
||||||
m_DoubleSidedGI: 0
|
m_DoubleSidedGI: 0
|
||||||
@@ -78,7 +78,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 1, g: 0, b: 0, a: 1}
|
- _BaseColor: {r: 1, g: 0, b: 0, a: 1}
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
+1
-1
@@ -122,7 +122,7 @@ Material:
|
|||||||
- _WavingTint: {r: 1, g: 1, b: 1, a: 1}
|
- _WavingTint: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _Wind: {r: 1, g: 1, b: 4, a: 8}
|
- _Wind: {r: 1, g: 1, b: 4, a: 8}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
--- !u!114 &1222479040574472917
|
--- !u!114 &3157072690679539847
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 11
|
m_ObjectHideFlags: 11
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-7458032677251445808
|
--- !u!114 &-5181856834859275866
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 11
|
m_ObjectHideFlags: 11
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
|||||||
+13
-13
@@ -1,18 +1,5 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-2762967392186058974
|
|
||||||
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: 5
|
|
||||||
--- !u!21 &2100000
|
--- !u!21 &2100000
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
@@ -95,3 +82,16 @@ Material:
|
|||||||
- _Color: {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}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
--- !u!114 &5603016075464539001
|
||||||
|
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: 5
|
||||||
|
|||||||
+13
-13
@@ -1,18 +1,5 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-8230533163155615457
|
|
||||||
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: 5
|
|
||||||
--- !u!21 &2100000
|
--- !u!21 &2100000
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
@@ -178,3 +165,16 @@ Material:
|
|||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
|
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
--- !u!114 &2903791061945988491
|
||||||
|
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: 5
|
||||||
|
|||||||
+13
-13
@@ -1,18 +1,5 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-5131249115176342388
|
|
||||||
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: 5
|
|
||||||
--- !u!21 &2100000
|
--- !u!21 &2100000
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
@@ -194,3 +181,16 @@ Material:
|
|||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
|
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
--- !u!114 &6902619616048362596
|
||||||
|
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: 5
|
||||||
|
|||||||
+13
-13
@@ -1,18 +1,5 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-8379489665063475036
|
|
||||||
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: 5
|
|
||||||
--- !u!21 &2100000
|
--- !u!21 &2100000
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
@@ -186,3 +173,16 @@ Material:
|
|||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
|
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
--- !u!114 &379573167805043484
|
||||||
|
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: 5
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-7685960129097434148
|
--- !u!114 &-5269009578845786356
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 11
|
m_ObjectHideFlags: 11
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!114 &-732951968300167532
|
--- !u!114 &-1803904315105783093
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 11
|
m_ObjectHideFlags: 11
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.XR.Interaction.Toolkit;
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
[RequireComponent(typeof(XRSocketInteractor))]
|
||||||
|
public class PortalInteractor : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 064df851dbd93e34297cae798293e121
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
<<<<<<<< HEAD:Assets/Scenes/Shumpei/MenuScene.unity.meta
|
||||||
|
guid: 8eb805c8ac3b6ff41a6002372d160f1f
|
||||||
|
========
|
||||||
|
guid: 7132a8e595d20114aa50d2f143f253d0
|
||||||
|
folderAsset: yes
|
||||||
|
>>>>>>>> origin/slimeAI:Assets/Project Files/Animations/Arlo.meta
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7862259c182c7f0488c1e8a56b2d0ae7
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 9100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,483 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &8436190047659544114
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8431058975139358266}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EyeBall
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8431058975139358266
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436190047659544114}
|
||||||
|
m_LocalRotation: {x: 0.44996268, y: 0.5454664, z: -0.44996268, w: 0.5454664}
|
||||||
|
m_LocalPosition: {x: -0.12632965, y: 3.5527135e-16, z: 1.0995774e-17}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439517562119907010}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436227201186145988
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439512495488244804}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Spine01
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439512495488244804
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436227201186145988}
|
||||||
|
m_LocalRotation: {x: -5.551115e-17, y: -4.3368087e-19, z: -0.2246773, w: 0.97443324}
|
||||||
|
m_LocalPosition: {x: -0.22764134, y: -5.7731595e-17, z: 7.533981e-17}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8439494257338967284}
|
||||||
|
- {fileID: 8430886019108328556}
|
||||||
|
- {fileID: 8439396685985795126}
|
||||||
|
m_Father: {fileID: 8439521210071859164}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436405828936134978
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439297195764387376}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Crown
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439297195764387376
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436405828936134978}
|
||||||
|
m_LocalRotation: {x: 0.12996013, y: -0.69506145, z: 0.12996013, w: 0.69506145}
|
||||||
|
m_LocalPosition: {x: -0.29759654, y: 1.7763567e-16, z: 1.7914223e-16}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439494257338967284}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436476053253147054
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439426448234693558}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: UpperEyeCover
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439426448234693558
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436476053253147054}
|
||||||
|
m_LocalRotation: {x: 0.44996268, y: 0.5454664, z: -0.44996268, w: 0.5454664}
|
||||||
|
m_LocalPosition: {x: -0.12632965, y: 2.1316282e-16, z: 1.0995774e-17}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439517562119907010}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436517211449388664
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439248956704509810}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: BottomEyeCover
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439248956704509810
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436517211449388664}
|
||||||
|
m_LocalRotation: {x: 0.44996268, y: 0.5454664, z: -0.44996268, w: 0.5454664}
|
||||||
|
m_LocalPosition: {x: -0.12632965, y: 1.1368684e-15, z: 1.0995774e-17}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439517562119907010}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436776535237543898
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439236181366124486}
|
||||||
|
- component: {fileID: 8428960127237688112}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Slime
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439236181366124486
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436776535237543898}
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: -0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439413668953451466}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!137 &8428960127237688112
|
||||||
|
SkinnedMeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436776535237543898}
|
||||||
|
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: 3
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: d357a802e5ef4d44d829d89dfb1a341c, 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
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Quality: 0
|
||||||
|
m_UpdateWhenOffscreen: 0
|
||||||
|
m_SkinnedMotionVectors: 1
|
||||||
|
m_Mesh: {fileID: 4300000, guid: 032e9c3d6b8f7bd4281b52741574f3af, type: 3}
|
||||||
|
m_Bones:
|
||||||
|
- {fileID: 8439521210071859164}
|
||||||
|
- {fileID: 8439512495488244804}
|
||||||
|
- {fileID: 8439494257338967284}
|
||||||
|
- {fileID: 8439297195764387376}
|
||||||
|
- {fileID: 8439517562119907010}
|
||||||
|
- {fileID: 8439426448234693558}
|
||||||
|
- {fileID: 8431058975139358266}
|
||||||
|
- {fileID: 8439248956704509810}
|
||||||
|
- {fileID: 8430886019108328556}
|
||||||
|
- {fileID: 8439396685985795126}
|
||||||
|
m_BlendShapeWeights: []
|
||||||
|
m_RootBone: {fileID: 8439521210071859164}
|
||||||
|
m_AABB:
|
||||||
|
m_Center: {x: -0.3588662, y: 0.1749603, z: 0.000000059604645}
|
||||||
|
m_Extent: {x: 0.62954795, y: 0.6683546, z: 0.4895594}
|
||||||
|
m_DirtyAABB: 0
|
||||||
|
--- !u!1 &8436836656422519216
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439521210071859164}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Body
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439521210071859164
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436836656422519216}
|
||||||
|
m_LocalRotation: {x: -0.39340413, y: 0.5875655, z: -0.39340413, w: 0.5875655}
|
||||||
|
m_LocalPosition: {x: 1.5037661e-32, y: 0.0631712, z: -0.008183928}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8439512495488244804}
|
||||||
|
m_Father: {fileID: 8439413668953451466}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436851742513957438
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439494257338967284}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Head
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439494257338967284
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436851742513957438}
|
||||||
|
m_LocalRotation: {x: -5.3776428e-17, y: 1.6653345e-16, z: -0.15302908, w: 0.9882217}
|
||||||
|
m_LocalPosition: {x: -0.2780328, y: -1.7763568e-17, z: 1.2912811e-16}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8439297195764387376}
|
||||||
|
- {fileID: 8439517562119907010}
|
||||||
|
m_Father: {fileID: 8439512495488244804}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8436876335997403404
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439396685985795126}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Side_R
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439396685985795126
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8436876335997403404}
|
||||||
|
m_LocalRotation: {x: 0.0220648, y: -0.70676243, z: 0.0220648, w: 0.70676243}
|
||||||
|
m_LocalPosition: {x: -0.27215227, y: 0.12827092, z: 0.305791}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439512495488244804}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8437010424349675124
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439413668953451466}
|
||||||
|
- component: {fileID: 8377414142725635096}
|
||||||
|
- component: {fileID: 9217037737240071080}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: SlimePBR
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439413668953451466
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8437010424349675124}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 1.3906298, y: 0.00000023841858, z: -0.086076975}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8439521210071859164}
|
||||||
|
- {fileID: 8439236181366124486}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!95 &8377414142725635096
|
||||||
|
Animator:
|
||||||
|
serializedVersion: 4
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8437010424349675124}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Avatar: {fileID: 9000000, guid: 032e9c3d6b8f7bd4281b52741574f3af, type: 3}
|
||||||
|
m_Controller: {fileID: 9100000, guid: 7862259c182c7f0488c1e8a56b2d0ae7, type: 2}
|
||||||
|
m_CullingMode: 1
|
||||||
|
m_UpdateMode: 0
|
||||||
|
m_ApplyRootMotion: 0
|
||||||
|
m_LinearVelocityBlending: 0
|
||||||
|
m_StabilizeFeet: 0
|
||||||
|
m_WarningMessage:
|
||||||
|
m_HasTransformHierarchy: 1
|
||||||
|
m_AllowConstantClipSamplingOptimization: 1
|
||||||
|
m_KeepAnimatorControllerStateOnDisable: 0
|
||||||
|
--- !u!114 &9217037737240071080
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8437010424349675124}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2a6f17609e4d7c441b8f85c0f90c1a13, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1 &8437097380876049792
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8439517562119907010}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EyeCTRL
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8439517562119907010
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8437097380876049792}
|
||||||
|
m_LocalRotation: {x: 0.4837256, y: 0.8752197, z: 8.989413e-17, w: -2.8923308e-16}
|
||||||
|
m_LocalPosition: {x: 0.05909794, y: -0.1357536, z: -8.4168956e-17}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8439248956704509810}
|
||||||
|
- {fileID: 8431058975139358266}
|
||||||
|
- {fileID: 8439426448234693558}
|
||||||
|
m_Father: {fileID: 8439494257338967284}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8437362797197920884
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8430886019108328556}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Side_L
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8430886019108328556
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8437362797197920884}
|
||||||
|
m_LocalRotation: {x: 0.0220648, y: -0.70676243, z: 0.0220648, w: 0.70676243}
|
||||||
|
m_LocalPosition: {x: -0.27215242, y: 0.12827094, z: -0.30579144}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8439512495488244804}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
<<<<<<<< HEAD:Assets/RECURSOS YOS UNITY.meta
|
||||||
|
guid: 28785ec045ec00946ab767b14c8f4c6d
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
========
|
||||||
|
guid: 288eb0a3190dc75419059ff7b4b70aa0
|
||||||
|
PrefabImporter:
|
||||||
|
>>>>>>>> origin/slimeAI:Assets/Project Files/Prefabs/Arlo/SlimePBR.prefab.meta
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -4835,6 +4835,8 @@ GameObject:
|
|||||||
- component: {fileID: 824121554007831541}
|
- component: {fileID: 824121554007831541}
|
||||||
- component: {fileID: 3271421586109646936}
|
- component: {fileID: 3271421586109646936}
|
||||||
- component: {fileID: 6090694805862981561}
|
- component: {fileID: 6090694805862981561}
|
||||||
|
- component: {fileID: 6268334591715512481}
|
||||||
|
- component: {fileID: 7195648623186244198}
|
||||||
m_Layer: 10
|
m_Layer: 10
|
||||||
m_Name: IceBolt
|
m_Name: IceBolt
|
||||||
m_TagString: IceBolt
|
m_TagString: IceBolt
|
||||||
@@ -4897,7 +4899,7 @@ SphereCollider:
|
|||||||
m_IsTrigger: 0
|
m_IsTrigger: 0
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Radius: 1
|
m_Radius: 0.5
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!135 &6090694805862981561
|
--- !u!135 &6090694805862981561
|
||||||
SphereCollider:
|
SphereCollider:
|
||||||
@@ -4910,8 +4912,58 @@ SphereCollider:
|
|||||||
m_IsTrigger: 1
|
m_IsTrigger: 1
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Radius: 1
|
m_Radius: 0.5
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &6268334591715512481
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3928666337405863711}
|
||||||
|
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &7195648623186244198
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3928666337405863711}
|
||||||
|
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_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: bd0bb729cb6159b4ab21c5f62cad24ee, type: 3}
|
||||||
|
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!1 &4403856838497526616
|
--- !u!1 &4403856838497526616
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -0,0 +1,153 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &5902822188982115047
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5902822188982115046}
|
||||||
|
- component: {fileID: 7607271486909413448}
|
||||||
|
- component: {fileID: 1763487140054237992}
|
||||||
|
- component: {fileID: 5902822188982115044}
|
||||||
|
- component: {fileID: 5902822188982115045}
|
||||||
|
m_Layer: 21
|
||||||
|
m_Name: PortalActivator
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5902822188982115046
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5902822188982115047}
|
||||||
|
m_LocalRotation: {x: -0, y: 0.69779044, z: -0, w: 0.7163019}
|
||||||
|
m_LocalPosition: {x: 1.96, y: 1.43, z: -1.149}
|
||||||
|
m_LocalScale: {x: 0.40000004, y: 0.4, z: 0.40000004}
|
||||||
|
m_ConstrainProportionsScale: 1
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &7607271486909413448
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5902822188982115047}
|
||||||
|
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &1763487140054237992
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5902822188982115047}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: bcd4c7c7522235044b0026229d01d661, 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 &5902822188982115044
|
||||||
|
SphereCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5902822188982115047}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 1
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &5902822188982115045
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5902822188982115047}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 60523e0647cc6ab43acc73cb266a32a7, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_InteractionManager: {fileID: 0}
|
||||||
|
m_InteractionLayerMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_InteractionLayers:
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_AttachTransform: {fileID: 0}
|
||||||
|
m_KeepSelectedTargetValid: 1
|
||||||
|
m_StartingSelectedInteractable: {fileID: 0}
|
||||||
|
m_HoverEntered:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_HoverExited:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_SelectEntered:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_SelectExited:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnHoverEntered:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnHoverExited:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnSelectEntered:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnSelectExited:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_ShowInteractableHoverMeshes: 1
|
||||||
|
m_InteractableHoverMeshMaterial: {fileID: 2100000, guid: e944091e9e7c68f438499bc41f182b6d,
|
||||||
|
type: 2}
|
||||||
|
m_InteractableCantHoverMeshMaterial: {fileID: 2100000, guid: 4cf3d6647a5c3ef4da704441f4015387,
|
||||||
|
type: 2}
|
||||||
|
m_SocketActive: 1
|
||||||
|
m_InteractableHoverScale: 1
|
||||||
|
m_RecycleDelayTime: 1
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 76e270eb5751f7e4ea45ed3b158d050f
|
guid: ae879abf9b2ef5849ae218d5c4de4945
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &8183020133482818824
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8183020133482637934}
|
||||||
|
- component: {fileID: 8183020133483952674}
|
||||||
|
- component: {fileID: 8183020133484680894}
|
||||||
|
- component: {fileID: 8183020133918107436}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EssenceWell
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8183020133482637934
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8183020133482818824}
|
||||||
|
m_LocalRotation: {x: 0.000000115202326, y: 0.7071068, z: 0.7071068, w: -0.000000115202326}
|
||||||
|
m_LocalPosition: {x: -10.25, y: 1.47, z: -12.115}
|
||||||
|
m_LocalScale: {x: 10, y: 10, z: 10}
|
||||||
|
m_ConstrainProportionsScale: 1
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &8183020133483952674
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8183020133482818824}
|
||||||
|
m_Mesh: {fileID: 4300122, guid: 7374575f12d49ba459e91009f7a9ec62, type: 3}
|
||||||
|
--- !u!23 &8183020133484680894
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8183020133482818824}
|
||||||
|
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_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: b27fa8aa11d99d440bab56b1de24981f, 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!114 &8183020133918107436
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8183020133482818824}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 580a2bc767950d54d9fdf84752500d7f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
node: {fileID: 3467985268477833302, guid: 215fe2a51d12ecc43ba8f86d3dc3ae54, type: 3}
|
||||||
|
numberOfNodes: 5
|
||||||
|
spawnDelay: 1
|
||||||
|
despawnTime: 2
|
||||||
|
rightDistance: 0.1
|
||||||
|
maxUp: 0.2
|
||||||
|
minDown: -0.2
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ef2ea3e86cf37844f9ab6a9093d855b7
|
guid: c52ee40e56d869645af73fd6f39c1323
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
@@ -157,12 +157,12 @@ MonoBehaviour:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 3757395767074346460}
|
m_GameObject: {fileID: 3757395767074346460}
|
||||||
m_Enabled: 1
|
m_Enabled: 0
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: ee8103568a01d804d89cb1fc1dff91eb, type: 3}
|
m_Script: {fileID: 11500000, guid: ee8103568a01d804d89cb1fc1dff91eb, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
particles: {fileID: 8844865646353305354}
|
particles: {fileID: 0}
|
||||||
flySpeed: 10
|
flySpeed: 10
|
||||||
testForce: 1000
|
testForce: 1000
|
||||||
--- !u!114 &3757395767037568670
|
--- !u!114 &3757395767037568670
|
||||||
@@ -379,9 +379,3 @@ Transform:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6456652935746308080}
|
m_PrefabInstance: {fileID: 6456652935746308080}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!198 &8844865646353305354 stripped
|
|
||||||
ParticleSystem:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 2532683062447540474, guid: 16595acc1c95e1843870f6d5ed6b3ad8,
|
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 6456652935746308080}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: c5d51a2f14dbd754986192f475aa6719
|
guid: ae343c9db3f764a4fb226d043e7a4743
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a72fc9de03049aa4c886d2034bf938aa
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2f6b9693c8108f24db357c4f551127af
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+5510
-5349
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f2183625589431345976ac92219b2b97
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1001 &257613199430467881
|
|
||||||
PrefabInstance:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
m_TransformParent: {fileID: 0}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_RootOrder
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168788, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851654700168790, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: Portal_Purple
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851655031599332, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: player
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851655031599332, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: linkedPortal
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 2664851655392724835, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Materials.Array.data[0]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 2100000, guid: fec29ec9aeff5d148ae4ce39ab5981f0, type: 2}
|
|
||||||
- target: {fileID: 2664851656537753515, guid: ef2ea3e86cf37844f9ab6a9093d855b7,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_InteractionManager
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: ef2ea3e86cf37844f9ab6a9093d855b7, type: 3}
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1001 &3086217307916794381
|
|
||||||
PrefabInstance:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
m_TransformParent: {fileID: 0}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 1022042495959285158, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_InteractionManager
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_RootOrder
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251417, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496337251419, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: Portal_Red
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496669043433, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: player
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496669043433, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: linkedPortal
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042496961707374, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: m_Materials.Array.data[0]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 2100000, guid: bf0da4907b1b1174d82fea8c818ebf1e, type: 2}
|
|
||||||
- target: {fileID: 1022042497026309397, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: InitialModule.startColor.maxColor.b
|
|
||||||
value: 0.17647058
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042497026309397, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: InitialModule.startColor.maxColor.g
|
|
||||||
value: 0.3111662
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042497026309397, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: InitialModule.startColor.maxColor.r
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042497026309397, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: InitialModule.startColor.minColor.b
|
|
||||||
value: 0.32549024
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042497026309397, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: InitialModule.startColor.minColor.g
|
|
||||||
value: 0.7882222
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 1022042497026309397, guid: c5d51a2f14dbd754986192f475aa6719,
|
|
||||||
type: 3}
|
|
||||||
propertyPath: InitialModule.startColor.minColor.r
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: c5d51a2f14dbd754986192f475aa6719, type: 3}
|
|
||||||
@@ -36,4 +36,17 @@ public class CuttableTree : MonoBehaviour
|
|||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
void OnCollisionEnter(Collision collision)
|
||||||
|
{
|
||||||
|
if (collision.gameObject.tag == "Cutter")
|
||||||
|
{
|
||||||
|
rotation = transform.rotation;
|
||||||
|
rotation *= Quaternion.AngleAxis(20, Vector3.up);
|
||||||
|
Instantiate(stumpPrefab, transform.position, rotation);
|
||||||
|
Instantiate(logPrefab, transform.position + new Vector3(0, 1, 0), rotation);
|
||||||
|
onCut.Invoke();
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class SlimeAI : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
Animator animator;
|
||||||
|
float playerDistance;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
animator = GetComponent<Animator>();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2a6f17609e4d7c441b8f85c0f90c1a13
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.XR;
|
||||||
|
using UnityEngine.XR.Interaction.Toolkit;
|
||||||
|
using TMPro; // Add the TextMesh Pro namespace to access the various functions.
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEngine.InputSystem;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public class HandAnim : MonoBehaviour
|
||||||
|
{
|
||||||
|
public Animator m_animator = null;
|
||||||
|
[Header("Input")]
|
||||||
|
[SerializeField] public InputActionProperty GripAction;
|
||||||
|
[SerializeField] public InputActionProperty TriggerAction;
|
||||||
|
[SerializeField] public InputActionProperty IndexAction;
|
||||||
|
[SerializeField] public InputActionProperty ThumbAction;
|
||||||
|
|
||||||
|
|
||||||
|
public const string ANIM_LAYER_NAME_POINT = "Point Layer";
|
||||||
|
public const string ANIM_LAYER_NAME_THUMB = "Thumb Layer";
|
||||||
|
public const string ANIM_PARAM_NAME_FLEX = "Flex";
|
||||||
|
public const string ANIM_PARAM_NAME_POSE = "Pose";
|
||||||
|
|
||||||
|
private int m_animLayerIndexThumb = -1;
|
||||||
|
private int m_animLayerIndexPoint = -1;
|
||||||
|
private int m_animParamIndexFlex = -1;
|
||||||
|
private int m_animParamIndexPose = -1;
|
||||||
|
private Collider[] m_colliders = null;
|
||||||
|
|
||||||
|
public float anim_frames = 4f;
|
||||||
|
private float grip_state = 0f;
|
||||||
|
private float trigger_state = 0f;
|
||||||
|
private float triggerCap_state = 0f;
|
||||||
|
private float thumbCap_state = 0f;
|
||||||
|
|
||||||
|
private void Reset()
|
||||||
|
{
|
||||||
|
m_animator = GetComponentInChildren<Animator>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
GripAction.action.performed += GripActionPerformed;
|
||||||
|
TriggerAction.action.performed += TriggerActionPerformed;
|
||||||
|
IndexAction.action.performed += IndexActionPerformed;
|
||||||
|
ThumbAction.action.performed += ThumbActionPerformed;
|
||||||
|
GripAction.action.Enable();
|
||||||
|
TriggerAction.action.Enable();
|
||||||
|
IndexAction.action.Enable();
|
||||||
|
ThumbAction.action.Enable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
m_colliders = this.GetComponentsInChildren<Collider>().Where(childCollider => !childCollider.isTrigger).ToArray();
|
||||||
|
for (int i = 0; i < m_colliders.Length; ++i)
|
||||||
|
{
|
||||||
|
Collider collider = m_colliders[i];
|
||||||
|
// collider.transform.localScale = new Vector3(COLLIDER_SCALE_MIN, COLLIDER_SCALE_MIN, COLLIDER_SCALE_MIN);
|
||||||
|
collider.enabled = true;
|
||||||
|
}
|
||||||
|
m_animLayerIndexPoint = m_animator.GetLayerIndex(ANIM_LAYER_NAME_POINT);
|
||||||
|
m_animLayerIndexThumb = m_animator.GetLayerIndex(ANIM_LAYER_NAME_THUMB);
|
||||||
|
m_animParamIndexFlex = Animator.StringToHash(ANIM_PARAM_NAME_FLEX);
|
||||||
|
m_animParamIndexPose = Animator.StringToHash(ANIM_PARAM_NAME_POSE);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ThumbActionPerformed(InputAction.CallbackContext obj)
|
||||||
|
{
|
||||||
|
CalculateState(obj.ReadValue<float>(), ref thumbCap_state);
|
||||||
|
m_animator.SetLayerWeight(m_animLayerIndexThumb, 1f - thumbCap_state);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void IndexActionPerformed(InputAction.CallbackContext obj)
|
||||||
|
{
|
||||||
|
CalculateState(obj.ReadValue<float>(), ref triggerCap_state);
|
||||||
|
m_animator.SetLayerWeight(m_animLayerIndexPoint, 1f - triggerCap_state);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TriggerActionPerformed(InputAction.CallbackContext obj)
|
||||||
|
{
|
||||||
|
CalculateState(obj.ReadValue<float>(), ref trigger_state);
|
||||||
|
m_animator.SetFloat("Pinch", trigger_state);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GripActionPerformed(InputAction.CallbackContext obj)
|
||||||
|
{
|
||||||
|
//Debug.Log("grip");
|
||||||
|
CalculateState(obj.ReadValue<float>(), ref grip_state);
|
||||||
|
m_animator.SetFloat(m_animParamIndexFlex, grip_state);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CalculateState(float value, ref float state)
|
||||||
|
{
|
||||||
|
var delta = value - state;
|
||||||
|
if (delta > 0f)
|
||||||
|
{
|
||||||
|
state = Mathf.Clamp(state + 1 / anim_frames, 0f, value);
|
||||||
|
}
|
||||||
|
else if (delta < 0f)
|
||||||
|
{
|
||||||
|
state = Mathf.Clamp(state - 1 / anim_frames, value, 1f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
state = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 158ebba8614f70a47b5379affd3d7b17
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,17 +1,22 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
[Serializable]
|
|
||||||
public class Inventory : MonoBehaviour
|
public class Inventory : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
//perhaps use these additional slots for holsters attached to the player?
|
||||||
public List<InventorySlot> additionalSlots;
|
public List<InventorySlot> additionalSlots;
|
||||||
|
|
||||||
public GameObject itemContainerPrefab;
|
public GameObject itemContainerPrefab;
|
||||||
|
|
||||||
private List<InventorySlot> _inventorySlots;
|
private List<InventorySlot> _inventorySlots;
|
||||||
|
|
||||||
|
public InventorySaveData inventorySaveData;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_inventorySlots = new List<InventorySlot>();
|
_inventorySlots = new List<InventorySlot>();
|
||||||
@@ -20,10 +25,15 @@ public class Inventory : MonoBehaviour
|
|||||||
inventorySlot.SetParentInventory(this);
|
inventorySlot.SetParentInventory(this);
|
||||||
_inventorySlots.Add(inventorySlot);
|
_inventorySlots.Add(inventorySlot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debug.Log(_inventorySlots.Count);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
|
SceneManager.sceneLoaded += OnSceneLoaded;
|
||||||
|
|
||||||
|
|
||||||
var inventorySlotsInChildren = GetComponentsInChildren<InventorySlot>();
|
var inventorySlotsInChildren = GetComponentsInChildren<InventorySlot>();
|
||||||
foreach (var inventorySlot in inventorySlotsInChildren)
|
foreach (var inventorySlot in inventorySlotsInChildren)
|
||||||
{
|
{
|
||||||
@@ -32,6 +42,12 @@ public class Inventory : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
SceneManager.sceneLoaded -= OnSceneLoaded;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public bool AddItem(ItemData item)
|
public bool AddItem(ItemData item)
|
||||||
{
|
{
|
||||||
if (item.canStack)
|
if (item.canStack)
|
||||||
@@ -39,16 +55,17 @@ public class Inventory : MonoBehaviour
|
|||||||
return AddItem(ConvertToInventoryItem(item));
|
return AddItem(ConvertToInventoryItem(item));
|
||||||
}
|
}
|
||||||
|
|
||||||
return AddToFirstOpenSlot(item.gameObject);
|
return AddToFirstOpenSlot(item.prefab.gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AddItem(InventoryItem item)
|
public bool AddItem(InventoryItem item)
|
||||||
{
|
{
|
||||||
|
|
||||||
//Stacks the item if it already exists in the inventory.
|
//Stacks the item if it already exists in the inventory.
|
||||||
foreach (var inventorySlot in _inventorySlots.Where(inventorySlot =>
|
foreach (var inventorySlot in _inventorySlots.Where(inventorySlot =>
|
||||||
inventorySlot.ContainsItem(item.GetItemid())))
|
inventorySlot.ContainsItem(item.GetItemid())))
|
||||||
{
|
{
|
||||||
inventorySlot.GetItem().ChangeCount(item.Count);
|
inventorySlot.GetItem().ChangeCount(item.saveData.count);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,11 +84,91 @@ public class Inventory : MonoBehaviour
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddToSpecificSlot(GameObject item, int slot)
|
||||||
|
{
|
||||||
|
_inventorySlots[slot].AssignItem(item);
|
||||||
|
}
|
||||||
|
|
||||||
private InventoryItem ConvertToInventoryItem(ItemData item)
|
private InventoryItem ConvertToInventoryItem(ItemData item)
|
||||||
{
|
{
|
||||||
var inventoryItem = Instantiate(itemContainerPrefab, transform);
|
var inventoryItem = Instantiate(itemContainerPrefab, transform);
|
||||||
itemContainerPrefab.GetComponent<InventoryItem>().itemPrefab = item.gameObject;
|
itemContainerPrefab.GetComponent<InventoryItem>().itemPrefab = item.prefab.gameObject;
|
||||||
|
|
||||||
return inventoryItem.gameObject.GetComponent<InventoryItem>();
|
return inventoryItem.gameObject.GetComponent<InventoryItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void SaveInventory()
|
||||||
|
{
|
||||||
|
inventorySaveData.inventoryContents.Clear();
|
||||||
|
foreach (var inventoryItem in _inventorySlots.Select(inventorySlot => inventorySlot.GetItem()))
|
||||||
|
{
|
||||||
|
//adds an itemsavedata to the list if it exists or an empty one if it doesnt
|
||||||
|
inventorySaveData.inventoryContents.Add(inventoryItem != null
|
||||||
|
? inventoryItem.saveData
|
||||||
|
: new ItemSaveData());
|
||||||
|
}
|
||||||
|
|
||||||
|
var json = JsonUtility.ToJson(inventorySaveData);
|
||||||
|
Debug.Log(json);
|
||||||
|
using var sw = new StreamWriter(Path.Combine(Application.persistentDataPath, "invSave.dat"));
|
||||||
|
sw.Write(json);
|
||||||
|
|
||||||
|
|
||||||
|
Debug.Log("Inv data saved!");
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerator LoadInventory()
|
||||||
|
{
|
||||||
|
//Wait for 1 second after loading the scene to prevent missing prefabs. (1 second delay might also break something in the future)
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(1);
|
||||||
|
//todo make this modular, currently only supports one inventory, although the slots can be anywhere.
|
||||||
|
if (File.Exists(Path.Combine(Application.persistentDataPath, "invSave.dat")))
|
||||||
|
{
|
||||||
|
var saveData = JsonUtility.FromJson<InventorySaveData>(File.ReadAllText(Path.Combine(Application.persistentDataPath, "invSave.dat")));
|
||||||
|
Debug.Log(saveData);
|
||||||
|
Debug.Log("Inv data loaded! total "+saveData.inventoryContents.Count);
|
||||||
|
|
||||||
|
|
||||||
|
for (var i = 0; i < saveData.inventoryContents.Count; i++)
|
||||||
|
{
|
||||||
|
//prevents overwriting inventory slots when there is something already in there.
|
||||||
|
//if (_inventorySlots[i]._itemInSlot != null) continue;
|
||||||
|
|
||||||
|
var data = saveData.inventoryContents[i];
|
||||||
|
|
||||||
|
//if there isnt an item in the slot the count is 0
|
||||||
|
Debug.Log(data.assetPath + " "+data.count);
|
||||||
|
if (data.count == 0) continue;
|
||||||
|
|
||||||
|
//Loads the prefab from resources folder
|
||||||
|
var load = Resources.Load(data.assetPath, typeof(GameObject)) as GameObject;
|
||||||
|
if (load == null)
|
||||||
|
{
|
||||||
|
Debug.LogError("Didn't find a prefab at " + data.assetPath);
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Debug.Log(load);
|
||||||
|
AddToSpecificSlot(load, i);
|
||||||
|
|
||||||
|
//sets the count after the item has been converted into inventoryitem
|
||||||
|
if (load.GetComponent<ItemData>().canStack) _inventorySlots[i]._itemInSlot.GetComponent<InventoryItem>().saveData.count = data.count;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Debug.LogError("There is no save data!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||||
|
{
|
||||||
|
Debug.Log("OnSceneLoaded: " + scene.name);
|
||||||
|
|
||||||
|
//primitive check to only load the inventory when you are in the home scene.
|
||||||
|
if (scene.name.Contains("Homebase")) StartCoroutine(LoadInventory());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -4,16 +4,14 @@ using System.Collections.Generic;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.XR.Interaction.Toolkit;
|
using UnityEngine.XR.Interaction.Toolkit;
|
||||||
|
|
||||||
[Serializable]
|
|
||||||
[RequireComponent(typeof(XRSocketInteractor))]
|
[RequireComponent(typeof(XRSocketInteractor))]
|
||||||
public class InventorySlot : MonoBehaviour
|
public class InventorySlot : MonoBehaviour
|
||||||
{
|
{
|
||||||
private XRSocketInteractor xrSocketInteractor;
|
private XRSocketInteractor xrSocketInteractor;
|
||||||
|
|
||||||
private GameObject _itemInSlot;
|
public GameObject _itemInSlot;
|
||||||
|
|
||||||
private Inventory _parentInventory;
|
private Inventory _parentInventory;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
xrSocketInteractor = GetComponent<XRSocketInteractor>();
|
xrSocketInteractor = GetComponent<XRSocketInteractor>();
|
||||||
@@ -35,6 +33,7 @@ public class InventorySlot : MonoBehaviour
|
|||||||
if (_itemInSlot.GetComponent<InventoryItem>() == null) return;
|
if (_itemInSlot.GetComponent<InventoryItem>() == null) return;
|
||||||
if (_itemInSlot == args.interactableObject.transform.gameObject) return;
|
if (_itemInSlot == args.interactableObject.transform.gameObject) return;
|
||||||
|
|
||||||
|
|
||||||
//Debug.Log("hoverenter "+args.interactableObject + " " + xrSocketInteractor.hasHover + " " + xrSocketInteractor.hasSelection);
|
//Debug.Log("hoverenter "+args.interactableObject + " " + xrSocketInteractor.hasHover + " " + xrSocketInteractor.hasSelection);
|
||||||
|
|
||||||
var newItem = args.interactableObject.transform.gameObject;
|
var newItem = args.interactableObject.transform.gameObject;
|
||||||
@@ -47,7 +46,7 @@ public class InventorySlot : MonoBehaviour
|
|||||||
|
|
||||||
if (inventoryItem != null)
|
if (inventoryItem != null)
|
||||||
{
|
{
|
||||||
_itemInSlot.GetComponent<InventoryItem>().ChangeCount(inventoryItem.Count);
|
_itemInSlot.GetComponent<InventoryItem>().ChangeCount(inventoryItem.saveData.count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -70,11 +69,13 @@ public class InventorySlot : MonoBehaviour
|
|||||||
private void SelectEnter(SelectEnterEventArgs args)
|
private void SelectEnter(SelectEnterEventArgs args)
|
||||||
{
|
{
|
||||||
Debug.Log("Added to slot item " + _itemInSlot);
|
Debug.Log("Added to slot item " + _itemInSlot);
|
||||||
|
|
||||||
var newItem = args.interactableObject.transform.gameObject;
|
var newItem = args.interactableObject.transform.gameObject;
|
||||||
|
|
||||||
|
//todo: fix ones that cant stack
|
||||||
|
|
||||||
//Converts the item into a inventory item
|
//Converts the item into a inventory item
|
||||||
if (newItem.GetComponent<InventoryItem>() == null && newItem.GetComponent<ItemData>().canStack)
|
if (newItem.GetComponent<InventoryItem>() == null)
|
||||||
{
|
{
|
||||||
|
|
||||||
var load = Resources.Load("Helar/Item", typeof(GameObject)) as GameObject;
|
var load = Resources.Load("Helar/Item", typeof(GameObject)) as GameObject;
|
||||||
@@ -101,12 +102,39 @@ public class InventorySlot : MonoBehaviour
|
|||||||
|
|
||||||
|
|
||||||
_itemInSlot = instance;
|
_itemInSlot = instance;
|
||||||
|
|
||||||
|
//_parentInventory.AddItem(instance.GetComponent<InventoryItem>());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_itemInSlot = newItem;
|
_itemInSlot = newItem;
|
||||||
|
|
||||||
|
//_parentInventory.AddItem(newItem.GetComponentInChildren<ItemData>());
|
||||||
//xrSocketInteractor.attachTransform = _itemInSlot.transform;
|
//xrSocketInteractor.attachTransform = _itemInSlot.transform;
|
||||||
Debug.Log("Holstered item" + _itemInSlot.GetComponentInChildren<ItemData>());
|
Debug.Log("Holstered item" + _itemInSlot.GetComponentInChildren<ItemData>());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private GameObject ConvertItem(GameObject item)
|
||||||
|
{
|
||||||
|
//load container object
|
||||||
|
var load = Resources.Load("Helar/Item", typeof(GameObject)) as GameObject;
|
||||||
|
//instantiate the container object
|
||||||
|
var instance = Instantiate(load, transform);
|
||||||
|
|
||||||
|
//load the container with the item to convert
|
||||||
|
instance.GetComponent<InventoryItem>().itemPrefab = item.gameObject;
|
||||||
|
|
||||||
|
//set the position and scale so it fits in the container
|
||||||
|
instance.transform.localScale = Vector3.one;
|
||||||
|
instance.transform.localPosition = Vector3.zero;
|
||||||
|
instance.transform.rotation = Quaternion.identity;
|
||||||
|
|
||||||
|
//enable the itemcontainer (more logic in InventoryItem OnEnable() method)
|
||||||
|
instance.GetComponent<InventoryItem>().enabled = true;
|
||||||
|
|
||||||
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ManagerOninteractableUnregistered(InteractableUnregisteredEventArgs obj)
|
private void ManagerOninteractableUnregistered(InteractableUnregisteredEventArgs obj)
|
||||||
@@ -126,12 +154,14 @@ public class InventorySlot : MonoBehaviour
|
|||||||
component.drag = 0.5f;
|
component.drag = 0.5f;
|
||||||
|
|
||||||
if (!_itemInSlot.GetComponentInChildren<ItemData>().canStack ||
|
if (!_itemInSlot.GetComponentInChildren<ItemData>().canStack ||
|
||||||
_itemInSlot.GetComponent<InventoryItem>().Count == 1)
|
_itemInSlot.GetComponent<InventoryItem>().saveData.count == 1)
|
||||||
{
|
{
|
||||||
|
//todo change back to regular item
|
||||||
|
//_itemInSlot.GetComponent<InventoryItem>().PopItem();
|
||||||
//var transformGameObject = _itemInSlot.GetComponentInChildren<ItemData>().transform.gameObject;
|
//var transformGameObject = _itemInSlot.GetComponentInChildren<ItemData>().transform.gameObject;
|
||||||
//Debug.Log(transformGameObject);
|
//Debug.Log(transformGameObject);
|
||||||
//args.interactableObject = transformGameObject.GetComponent<XRGrabInteractable>();
|
//args.interactableObject = transformGameObject.GetComponent<XRGrabInteractable>();
|
||||||
//todo change back to regular item
|
|
||||||
}
|
}
|
||||||
Debug.Log("Removed from slot item " + _itemInSlot);
|
Debug.Log("Removed from slot item " + _itemInSlot);
|
||||||
_itemInSlot = null;
|
_itemInSlot = null;
|
||||||
@@ -159,12 +189,21 @@ public class InventorySlot : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void AssignItem(GameObject newObject)
|
public void AssignItem(GameObject newObject)
|
||||||
|
{
|
||||||
|
if (newObject.GetComponent<InventoryItem>() == null)
|
||||||
|
{
|
||||||
|
_itemInSlot = ConvertItem(newObject);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
_itemInSlot = newObject;
|
_itemInSlot = newObject;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public InventoryItem GetItem()
|
public InventoryItem GetItem()
|
||||||
{
|
{
|
||||||
|
if (_itemInSlot == null) return null;
|
||||||
|
|
||||||
var inventoryItem = _itemInSlot.GetComponent<InventoryItem>();
|
var inventoryItem = _itemInSlot.GetComponent<InventoryItem>();
|
||||||
if (inventoryItem == null) Debug.LogError("Item in slot doesn't have InventoryItem component");
|
if (inventoryItem == null) Debug.LogError("Item in slot doesn't have InventoryItem component");
|
||||||
return inventoryItem;
|
return inventoryItem;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ public class ItemSpawner : MonoBehaviour
|
|||||||
public GameObject placeToSpawn;
|
public GameObject placeToSpawn;
|
||||||
public void SpawnItem()
|
public void SpawnItem()
|
||||||
{
|
{
|
||||||
Debug.Log("Spawned " + objectToSpawn);
|
|
||||||
Instantiate(objectToSpawn, placeToSpawn.transform);
|
Instantiate(objectToSpawn, placeToSpawn.transform);
|
||||||
|
Debug.Log("Spawned " + objectToSpawn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using Unity.Mathematics;
|
using Unity.Mathematics;
|
||||||
using Unity.VisualScripting;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.XR.Interaction.Toolkit;
|
using UnityEngine.XR.Interaction.Toolkit;
|
||||||
|
|
||||||
@@ -13,15 +12,13 @@ public class InventoryItem : MonoBehaviour
|
|||||||
|
|
||||||
public GameObject itemPrefab;
|
public GameObject itemPrefab;
|
||||||
|
|
||||||
private int _itemId;
|
|
||||||
|
|
||||||
private GameObject _childPrefab;
|
private GameObject _childPrefab;
|
||||||
|
|
||||||
public int Count { get; private set; }
|
private TMP_Text itemCounterText;
|
||||||
|
|
||||||
public TMP_Text itemCounterText;
|
private ItemData itemData;
|
||||||
|
|
||||||
private ItemData _itemData;
|
public ItemSaveData saveData;
|
||||||
|
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
@@ -37,13 +34,15 @@ public class InventoryItem : MonoBehaviour
|
|||||||
|
|
||||||
if (itemCounterText == null) itemCounterText = GetComponentInChildren<TMP_Text>();
|
if (itemCounterText == null) itemCounterText = GetComponentInChildren<TMP_Text>();
|
||||||
|
|
||||||
_childPrefab = GetComponentInChildren<ItemData>()?.gameObject;
|
_childPrefab = GetComponentInChildren<ItemData>()?.prefab.gameObject;
|
||||||
//Only attaches the prefab if it doesn't already have one ([ExecuteAlways] causes one to be spawned in editor).
|
//Only attaches the prefab if it doesn't already have one ([ExecuteAlways] causes one to be spawned in editor).
|
||||||
if (_childPrefab != null) return;
|
if (_childPrefab != null) return;
|
||||||
|
|
||||||
_childPrefab = Instantiate(itemPrefab, transform);
|
_childPrefab = Instantiate(itemPrefab, transform);
|
||||||
_childPrefab.transform.localPosition = new Vector3(0, -0.45f, 0);
|
|
||||||
_childPrefab.transform.localScale = new Vector3(2, 2, 2);
|
//todo switch to multiply instead so items with non 1,1,1 scale will retain their proportions
|
||||||
|
_childPrefab.transform.localPosition = GetComponentInChildren<ItemData>().positionInContainer;
|
||||||
|
_childPrefab.transform.localScale = GetComponentInChildren<ItemData>().scaleInContainer;
|
||||||
_childPrefab.transform.rotation = quaternion.identity;
|
_childPrefab.transform.rotation = quaternion.identity;
|
||||||
|
|
||||||
//Disable prefab components that arent relevant.
|
//Disable prefab components that arent relevant.
|
||||||
@@ -60,23 +59,28 @@ public class InventoryItem : MonoBehaviour
|
|||||||
var xrGrabInteractableComponent = _childPrefab.GetComponent<XRGrabInteractable>();
|
var xrGrabInteractableComponent = _childPrefab.GetComponent<XRGrabInteractable>();
|
||||||
if (xrGrabInteractableComponent != null) xrGrabInteractableComponent.enabled = false;
|
if (xrGrabInteractableComponent != null) xrGrabInteractableComponent.enabled = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
_itemData = _childPrefab.GetComponent<ItemData>();
|
itemData = _childPrefab.GetComponent<ItemData>();
|
||||||
|
|
||||||
if (_itemData == null) Debug.LogError("Item prefab has no attached ItemData", _childPrefab);
|
if (itemData == null) Debug.LogError("Item prefab has no attached ItemData", _childPrefab);
|
||||||
|
|
||||||
|
Debug.Log(saveData);
|
||||||
_itemId = _itemData.itemId;
|
if (string.IsNullOrEmpty(saveData.assetPath))
|
||||||
if (Count == 0) Count = 1;
|
{
|
||||||
|
saveData.assetPath = itemData.assetLocation;
|
||||||
|
saveData.count = saveData.count == 0 ? 1 : saveData.count;
|
||||||
|
}
|
||||||
UpdateText();
|
UpdateText();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateText()
|
private void UpdateText()
|
||||||
{
|
{
|
||||||
itemCounterText.text = _itemData.canStack ? Count.ToString() : "";
|
itemCounterText.text = itemData.canStack ? saveData.count.ToString() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -85,11 +89,11 @@ public class InventoryItem : MonoBehaviour
|
|||||||
*/
|
*/
|
||||||
public bool ChangeCount(int amount)
|
public bool ChangeCount(int amount)
|
||||||
{
|
{
|
||||||
if (Count + amount < 0) return false;
|
if (saveData.count + amount < 0) return false;
|
||||||
|
|
||||||
Count += amount;
|
saveData.count += amount;
|
||||||
|
|
||||||
if (Count == 0)
|
if (saveData.count == 0)
|
||||||
{
|
{
|
||||||
//Destroys this gameobject if the count is 0 or lower
|
//Destroys this gameobject if the count is 0 or lower
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
@@ -103,10 +107,11 @@ public class InventoryItem : MonoBehaviour
|
|||||||
|
|
||||||
public void PopItem()
|
public void PopItem()
|
||||||
{
|
{
|
||||||
GameObject item = Instantiate(_itemData.prefab, transform.position + transform.forward, Quaternion.identity);
|
GameObject item = Instantiate(itemData.prefab, transform.position + transform.forward, Quaternion.identity);
|
||||||
|
|
||||||
|
|
||||||
item.transform.localScale = Vector3.one;
|
item.transform.localScale = Vector3.one;
|
||||||
item.transform.name = _itemData.name;
|
item.transform.name = itemData.itemName;
|
||||||
|
|
||||||
var colliderComponent = item.GetComponent<Collider>();
|
var colliderComponent = item.GetComponent<Collider>();
|
||||||
if (colliderComponent != null) colliderComponent.enabled = true;
|
if (colliderComponent != null) colliderComponent.enabled = true;
|
||||||
@@ -127,13 +132,13 @@ public class InventoryItem : MonoBehaviour
|
|||||||
|
|
||||||
public int GetItemid()
|
public int GetItemid()
|
||||||
{
|
{
|
||||||
return _itemId;
|
return itemData.itemId;;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"{base.ToString()}, Count: {Count}, ItemData: {_itemData}";
|
return $"{base.ToString()}, Count: {saveData.count}, ItemData: {itemData}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class InventorySaveData
|
||||||
|
{
|
||||||
|
public List<ItemSaveData> inventoryContents;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e60ec35305ed0b94099d18a09b488310
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,16 +1,44 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEditor.SceneManagement;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class ItemData : MonoBehaviour
|
public class ItemData : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
[Tooltip("Location is populated automatically")]
|
||||||
|
public string assetLocation;
|
||||||
public int itemId;
|
public int itemId;
|
||||||
public bool canStack;
|
public bool canStack;
|
||||||
public string itemName;
|
public string itemName;
|
||||||
public string itemDescription;
|
public string itemDescription;
|
||||||
public GameObject prefab;
|
public GameObject prefab;
|
||||||
|
public Vector3 scaleInContainer;
|
||||||
|
public Vector3 positionInContainer;
|
||||||
|
|
||||||
|
private void OnValidate()
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(AssetDatabase.GetAssetPath(prefab))) assetLocation = AssetDatabase.GetAssetPath(prefab);
|
||||||
|
|
||||||
|
AdjustPath();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AdjustPath()
|
||||||
|
{
|
||||||
|
//trims the location for use with Resources.Load later
|
||||||
|
if (assetLocation.StartsWith("Assets/Resources/"))
|
||||||
|
assetLocation = assetLocation[17 .. ^7];
|
||||||
|
else if (!string.IsNullOrEmpty(assetLocation))
|
||||||
|
if (assetLocation.StartsWith("Assets"))
|
||||||
|
{
|
||||||
|
Debug.LogError(itemName +
|
||||||
|
": item with this script should be placed in the Assets/Resources/ folder. Currently: " +
|
||||||
|
assetLocation);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class ItemSaveData
|
||||||
|
{
|
||||||
|
public string assetPath;
|
||||||
|
public int count;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2e553150cec08514e9aacc82fe8da007
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -12,6 +12,8 @@ public class ActionGestureInteraction : MonoBehaviour
|
|||||||
private GameObject player;
|
private GameObject player;
|
||||||
public float projectileSpeed = 30;
|
public float projectileSpeed = 30;
|
||||||
|
|
||||||
|
private bool holdingWand;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
player = gameObject;
|
player = gameObject;
|
||||||
@@ -19,8 +21,67 @@ public class ActionGestureInteraction : MonoBehaviour
|
|||||||
|
|
||||||
public void PerformAction(string action)
|
public void PerformAction(string action)
|
||||||
{
|
{
|
||||||
Debug.Log(action);
|
Debug.LogWarning(action);
|
||||||
if (action == "Portal")
|
|
||||||
|
|
||||||
|
/* todo: playerinfo doesnt have these methods?
|
||||||
|
if (player.GetComponent<PlayerInfo>().GetRightHand() != null)
|
||||||
|
{
|
||||||
|
Debug.LogWarning(player.GetComponent<PlayerInfo>().GetRightHand().name);
|
||||||
|
if (player.GetComponent<PlayerInfo>().GetRightHand().name.Equals("wand")) holdingWand = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
else holdingWand = false;
|
||||||
|
*/
|
||||||
|
|
||||||
|
switch (action)
|
||||||
|
{
|
||||||
|
case "HorizontalLine":
|
||||||
|
if (holdingWand)
|
||||||
|
{
|
||||||
|
Debug.LogWarning("CAST BOLT");
|
||||||
|
ShootProjectile();
|
||||||
|
InstantiateIceBolt(objects[0]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogWarning("WOODCUTTING ACTION");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
case "VerticalLine":
|
||||||
|
if (holdingWand)
|
||||||
|
{
|
||||||
|
Debug.LogWarning("WAND VERTICAL");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogWarning("VERTICAL");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
case "Circle":
|
||||||
|
if (holdingWand)
|
||||||
|
{
|
||||||
|
Debug.LogWarning("Arcing fireball");
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogWarning("CIRCLE");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
case "Triangle":
|
||||||
|
if (holdingWand)
|
||||||
|
{
|
||||||
|
Debug.LogWarning("WAND TRIANGLE");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogWarning("WOODCUTTING ACTION");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*if (action == "Portal")
|
||||||
{
|
{
|
||||||
// Raycast to find portal were looking at.
|
// Raycast to find portal were looking at.
|
||||||
var nearestPortal = FindPortalInFront();
|
var nearestPortal = FindPortalInFront();
|
||||||
@@ -41,9 +102,9 @@ public class ActionGestureInteraction : MonoBehaviour
|
|||||||
// Make ice wall appear from below to block incoming projectiles
|
// Make ice wall appear from below to block incoming projectiles
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} */
|
||||||
}
|
}
|
||||||
}
|
void MinigameEnable(GameObject portal)
|
||||||
void EnableDisablePortal(GameObject portal)
|
|
||||||
{
|
{
|
||||||
// Did the raycast catch a portal in front of us?
|
// Did the raycast catch a portal in front of us?
|
||||||
if (portal != null)
|
if (portal != null)
|
||||||
@@ -70,7 +131,7 @@ public class ActionGestureInteraction : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GameObject FindPortalInFront()
|
GameObject FindMinigame()
|
||||||
{
|
{
|
||||||
Ray ray = playerCamera.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0));
|
Ray ray = playerCamera.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0));
|
||||||
RaycastHit hit;
|
RaycastHit hit;
|
||||||
@@ -104,6 +165,7 @@ public class ActionGestureInteraction : MonoBehaviour
|
|||||||
|
|
||||||
void InstantiateIceBolt(GameObject item)
|
void InstantiateIceBolt(GameObject item)
|
||||||
{
|
{
|
||||||
|
Debug.LogWarning("INSTANTIATE BOLT");
|
||||||
var projectileObj = Instantiate(item, rightHandTransform.position, playerCamera.transform.rotation) as GameObject;
|
var projectileObj = Instantiate(item, rightHandTransform.position, playerCamera.transform.rotation) as GameObject;
|
||||||
projectileObj.GetComponent<Rigidbody>().velocity = (destination - rightHandTransform.position).normalized * projectileSpeed;
|
projectileObj.GetComponent<Rigidbody>().velocity = (destination - rightHandTransform.position).normalized * projectileSpeed;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,30 +9,53 @@ public class PortalTeleporter : MonoBehaviour
|
|||||||
private Transform linkedPortalTransform;
|
private Transform linkedPortalTransform;
|
||||||
private float _portalCooldown = 2.5f;
|
private float _portalCooldown = 2.5f;
|
||||||
private bool _travellerIsOverlapping = false;
|
private bool _travellerIsOverlapping = false;
|
||||||
private bool _portalIsEnabled;
|
private bool _portalCanBeUsed;
|
||||||
|
private bool _enabled;
|
||||||
private float _lastUsed;
|
private float _lastUsed;
|
||||||
private bool _justUsed;
|
private bool _justUsed;
|
||||||
private Transform traveller;
|
private Transform traveller;
|
||||||
public AudioClip TeleportSound;
|
public AudioClip TeleportSound;
|
||||||
|
// poopy code, can be done much more efficient if this class is rewritten and attached to Portal parent object
|
||||||
|
private AudioSource audioSource;
|
||||||
|
private GameObject vfx_gameobject;
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
|
{
|
||||||
|
if (linkedPortal == null)
|
||||||
|
{
|
||||||
|
DisablePortal();
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
linkedPortalTransform = linkedPortal.transform;
|
linkedPortalTransform = linkedPortal.transform;
|
||||||
_portalIsEnabled = true;
|
_portalCanBeUsed = true;
|
||||||
|
vfx_gameobject = transform.parent.Find("PortalFX").gameObject;
|
||||||
|
audioSource = transform.parent.GetComponent<AudioSource>();
|
||||||
|
audioSource.mute = true;
|
||||||
|
if (_enabled)
|
||||||
|
{
|
||||||
|
vfx_gameobject.SetActive(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vfx_gameobject.SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnTriggerEnter(Collider other)
|
void OnTriggerEnter(Collider other)
|
||||||
{
|
{
|
||||||
traveller = other.gameObject.transform;
|
traveller = other.gameObject.transform;
|
||||||
if (_portalIsEnabled && !_justUsed)
|
Debug.Log(_enabled);
|
||||||
|
if (_portalCanBeUsed && !_justUsed && _enabled)
|
||||||
{
|
{
|
||||||
if (other.name.StartsWith("Holster"))
|
if (other.name.StartsWith("Holster") || other.tag.Contains("Holster"))
|
||||||
{
|
{
|
||||||
Debug.Log("holster");
|
Debug.Log("holster");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
linkedPortal._portalIsEnabled = false;
|
linkedPortal._portalCanBeUsed = false;
|
||||||
_travellerIsOverlapping = true;
|
_travellerIsOverlapping = true;
|
||||||
if (other.tag == "Throwable")
|
if (other.tag == "Throwable")
|
||||||
{
|
{
|
||||||
@@ -47,6 +70,28 @@ public class PortalTeleporter : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable/Disable portal if selected item is in a socket.
|
||||||
|
public void EnablePortal()
|
||||||
|
{
|
||||||
|
Debug.Log("enabled");
|
||||||
|
_enabled = true;
|
||||||
|
linkedPortal._enabled = true;
|
||||||
|
vfx_gameobject.SetActive(true);
|
||||||
|
linkedPortal.vfx_gameobject.SetActive(true);
|
||||||
|
audioSource.mute = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DisablePortal()
|
||||||
|
{
|
||||||
|
Debug.Log("disabled");
|
||||||
|
_enabled = false;
|
||||||
|
linkedPortal._enabled = false;
|
||||||
|
vfx_gameobject.SetActive(false);
|
||||||
|
linkedPortal.vfx_gameobject.SetActive(false);
|
||||||
|
audioSource.mute = true;
|
||||||
|
}
|
||||||
|
|
||||||
private void HandlePlayer()
|
private void HandlePlayer()
|
||||||
{
|
{
|
||||||
Vector3 portalToTraveller = traveller.position - transform.position;
|
Vector3 portalToTraveller = traveller.position - transform.position;
|
||||||
@@ -65,7 +110,7 @@ public class PortalTeleporter : MonoBehaviour
|
|||||||
|
|
||||||
AudioSource.PlayClipAtPoint(TeleportSound, traveller.position, 1);
|
AudioSource.PlayClipAtPoint(TeleportSound, traveller.position, 1);
|
||||||
_travellerIsOverlapping = false;
|
_travellerIsOverlapping = false;
|
||||||
_portalIsEnabled = false;
|
_portalCanBeUsed = false;
|
||||||
_lastUsed = Time.time;
|
_lastUsed = Time.time;
|
||||||
_justUsed = true;
|
_justUsed = true;
|
||||||
}
|
}
|
||||||
@@ -86,7 +131,7 @@ public class PortalTeleporter : MonoBehaviour
|
|||||||
Vector3 positionOffset = Quaternion.Euler(0f, rotationDiff, 0f) * portalToTraveller;
|
Vector3 positionOffset = Quaternion.Euler(0f, rotationDiff, 0f) * portalToTraveller;
|
||||||
traveller.position = linkedPortalTransform.position + positionOffset;
|
traveller.position = linkedPortalTransform.position + positionOffset;
|
||||||
_travellerIsOverlapping = false;
|
_travellerIsOverlapping = false;
|
||||||
_portalIsEnabled = false;
|
_portalCanBeUsed = false;
|
||||||
_lastUsed = Time.time;
|
_lastUsed = Time.time;
|
||||||
_justUsed = true;
|
_justUsed = true;
|
||||||
}
|
}
|
||||||
@@ -108,8 +153,8 @@ public class PortalTeleporter : MonoBehaviour
|
|||||||
if (_lastUsed + _portalCooldown < Time.time)
|
if (_lastUsed + _portalCooldown < Time.time)
|
||||||
{
|
{
|
||||||
_justUsed = false;
|
_justUsed = false;
|
||||||
_portalIsEnabled = true;
|
_portalCanBeUsed = true;
|
||||||
linkedPortal._portalIsEnabled = true;
|
linkedPortal._portalCanBeUsed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,10 @@ public class EssenceNodeController : MonoBehaviour
|
|||||||
|
|
||||||
public bool isTouched;
|
public bool isTouched;
|
||||||
private bool followPlayer = false;
|
private bool followPlayer = false;
|
||||||
private Transform player;
|
private Transform playerCamera;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private PlayerInfo playerInfo;
|
||||||
|
|
||||||
private float timer;
|
private float timer;
|
||||||
private Material nodeMaterial;
|
private Material nodeMaterial;
|
||||||
@@ -22,6 +25,7 @@ public class EssenceNodeController : MonoBehaviour
|
|||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
nodeMaterial = GetComponent<Renderer>().material;
|
nodeMaterial = GetComponent<Renderer>().material;
|
||||||
|
//playerInfo = PlayerInfo.Instance;
|
||||||
playerInventory = GameObject.Find("Inventory").GetComponent<Inventory>();
|
playerInventory = GameObject.Find("Inventory").GetComponent<Inventory>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +43,7 @@ public class EssenceNodeController : MonoBehaviour
|
|||||||
public void FollowPlayer()
|
public void FollowPlayer()
|
||||||
{
|
{
|
||||||
followPlayer = true;
|
followPlayer = true;
|
||||||
player = GameObject.FindGameObjectWithTag("MainCamera").transform;
|
playerCamera = GameObject.FindGameObjectWithTag("MainCamera").transform;
|
||||||
StartCoroutine(Collect());
|
StartCoroutine(Collect());
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -58,6 +62,7 @@ public class EssenceNodeController : MonoBehaviour
|
|||||||
|
|
||||||
IEnumerator Collect()
|
IEnumerator Collect()
|
||||||
{
|
{
|
||||||
|
playerInfo.AddEssenceBasic(1);
|
||||||
yield return new WaitForSeconds(2f);
|
yield return new WaitForSeconds(2f);
|
||||||
//TODO: Update value in player inventory
|
//TODO: Update value in player inventory
|
||||||
playerInventory.AddItem(GetComponent<ItemData>());
|
playerInventory.AddItem(GetComponent<ItemData>());
|
||||||
@@ -79,7 +84,7 @@ public class EssenceNodeController : MonoBehaviour
|
|||||||
|
|
||||||
if (followPlayer)
|
if (followPlayer)
|
||||||
{
|
{
|
||||||
transform.position = Vector3.Lerp(transform.position, new Vector3(player.position.x,player.position.y - 0.5f, player.position.z), Time.deltaTime);
|
transform.position = Vector3.Lerp(transform.position, new Vector3(playerCamera.position.x, playerCamera.position.y - 0.5f, playerCamera.position.z), Time.deltaTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class PlayerInfo : MonoBehaviour
|
||||||
|
{
|
||||||
|
private int health;
|
||||||
|
|
||||||
|
private int essence_basic;
|
||||||
|
//Add elemental essences?
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
health = 5;
|
||||||
|
essence_basic = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddHealth(int value)
|
||||||
|
{
|
||||||
|
health += value;
|
||||||
|
if (health <= 0)
|
||||||
|
{
|
||||||
|
Debug.Log("NO HEALTH REMAINING");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddEssenceBasic(int value)
|
||||||
|
{
|
||||||
|
if (essence_basic + value < 0)
|
||||||
|
{
|
||||||
|
Debug.LogError("NOT ENOUGH ESSENCE");
|
||||||
|
}
|
||||||
|
else essence_basic += value;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08f72f5d017837743b67d344a6a7ed52
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -8,6 +8,7 @@ public class ArmSwingLocomotion : MonoBehaviour
|
|||||||
public GameObject RightHand;
|
public GameObject RightHand;
|
||||||
public GameObject CenterEyeCamera;
|
public GameObject CenterEyeCamera;
|
||||||
public GameObject ForwardDirection;
|
public GameObject ForwardDirection;
|
||||||
|
public GameObject Player;
|
||||||
|
|
||||||
private Vector3 PositionPreviousFrameLeftHand;
|
private Vector3 PositionPreviousFrameLeftHand;
|
||||||
private Vector3 PositionPreviousFrameRightHand;
|
private Vector3 PositionPreviousFrameRightHand;
|
||||||
@@ -22,7 +23,7 @@ public class ArmSwingLocomotion : MonoBehaviour
|
|||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
PlayerPositionPreviousFrame = transform.position;
|
PlayerPositionPreviousFrame = Player.transform.position;
|
||||||
PositionPreviousFrameLeftHand = LeftHand.transform.position;
|
PositionPreviousFrameLeftHand = LeftHand.transform.position;
|
||||||
PlayerPositionPreviousFrame = RightHand.transform.position;
|
PlayerPositionPreviousFrame = RightHand.transform.position;
|
||||||
}
|
}
|
||||||
@@ -33,13 +34,13 @@ public class ArmSwingLocomotion : MonoBehaviour
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
float Yrot = CenterEyeCamera.transform.eulerAngles.y;
|
/*float Yrot = CenterEyeCamera.transform.eulerAngles.y;
|
||||||
ForwardDirection.transform.eulerAngles = new Vector3(0, Yrot, 0);
|
ForwardDirection.transform.eulerAngles = new Vector3(0, Yrot, 0);*/
|
||||||
|
|
||||||
PositionCurrentFrameLeftHand = LeftHand.transform.position;
|
PositionCurrentFrameLeftHand = LeftHand.transform.position;
|
||||||
PositionCurrentFrameRightHand = RightHand.transform.position;
|
PositionCurrentFrameRightHand = RightHand.transform.position;
|
||||||
|
|
||||||
PlayerPositionCurrentFrame = transform.position;
|
PlayerPositionCurrentFrame = Player.transform.position;
|
||||||
|
|
||||||
//Debug.Log("Previous" + PositionPreviousFrameLeftHand);
|
//Debug.Log("Previous" + PositionPreviousFrameLeftHand);
|
||||||
//Debug.Log("Current" + PositionCurrentFrameLeftHand);
|
//Debug.Log("Current" + PositionCurrentFrameLeftHand);
|
||||||
@@ -52,7 +53,7 @@ public class ArmSwingLocomotion : MonoBehaviour
|
|||||||
|
|
||||||
if (Time.timeSinceLevelLoad > 1f)
|
if (Time.timeSinceLevelLoad > 1f)
|
||||||
{
|
{
|
||||||
transform.position += ForwardDirection.transform.forward * HandSpeed * Speed * Time.deltaTime;
|
Player.transform.position += ForwardDirection.transform.forward * HandSpeed * Speed * Time.deltaTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
PositionPreviousFrameLeftHand = PositionCurrentFrameLeftHand;
|
PositionPreviousFrameLeftHand = PositionCurrentFrameLeftHand;
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ChangeButtonColor : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private Color enterColor = Color.white;
|
||||||
|
[SerializeField] private Color exitColor = Color.white;
|
||||||
|
|
||||||
|
private MeshCollider _collider;
|
||||||
|
private MeshRenderer _renderer;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
_collider = GetComponent<MeshCollider>();
|
||||||
|
_renderer = GetComponent<MeshRenderer>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
_renderer.material.color = enterColor;
|
||||||
|
Debug.Log("Touched!");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerExit(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
_renderer.material.color = exitColor;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a16108a6f7081d14f9f5a046ac04b8c2
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ChangeButtonColorLocomotion : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private Color enterColor = Color.white;
|
||||||
|
[SerializeField] private Color exitColor = Color.white;
|
||||||
|
|
||||||
|
private MeshCollider _collider;
|
||||||
|
private MeshRenderer _renderer;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
_collider = GetComponent<MeshCollider>();
|
||||||
|
_renderer = GetComponent<MeshRenderer>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
if(_renderer.material.color != enterColor)
|
||||||
|
_renderer.material.color = enterColor;
|
||||||
|
else
|
||||||
|
_renderer.material.color = exitColor;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ae634ea4fe8cb874487372a3d7c595bf
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ControllLocomotion : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject XRorigin;
|
||||||
|
public GameObject ArmSwingButton;
|
||||||
|
public GameObject JoyStickButton;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ca1db91ee57976944aa22ed347811963
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class EnableArmSwing : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private MeshCollider _collider;
|
||||||
|
private MeshRenderer _renderer;
|
||||||
|
|
||||||
|
public GameObject Player;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
_collider = GetComponent<MeshCollider>();
|
||||||
|
_renderer = GetComponent<MeshRenderer>();
|
||||||
|
Player.GetComponent<ArmSwingLocomotion>().enabled = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
if(Player.GetComponent<ArmSwingLocomotion>().enabled == true)
|
||||||
|
Player.GetComponent<ArmSwingLocomotion>().enabled = false;
|
||||||
|
else
|
||||||
|
Player.GetComponent<ArmSwingLocomotion>().enabled = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 696a55bfea145fa4b9029ff2d359c16d
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class EnableDash : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private MeshCollider _collider;
|
||||||
|
private MeshRenderer _renderer;
|
||||||
|
|
||||||
|
public GameObject Player;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
_collider = GetComponent<MeshCollider>();
|
||||||
|
_renderer = GetComponent<MeshRenderer>();
|
||||||
|
Player.GetComponent<Dash>().enabled = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
if (Player.GetComponent<Dash>().enabled == true)
|
||||||
|
Player.GetComponent<Dash>().enabled = false;
|
||||||
|
else
|
||||||
|
Player.GetComponent<Dash>().enabled = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 84e3386cbd3fd2c418ecf357af19ba5f
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class EnableJoyStick : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private MeshCollider _collider;
|
||||||
|
private MeshRenderer _renderer;
|
||||||
|
|
||||||
|
public GameObject LocomotionSystem;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
_collider = GetComponent<MeshCollider>();
|
||||||
|
_renderer = GetComponent<MeshRenderer>();
|
||||||
|
LocomotionSystem.SetActive(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
LocomotionSystem.SetActive(!LocomotionSystem.activeSelf);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a63e1d5bde5a60c45aa409546e55b920
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
public class EnterGameScene : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Player")
|
||||||
|
{
|
||||||
|
SceneManager.LoadScene("GameScene");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f1114a137d02f184db2b6291d9d31cb5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ForwardDirection : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject CenterEyeCamera;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
float Yrot = CenterEyeCamera.transform.eulerAngles.y;
|
||||||
|
transform.eulerAngles = new Vector3(0, Yrot, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 01869e86b22555a449cd53043f5c4afa
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class LocomotionSettingButton : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private MeshCollider _collider;
|
||||||
|
|
||||||
|
public GameObject LocomotionPanel;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
_collider = GetComponent<MeshCollider>();
|
||||||
|
LocomotionPanel.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "Hand")
|
||||||
|
{
|
||||||
|
LocomotionPanel.SetActive(!LocomotionPanel.activeSelf);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8ac280753a1d95a43a1fbcfd69708d7a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class PauseMenu : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5a2662b3abecb914cad356619e832f13
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Player : MonoBehaviour
|
||||||
|
{
|
||||||
|
/*public int level;
|
||||||
|
public int health;*/
|
||||||
|
public void SavePlayer()
|
||||||
|
{
|
||||||
|
SaveSystem.SavePlayer(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LoadPlayer()
|
||||||
|
{
|
||||||
|
PlayerData data = SaveSystem.LoadPlayer();
|
||||||
|
|
||||||
|
Vector3 position;
|
||||||
|
position.x = data.position[0];
|
||||||
|
position.y = data.position[1];
|
||||||
|
position.z = data.position[2];
|
||||||
|
transform.position = position;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6ff82a98832d12249b30083bc9ae2dd3
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class PlayerData
|
||||||
|
{
|
||||||
|
/*public int level;
|
||||||
|
public int health;*/
|
||||||
|
public float[] position;
|
||||||
|
|
||||||
|
public PlayerData(Player player)
|
||||||
|
{
|
||||||
|
/*level = player.level;
|
||||||
|
health = player.health;*/
|
||||||
|
|
||||||
|
position = new float[3];
|
||||||
|
position[0] = player.transform.position.x;
|
||||||
|
position[1] = player.transform.position.y;
|
||||||
|
position[2] = player.transform.position.z;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9cdb4de85d282744083c6d9cee4fef3c
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
|
|
||||||
|
public static class SaveSystem
|
||||||
|
{
|
||||||
|
public static void SavePlayer(Player player)
|
||||||
|
{
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
string path = Application.persistentDataPath + "/player.data";
|
||||||
|
FileStream stream = new FileStream(path, FileMode.Create);
|
||||||
|
|
||||||
|
PlayerData data = new PlayerData(player);
|
||||||
|
|
||||||
|
formatter.Serialize(stream, data);
|
||||||
|
stream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static PlayerData LoadPlayer ()
|
||||||
|
{
|
||||||
|
string path = Application.persistentDataPath + "/player.data";
|
||||||
|
if (File.Exists(path))
|
||||||
|
{
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
FileStream stream = new FileStream(path, FileMode.Open);
|
||||||
|
|
||||||
|
PlayerData data = formatter.Deserialize(stream) as PlayerData;
|
||||||
|
stream.Close();
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Log("Save File not found in " + path);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 49c2ebd233ef7a547b12ce163244e30a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -6,8 +6,8 @@ public class TriggerDoorController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
[SerializeField] private Animator myDoor = null;
|
[SerializeField] private Animator myDoor = null;
|
||||||
|
|
||||||
[SerializeField] private bool openTrigger = false;
|
[SerializeField] private bool Trigger = false;
|
||||||
[SerializeField] private bool closeTrigger = false;
|
//[SerializeField] private bool closeTrigger = false;
|
||||||
|
|
||||||
[SerializeField] private string doorOpen = "DoorOpen";
|
[SerializeField] private string doorOpen = "DoorOpen";
|
||||||
[SerializeField] private string doorClose = "DoorClose";
|
[SerializeField] private string doorClose = "DoorClose";
|
||||||
@@ -19,17 +19,26 @@ public class TriggerDoorController : MonoBehaviour
|
|||||||
if (other.CompareTag("Player"))
|
if (other.CompareTag("Player"))
|
||||||
{
|
{
|
||||||
Debug.Log("col");
|
Debug.Log("col");
|
||||||
if (openTrigger)
|
if (Trigger)
|
||||||
{
|
{
|
||||||
Debug.Log("open");
|
Debug.Log("open");
|
||||||
myDoor.Play(doorOpen, 0, 0.0f);
|
myDoor.Play(doorOpen, 0, 0.0f);
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (closeTrigger)
|
/*else if (closeTrigger)
|
||||||
|
{
|
||||||
|
myDoor.Play(doorClose, 0, 0.0f);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnTriggerExit(Collider other)
|
||||||
|
{
|
||||||
|
if (other.CompareTag("Player"))
|
||||||
|
{
|
||||||
|
if (Trigger)
|
||||||
{
|
{
|
||||||
myDoor.Play(doorClose, 0, 0.0f);
|
myDoor.Play(doorClose, 0, 0.0f);
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using TMPro;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class XRGUI : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField]
|
||||||
|
private Button SettingsButton;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private Button LoadButton;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private Button ExitButton;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
SettingsButton.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
LoadButton.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
ExitButton.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
Debug.Log("Clicked");
|
||||||
|
UnityEditor.EditorApplication.isPlaying = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 37cfb6899ccd00b4280ac4eb92f84851
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -35,7 +35,7 @@ Material:
|
|||||||
m_Ints: []
|
m_Ints: []
|
||||||
m_Floats:
|
m_Floats:
|
||||||
- _Electricity_Amount: 5
|
- _Electricity_Amount: 5
|
||||||
- _Electricity_Scale: 20
|
- _Electricity_Scale: 4
|
||||||
- _Electricity_Thickness: 1
|
- _Electricity_Thickness: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
|||||||
@@ -0,0 +1,127 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-1478561429412322476
|
||||||
|
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: 5
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Green_Glow
|
||||||
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
|
m_ShaderKeywords: _SPECULAR_SETUP _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
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}
|
||||||
|
- 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:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.614
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 5
|
||||||
|
- _Surface: 1
|
||||||
|
- _WorkflowMode: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 0.19944271, g: 0.6862745, b: 0.113725476, a: 0.105882354}
|
||||||
|
- _Color: {r: 0.19944268, g: 0.68627447, b: 0.113725446, a: 0.105882354}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecColor: {r: 0.09411766, g: 0.8784314, b: 0.36514217, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 964ed250374e2b34aa04c6ecbf41404d
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 544268b6f9cec2c4781017e5cfe72a4b
|
||||||
|
VisualEffectImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -353,8 +353,8 @@
|
|||||||
],
|
],
|
||||||
"m_VertexContext": {
|
"m_VertexContext": {
|
||||||
"m_Position": {
|
"m_Position": {
|
||||||
"x": 627.0000610351563,
|
"x": 632.0,
|
||||||
"y": -144.99998474121095
|
"y": -153.0
|
||||||
},
|
},
|
||||||
"m_Blocks": [
|
"m_Blocks": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,127 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-1478561429412322476
|
||||||
|
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: 5
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Purple_Glow
|
||||||
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
|
m_ShaderKeywords: _SPECULAR_SETUP _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
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}
|
||||||
|
- 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:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.614
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 5
|
||||||
|
- _Surface: 1
|
||||||
|
- _WorkflowMode: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 0.41912836, g: 0.113725476, b: 0.6862745, a: 0.105882354}
|
||||||
|
- _Color: {r: 0.41912833, g: 0.113725446, b: 0.68627447, a: 0.105882354}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecColor: {r: 0.4459281, g: 0.09411766, b: 0.8784314, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 04dda9fe96108674eb123db24ae1a6d9
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-1478561429412322476
|
||||||
|
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: 5
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Red_Glow
|
||||||
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
|
m_ShaderKeywords: _SPECULAR_SETUP _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
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}
|
||||||
|
- 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:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.614
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 5
|
||||||
|
- _Surface: 1
|
||||||
|
- _WorkflowMode: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 0.6862745, g: 0.15593119, b: 0.113725476, a: 0.105882354}
|
||||||
|
- _Color: {r: 0.68627447, g: 0.15593114, b: 0.113725446, a: 0.105882354}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecColor: {r: 0.8784314, g: 0.09411766, b: 0.24839823, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f2699f7f9e5d7d44183ca407e543d398
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user