From f673f53e60a45287df7cf87e15bcc836d677bb68 Mon Sep 17 00:00:00 2001 From: WillJeynes Date: Sun, 30 Aug 2026 09:39:21 +0100 Subject: [PATCH] chchchchchaaaaangeeesssss --- Assets/LevelPrefabs/DoorPrefab 2.prefab | 26 ++-- Assets/LevelPrefabs/HorsePrefab.prefab | 8 +- Assets/LevelSprites/Materials/Sprite-0001.mat | 140 ++++++++++++++++++ .../Materials/Sprite-0001.mat.meta} | 5 +- Assets/LevelSprites/Materials/canvas.mat | 140 ++++++++++++++++++ .../Materials/canvas.mat.meta} | 5 +- Assets/LevelSprites/Sprite-0001.png | 3 + Assets/LevelSprites/Sprite-0001.png.meta | 130 ++++++++++++++++ Assets/LevelSprites/canvas.png | 3 + Assets/LevelSprites/canvas.png.meta | 130 ++++++++++++++++ Assets/LevelSprites/door.png | 4 +- Assets/LevelSprites/door_open.png | 4 +- Assets/Resources/PerformanceTestRunInfo.json | 1 - .../Resources/PerformanceTestRunSettings.json | 1 - Assets/Scenes/Game 1.unity | 78 +++++----- Assets/Scripts/CameraController.cs | 6 +- Assets/Scripts/DoorManager.cs | 2 +- Assets/Scripts/GuardManager.cs | 2 +- Assets/Scripts/LevelLoader.cs | 5 + Assets/Scripts/ReloadLevelScript.cs | 1 + Assets/Scripts/SpeechManager.cs | 7 +- Assets/UIPrefabs/DoorInfoPanel.prefab | 22 +-- ProjectSettings/ProjectSettings.asset | 3 +- 23 files changed, 642 insertions(+), 84 deletions(-) create mode 100644 Assets/LevelSprites/Materials/Sprite-0001.mat rename Assets/{Resources/PerformanceTestRunInfo.json.meta => LevelSprites/Materials/Sprite-0001.mat.meta} (52%) create mode 100644 Assets/LevelSprites/Materials/canvas.mat rename Assets/{Resources/PerformanceTestRunSettings.json.meta => LevelSprites/Materials/canvas.mat.meta} (52%) create mode 100644 Assets/LevelSprites/Sprite-0001.png create mode 100644 Assets/LevelSprites/Sprite-0001.png.meta create mode 100644 Assets/LevelSprites/canvas.png create mode 100644 Assets/LevelSprites/canvas.png.meta delete mode 100644 Assets/Resources/PerformanceTestRunInfo.json delete mode 100644 Assets/Resources/PerformanceTestRunSettings.json diff --git a/Assets/LevelPrefabs/DoorPrefab 2.prefab b/Assets/LevelPrefabs/DoorPrefab 2.prefab index c951035..d7362f5 100644 --- a/Assets/LevelPrefabs/DoorPrefab 2.prefab +++ b/Assets/LevelPrefabs/DoorPrefab 2.prefab @@ -27,13 +27,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1506419440308516800} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 1.64, y: 0.324, z: -0} m_LocalScale: {x: 0.1, y: 0.1, z: -0.06} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7105669767734819822} - m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0} + m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!33 &2590228332576071608 MeshFilter: m_ObjectHideFlags: 0 @@ -67,7 +67,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, type: 2} + - {fileID: 2100000, guid: f6626ab8caebe7a86a9e55192624da5a, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -661,13 +661,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2210053730125719316} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 1.64, y: 1.499, z: -0} m_LocalScale: {x: 0.1, y: 0.1, z: -0.06} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6102534033311042695} - m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0} + m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!33 &6489312344219198563 MeshFilter: m_ObjectHideFlags: 0 @@ -701,7 +701,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, type: 2} + - {fileID: 2100000, guid: f6626ab8caebe7a86a9e55192624da5a, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -1809,13 +1809,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6415465451029568722} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 1.64, y: 1.736, z: -0} m_LocalScale: {x: 0.1, y: 0.1, z: -0.06} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7105669767734819822} - m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0} + m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!33 &5550103839375517047 MeshFilter: m_ObjectHideFlags: 0 @@ -1849,7 +1849,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, type: 2} + - {fileID: 2100000, guid: f6626ab8caebe7a86a9e55192624da5a, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -2115,13 +2115,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7801453951043561867} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 1.64, y: 1.011, z: 0} m_LocalScale: {x: 0.1, y: 0.1, z: -0.06} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7105669767734819822} - m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0} + m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!33 &2578530183799417545 MeshFilter: m_ObjectHideFlags: 0 @@ -2155,7 +2155,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, type: 2} + - {fileID: 2100000, guid: f6626ab8caebe7a86a9e55192624da5a, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -2228,7 +2228,7 @@ Transform: m_GameObject: {fileID: 8624417641476075295} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} - m_LocalPosition: {x: 0.039, y: 0.856, z: -0.79} + m_LocalPosition: {x: -0.025, y: 0.856, z: -0.79} m_LocalScale: {x: 0.15, y: 1, z: 0.15} m_ConstrainProportionsScale: 0 m_Children: [] diff --git a/Assets/LevelPrefabs/HorsePrefab.prefab b/Assets/LevelPrefabs/HorsePrefab.prefab index 8d27d14..497c67e 100644 --- a/Assets/LevelPrefabs/HorsePrefab.prefab +++ b/Assets/LevelPrefabs/HorsePrefab.prefab @@ -101,9 +101,9 @@ Transform: m_GameObject: {fileID: 5771596324189303841} serializedVersion: 2 m_LocalRotation: {x: -0.70708096, y: -0.006047141, z: 0.006047141, w: -0.70708096} - m_LocalPosition: {x: 0, y: 1.0720001, z: 0} - m_LocalScale: {x: 0.08001377, y: 0.99958163, z: 0.25} - m_ConstrainProportionsScale: 0 + m_LocalPosition: {x: 0, y: 1.47, z: 0} + m_LocalScale: {x: 0.2, y: 1.537818, z: 0.3846154} + m_ConstrainProportionsScale: 1 m_Children: [] m_Father: {fileID: 6261725771962263685} m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0} @@ -140,7 +140,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, type: 2} + - {fileID: 2100000, guid: 6234c48d3ded2ea4fa66c7790c1ad334, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 diff --git a/Assets/LevelSprites/Materials/Sprite-0001.mat b/Assets/LevelSprites/Materials/Sprite-0001.mat new file mode 100644 index 0000000..2df5cda --- /dev/null +++ b/Assets/LevelSprites/Materials/Sprite-0001.mat @@ -0,0 +1,140 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-7022403147991308975 +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: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion + version: 10 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Sprite-0001 + m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _SURFACE_TYPE_TRANSPARENT + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: + RenderType: Transparent + disabledShaderPasses: + - MOTIONVECTORS + - DepthOnly + - SHADOWCASTER + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 2800000, guid: 6ba1f61ae06c83a95b47b9eca739c448, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 6ba1f61ae06c83a95b47b9eca739c448, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 10 + - _DstBlendAlpha: 10 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 5 + - _SrcBlendAlpha: 1 + - _Surface: 1 + - _WorkflowMode: 1 + - _XRMotionVectorsPass: 1 + - _ZWrite: 0 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/Resources/PerformanceTestRunInfo.json.meta b/Assets/LevelSprites/Materials/Sprite-0001.mat.meta similarity index 52% rename from Assets/Resources/PerformanceTestRunInfo.json.meta rename to Assets/LevelSprites/Materials/Sprite-0001.mat.meta index 54e8c5f..582ded9 100644 --- a/Assets/Resources/PerformanceTestRunInfo.json.meta +++ b/Assets/LevelSprites/Materials/Sprite-0001.mat.meta @@ -1,7 +1,8 @@ fileFormatVersion: 2 -guid: ab20fead5feab4199b573e32bddd4893 -TextScriptImporter: +guid: f6626ab8caebe7a86a9e55192624da5a +NativeFormatImporter: externalObjects: {} + mainObjectFileID: 2100000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/LevelSprites/Materials/canvas.mat b/Assets/LevelSprites/Materials/canvas.mat new file mode 100644 index 0000000..5ea3ecf --- /dev/null +++ b/Assets/LevelSprites/Materials/canvas.mat @@ -0,0 +1,140 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-4824686399436352239 +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: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion + version: 10 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: canvas + m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _SURFACE_TYPE_TRANSPARENT + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: + RenderType: Transparent + disabledShaderPasses: + - MOTIONVECTORS + - DepthOnly + - SHADOWCASTER + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 2800000, guid: 3a0ad13c2a36825029abf1835817392f, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 3a0ad13c2a36825029abf1835817392f, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 10 + - _DstBlendAlpha: 10 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 5 + - _SrcBlendAlpha: 1 + - _Surface: 1 + - _WorkflowMode: 1 + - _XRMotionVectorsPass: 1 + - _ZWrite: 0 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/Resources/PerformanceTestRunSettings.json.meta b/Assets/LevelSprites/Materials/canvas.mat.meta similarity index 52% rename from Assets/Resources/PerformanceTestRunSettings.json.meta rename to Assets/LevelSprites/Materials/canvas.mat.meta index b3681a4..d610b6b 100644 --- a/Assets/Resources/PerformanceTestRunSettings.json.meta +++ b/Assets/LevelSprites/Materials/canvas.mat.meta @@ -1,7 +1,8 @@ fileFormatVersion: 2 -guid: 382fcdb9b0bdc275aa0285f6f924d207 -TextScriptImporter: +guid: 6234c48d3ded2ea4fa66c7790c1ad334 +NativeFormatImporter: externalObjects: {} + mainObjectFileID: 2100000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/LevelSprites/Sprite-0001.png b/Assets/LevelSprites/Sprite-0001.png new file mode 100644 index 0000000..fe89307 --- /dev/null +++ b/Assets/LevelSprites/Sprite-0001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0485b1497bec1c4f6178cac643404aa38ce762568d0d44ccb71dbec6cda64b43 +size 325 diff --git a/Assets/LevelSprites/Sprite-0001.png.meta b/Assets/LevelSprites/Sprite-0001.png.meta new file mode 100644 index 0000000..25cc5cc --- /dev/null +++ b/Assets/LevelSprites/Sprite-0001.png.meta @@ -0,0 +1,130 @@ +fileFormatVersion: 2 +guid: 6ba1f61ae06c83a95b47b9eca739c448 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/LevelSprites/canvas.png b/Assets/LevelSprites/canvas.png new file mode 100644 index 0000000..ef53e23 --- /dev/null +++ b/Assets/LevelSprites/canvas.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88dab40749d97ef92d6354b92b508c69587f45bae3b4a47121979e34a3847d56 +size 751885 diff --git a/Assets/LevelSprites/canvas.png.meta b/Assets/LevelSprites/canvas.png.meta new file mode 100644 index 0000000..7764e7c --- /dev/null +++ b/Assets/LevelSprites/canvas.png.meta @@ -0,0 +1,130 @@ +fileFormatVersion: 2 +guid: 3a0ad13c2a36825029abf1835817392f +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/LevelSprites/door.png b/Assets/LevelSprites/door.png index 044db0d..2109132 100644 --- a/Assets/LevelSprites/door.png +++ b/Assets/LevelSprites/door.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b3f05c72bd0afece85ec7a44481140549a36a08089e9867675ab3b5fef4cfa1a -size 2511 +oid sha256:4a5c7117714707df3a5dbc89354719debfc1fc1fb0464bc2122d59dd6906aa51 +size 2540 diff --git a/Assets/LevelSprites/door_open.png b/Assets/LevelSprites/door_open.png index 5d0e99c..5b4a445 100644 --- a/Assets/LevelSprites/door_open.png +++ b/Assets/LevelSprites/door_open.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1e95577ce164ba9a1462a04f6e35185891232bbb031cac1205c301f72e8bb25 -size 7814 +oid sha256:5e549aa2780f541a67c0b8a4c0bf35d254cc994da6a9463b3f1259aac862f13d +size 823 diff --git a/Assets/Resources/PerformanceTestRunInfo.json b/Assets/Resources/PerformanceTestRunInfo.json deleted file mode 100644 index eca99d7..0000000 --- a/Assets/Resources/PerformanceTestRunInfo.json +++ /dev/null @@ -1 +0,0 @@ -{"TestSuite":"","Date":0,"Player":{"Development":false,"ScreenWidth":0,"ScreenHeight":0,"ScreenRefreshRate":0,"Fullscreen":false,"Vsync":0,"AntiAliasing":0,"Batchmode":false,"RenderThreadingMode":"MultiThreaded","MtRendering":false,"GraphicsJobs":false,"GpuSkinning":true,"Platform":"","ColorSpace":"","AnisotropicFiltering":"","BlendWeights":"","GraphicsApi":"","ScriptingBackend":"IL2CPP","AndroidTargetSdkVersion":"AndroidApiLevelAuto","AndroidBuildSystem":"Gradle","BuildTarget":"WebGL","StereoRenderingPath":"MultiPass"},"Hardware":{"OperatingSystem":"","DeviceModel":"","DeviceName":"","ProcessorType":"","ProcessorCount":0,"GraphicsDeviceName":"","SystemMemorySizeMB":0},"Editor":{"Version":"6000.5.9f1","Branch":"6000.5/staging","Changeset":"b57deb96f08d","Date":1786519423},"Dependencies":["com.unity.2d.sprite@1.0.0","com.unity.ai.navigation@2.0.14","com.unity.burst@1.8.30","com.unity.cinemachine@3.1.7","com.unity.collab-proxy@2.13.6","com.unity.collections@6.5.0","com.unity.ext.nunit@2.1.0","com.unity.ide.rider@3.0.38","com.unity.ide.visualstudio@2.0.26","com.unity.inputsystem@1.20.0","com.unity.mathematics@1.4.0","com.unity.modules.accessibility@1.0.0","com.unity.modules.adaptiveperformance@1.0.0","com.unity.modules.ai@1.0.0","com.unity.modules.androidjni@1.0.0","com.unity.modules.animation@1.0.0","com.unity.modules.assetbundle@1.0.0","com.unity.modules.audio@1.0.0","com.unity.modules.cloth@1.0.0","com.unity.modules.director@1.0.0","com.unity.modules.hierarchycore@1.0.0","com.unity.modules.imageconversion@1.0.0","com.unity.modules.imgui@1.0.0","com.unity.modules.jsonserialize@1.0.0","com.unity.modules.particlesystem@1.0.0","com.unity.modules.physics@1.0.0","com.unity.modules.physics2d@1.0.0","com.unity.modules.physicscore2d@1.0.0","com.unity.modules.screencapture@1.0.0","com.unity.modules.subsystems@1.0.0","com.unity.modules.terrain@1.0.0","com.unity.modules.terrainphysics@1.0.0","com.unity.modules.tilemap@1.0.0","com.unity.modules.ui@1.0.0","com.unity.modules.uielements@1.0.0","com.unity.modules.umbra@1.0.0","com.unity.modules.unityanalytics@1.0.0","com.unity.modules.unitywebrequest@1.0.0","com.unity.modules.unitywebrequestassetbundle@1.0.0","com.unity.modules.unitywebrequestaudio@1.0.0","com.unity.modules.unitywebrequesttexture@1.0.0","com.unity.modules.unitywebrequestwww@1.0.0","com.unity.modules.vectorgraphics@1.0.0","com.unity.modules.vehicles@1.0.0","com.unity.modules.video@1.0.0","com.unity.modules.wind@1.0.0","com.unity.modules.xr@1.0.0","com.unity.multiplayer.center@1.0.1","com.unity.nuget.mono-cecil@1.11.6","com.unity.nuget.newtonsoft-json@3.2.2","com.unity.render-pipelines.core@17.5.0","com.unity.render-pipelines.universal@17.5.0","com.unity.render-pipelines.universal-config@17.5.0","com.unity.searcher@4.9.5","com.unity.settings-manager@2.1.1","com.unity.shadergraph@17.5.0","com.unity.splines@2.9.0","com.unity.test-framework.performance@3.5.0","com.unity.test-framework@1.7.0","com.unity.timeline@1.8.12","com.unity.ugui@2.5.0","com.unity.visualscripting@1.9.12"],"Results":[]} \ No newline at end of file diff --git a/Assets/Resources/PerformanceTestRunSettings.json b/Assets/Resources/PerformanceTestRunSettings.json deleted file mode 100644 index 49438ae..0000000 --- a/Assets/Resources/PerformanceTestRunSettings.json +++ /dev/null @@ -1 +0,0 @@ -{"MeasurementCount":-1} \ No newline at end of file diff --git a/Assets/Scenes/Game 1.unity b/Assets/Scenes/Game 1.unity index 49e831f..b2693bf 100644 --- a/Assets/Scenes/Game 1.unity +++ b/Assets/Scenes/Game 1.unity @@ -2348,8 +2348,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: -501, y: 191} - m_SizeDelta: {x: 50, y: 50} + m_AnchoredPosition: {x: 0, y: 214} + m_SizeDelta: {x: 300, y: 50} m_Pivot: {x: 0.5, y: 0} --- !u!114 &437719865 MonoBehaviour: @@ -2374,7 +2374,7 @@ MonoBehaviour: m_text: Tap below to skip/continue m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 6626286791840884759, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -2405,8 +2405,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_characterHorizontalScale: 1 @@ -2437,10 +2437,10 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: -490.59546, w: -0.5133362} + m_margin: {x: 0, y: 0, z: -194.0149, w: -0.5133362} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_hasFontAssetChanged: 1 + m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &437719866 @@ -3192,7 +3192,7 @@ Light: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 621543616} - m_Enabled: 1 + m_Enabled: 0 serializedVersion: 13 m_Type: 1 m_Color: {r: 1, g: 1, b: 1, a: 1} @@ -3657,11 +3657,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 211603628} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 50, y: 50} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: -220, y: 214} + m_SizeDelta: {x: 300, y: 50} + m_Pivot: {x: 0.5, y: 0} --- !u!114 &701354691 MonoBehaviour: m_ObjectHideFlags: 0 @@ -3685,7 +3685,7 @@ MonoBehaviour: m_text: Tap a door or guard to interact with it m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 6626286791840884759, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -3716,8 +3716,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_characterHorizontalScale: 1 @@ -3751,7 +3751,7 @@ MonoBehaviour: m_margin: {x: 85.01416, y: 0, z: -443.74487, w: -47.409744} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_hasFontAssetChanged: 1 + m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &701354692 @@ -6459,11 +6459,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 211603628} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -225, y: -76} - m_SizeDelta: {x: 200, y: 50} - m_Pivot: {x: 1, y: 1} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 247.9} + m_SizeDelta: {x: 300, y: 50} + m_Pivot: {x: 0.5, y: 0} --- !u!114 &1415863031 MonoBehaviour: m_ObjectHideFlags: 0 @@ -6484,10 +6484,10 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Press to view visible doors and guards + m_text: Press the buttons on the right to view visible doors and guards m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 6626286791840884759, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -6518,8 +6518,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_characterHorizontalScale: 1 @@ -6553,7 +6553,7 @@ MonoBehaviour: m_margin: {x: 0, y: 0, z: -163.43976, w: -52.071808} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_hasFontAssetChanged: 1 + m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &1415863032 @@ -6966,11 +6966,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 211603628} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 118, y: -76} - m_SizeDelta: {x: 200, y: 50} - m_Pivot: {x: 0, y: 1} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 250.2} + m_SizeDelta: {x: 300, y: 50} + m_Pivot: {x: 0.5, y: 0} --- !u!114 &1544896246 MonoBehaviour: m_ObjectHideFlags: 0 @@ -6991,10 +6991,10 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Press to view possible doors and guards + m_text: Press the buttons on the left to view possible doors and guards m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 6626286791840884759, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -7025,8 +7025,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 256 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 m_characterHorizontalScale: 1 @@ -7060,7 +7060,7 @@ MonoBehaviour: m_margin: {x: 0, y: 0, z: -163.43976, w: -52.071808} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_hasFontAssetChanged: 1 + m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &1544896247 @@ -11706,7 +11706,7 @@ MonoBehaviour: m_HandleRect: {fileID: 1166236218371264666} m_Direction: 0 m_Value: 0 - m_Size: 0.99992377 + m_Size: 0.99999815 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -12975,7 +12975,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0.0013427734, y: 0.00003419119} + m_AnchoredPosition: {x: 0.00061035156, y: 0.00003419119} m_SizeDelta: {x: -69.605804, y: 0} m_Pivot: {x: 0.5, y: 1} --- !u!224 &7166030428587570927 diff --git a/Assets/Scripts/CameraController.cs b/Assets/Scripts/CameraController.cs index 41bd5ef..ced6ea8 100644 --- a/Assets/Scripts/CameraController.cs +++ b/Assets/Scripts/CameraController.cs @@ -206,15 +206,17 @@ public class CameraController : MonoBehaviour float pushSpeed = 5f; float previousPosition = -1f; float counter = 0f; - + bool done = false; while (activeDoor != null && activeDolly != null && activeDolly.CameraPosition > previousPosition) { previousPosition = activeDolly.CameraPosition; activeDolly.CameraPosition += pushSpeed * Time.deltaTime; counter += Time.deltaTime; - if (counter > 4f && isDeathDoor) + if (counter > 4f && isDeathDoor && !done) { globalLight.SetActive(true); + AudioManager.Instance.PlaySound("WordAdd"); + done = true; } yield return null; } diff --git a/Assets/Scripts/DoorManager.cs b/Assets/Scripts/DoorManager.cs index 0e54a40..e0ff067 100644 --- a/Assets/Scripts/DoorManager.cs +++ b/Assets/Scripts/DoorManager.cs @@ -157,7 +157,7 @@ public class DoorManager : MonoBehaviour, IDescribable { if (!string.IsNullOrEmpty(mod)) { - return "The " + mod.ToLower() + " door"; + return "The " + mod.Replace("#","").ToLower() + " door"; } else { diff --git a/Assets/Scripts/GuardManager.cs b/Assets/Scripts/GuardManager.cs index 7797407..e2ee425 100644 --- a/Assets/Scripts/GuardManager.cs +++ b/Assets/Scripts/GuardManager.cs @@ -172,7 +172,7 @@ public class GuardManager : MonoBehaviour, IDescribable public string GetDescribeName() { - return GetUnknownDescription().CapitalizeFirstLetter(); + return GetUnknownDescription().Replace("#","").CapitalizeFirstLetter(); } public string GetDescription() diff --git a/Assets/Scripts/LevelLoader.cs b/Assets/Scripts/LevelLoader.cs index 71d4d88..8c06535 100644 --- a/Assets/Scripts/LevelLoader.cs +++ b/Assets/Scripts/LevelLoader.cs @@ -99,6 +99,11 @@ public class LevelLoader : Singleton //its late, i cant think straight var offset = i == data.guards.Count - 1 ? -2 : 2; offset = data.guards.Count == 1 ? 0 : offset; + + if (data.globalmod == "HORSE") + { + offset *= 2; + } guardinstance.transform.position = new Vector3(spacingGuards*(i+1)+offset, 0, -5); diff --git a/Assets/Scripts/ReloadLevelScript.cs b/Assets/Scripts/ReloadLevelScript.cs index 51e0ba5..cb9be7e 100644 --- a/Assets/Scripts/ReloadLevelScript.cs +++ b/Assets/Scripts/ReloadLevelScript.cs @@ -17,6 +17,7 @@ public class ReloadLevelScript : MonoBehaviour public void ReloadLevel() { + AudioManager.Instance.PlaySound("WordAdd"); SceneManager.LoadScene(1); } } diff --git a/Assets/Scripts/SpeechManager.cs b/Assets/Scripts/SpeechManager.cs index 5b11904..6958ec8 100644 --- a/Assets/Scripts/SpeechManager.cs +++ b/Assets/Scripts/SpeechManager.cs @@ -97,13 +97,18 @@ public class SpeechManager : Singleton var item = textBuffer.Dequeue(); speaker = item.Value; - if (LevelLoader.Instance.GlobalModifier == "HORSE" && speaker == "GUARD") + if (LevelLoader.Instance.GlobalModifier == "HORSE" && speaker == "HORSE") { Debug.LogError("HORSE"); mainText.text = item.Key; playerPanel.SetActive(false); otherPanel.SetActive(false); AudioManager.Instance.PlaySound("Horse"); + playerPanel.SetActive(false); + otherPanel.SetActive(true); + otherPanel.transform.GetChild(0).gameObject.SetActive(false); + otherPanel.transform.GetChild(1).gameObject.SetActive(true); + otherPanel.transform.GetChild(2).gameObject.SetActive(false); return; } diff --git a/Assets/UIPrefabs/DoorInfoPanel.prefab b/Assets/UIPrefabs/DoorInfoPanel.prefab index e43b61a..e17a907 100644 --- a/Assets/UIPrefabs/DoorInfoPanel.prefab +++ b/Assets/UIPrefabs/DoorInfoPanel.prefab @@ -35,7 +35,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 5, y: -47.43} - m_SizeDelta: {x: 200, y: 50} + m_SizeDelta: {x: 180.2, y: 37.7} m_Pivot: {x: 0, y: 1} --- !u!222 &841558344002355106 CanvasRenderer: @@ -67,8 +67,8 @@ MonoBehaviour: m_Calls: [] m_text: New Text m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontAsset: {fileID: 11400000, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} + m_sharedMaterial: {fileID: 6626286791840884759, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -92,8 +92,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 15 - m_fontSizeBase: 15 + m_fontSize: 10 + m_fontSizeBase: 10 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -198,14 +198,14 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Sprite: {fileID: 21300000, guid: 4845b9c63e0d4c89fbcbbcd4b7718876, type: 3} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 @@ -214,7 +214,7 @@ MonoBehaviour: m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 + m_PixelsPerUnitMultiplier: 0.5 --- !u!114 &6168579704574998770 MonoBehaviour: m_ObjectHideFlags: 0 @@ -326,8 +326,8 @@ MonoBehaviour: m_Calls: [] m_text: Door of Life m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontAsset: {fileID: 11400000, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} + m_sharedMaterial: {fileID: 6626286791840884759, guid: ab8501fb007fff340b49c3bf9b3147b7, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -351,7 +351,7 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 33.35 + m_fontSize: 26.2 m_fontSizeBase: 24 m_fontWeight: 400 m_enableAutoSizing: 1 diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index b7ec068..e5d5709 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -149,8 +149,7 @@ PlayerSettings: visionOSBundleVersion: 1.0 tvOSBundleVersion: 1.0 bundleVersion: 0.1.0 - preloadedAssets: - - {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3} + preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0 xboxOneDisableKinectGpuReservation: 1