From 44c59c425c87083dfd710493f5c43adc88dcaadc Mon Sep 17 00:00:00 2001 From: WillJeynes Date: Fri, 28 Aug 2026 22:02:44 +0100 Subject: [PATCH] Fix some bugs --- Assets/LevelData/a_tutorial2.json | 2 +- Assets/LevelData/b_old_classic.json | 2 +- Assets/LevelData/c_blind.json | 2 +- Assets/LevelData/e_jester.json | 6 +- Assets/LevelData/g_uncertain.json | 5 +- Assets/LevelData/k_life.json | 2 +- Assets/LevelPrefabs/DoorPrefab 1.prefab | 522 +++++++++++++++++- Assets/LevelPrefabs/GuardPrefab.prefab | 2 +- Assets/LevelPrefabs/HorsePrefab.prefab | 2 +- Assets/LevelSprites/Guards/guard_2.png | 4 +- Assets/Resources.meta | 8 + Assets/Resources/PerformanceTestRunInfo.json | 1 + .../Resources/PerformanceTestRunSettings.json | 1 + Assets/Scenes/MainMenu.unity | 2 +- Assets/Scripts/CameraController.cs | 2 +- Assets/Scripts/CupShuffle.cs | 4 + Assets/Scripts/DoorManager.cs | 30 +- Assets/Scripts/GuardManager.cs | 10 +- Assets/Scripts/LevelLoader.cs | 7 +- Assets/Scripts/StatusManager.cs | 4 +- Assets/Scripts/Utils/ListExtensions.cs | 4 +- ProjectSettings/ProjectSettings.asset | 3 +- 22 files changed, 596 insertions(+), 29 deletions(-) create mode 100644 Assets/Resources.meta create mode 100644 Assets/Resources/PerformanceTestRunInfo.json create mode 100644 Assets/Resources/PerformanceTestRunSettings.json diff --git a/Assets/LevelData/a_tutorial2.json b/Assets/LevelData/a_tutorial2.json index c859787..deef733 100644 --- a/Assets/LevelData/a_tutorial2.json +++ b/Assets/LevelData/a_tutorial2.json @@ -17,7 +17,7 @@ ], "guardsmods": [ "HAT", - "SHORT" + "BLUE" ], "introdialog": "One of us is lying, o small one", "dialog": { diff --git a/Assets/LevelData/b_old_classic.json b/Assets/LevelData/b_old_classic.json index 2751f6f..ca58dcc 100644 --- a/Assets/LevelData/b_old_classic.json +++ b/Assets/LevelData/b_old_classic.json @@ -21,7 +21,7 @@ ], "guardsmods": [ "HAT", - "SHORT" + "BLUE" ], "doorsmods": [ "BLUE", diff --git a/Assets/LevelData/c_blind.json b/Assets/LevelData/c_blind.json index bd60468..2b261a1 100644 --- a/Assets/LevelData/c_blind.json +++ b/Assets/LevelData/c_blind.json @@ -21,7 +21,7 @@ ], "guardsmods": [ "HAT", - "SHORT" + "BLUE" ], "doorsmods": [ "BLUE", diff --git a/Assets/LevelData/e_jester.json b/Assets/LevelData/e_jester.json index 78da13f..41a4d3f 100644 --- a/Assets/LevelData/e_jester.json +++ b/Assets/LevelData/e_jester.json @@ -29,11 +29,13 @@ ], "guardsmods": [ "HAT", - "SHORT" + "BLUE", + "RED" ], "doorsmods": [ "BLUE", - "RED" + "RED", + "GREEN" ], "introdialog": "Be WARNED, one of us lies with no pattern or reason", "dialog": { diff --git a/Assets/LevelData/g_uncertain.json b/Assets/LevelData/g_uncertain.json index a2712d0..d89b5f0 100644 --- a/Assets/LevelData/g_uncertain.json +++ b/Assets/LevelData/g_uncertain.json @@ -30,11 +30,12 @@ "doorsmods": [ "BLUE", "RED", - "PLAIN" + "GREEN" ], "guardsmods": [ "HAT", - "SHORT" + "BLUE", + "RED" ], "introdialog": "One of these doors has never been opened.", "dialog": { diff --git a/Assets/LevelData/k_life.json b/Assets/LevelData/k_life.json index 47b55e1..1ea61ff 100644 --- a/Assets/LevelData/k_life.json +++ b/Assets/LevelData/k_life.json @@ -21,7 +21,7 @@ ], "guardsmods": [ "HAT", - "SHORT" + "BLUE" ], "doorsmods": [ "BLUE", diff --git a/Assets/LevelPrefabs/DoorPrefab 1.prefab b/Assets/LevelPrefabs/DoorPrefab 1.prefab index e763d17..89482cd 100644 --- a/Assets/LevelPrefabs/DoorPrefab 1.prefab +++ b/Assets/LevelPrefabs/DoorPrefab 1.prefab @@ -1,5 +1,118 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: +--- !u!1 &1506419440308516800 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4275585824570850193} + - component: {fileID: 2590228332576071608} + - component: {fileID: 8533676441368885741} + - component: {fileID: 2494414474078969803} + m_Layer: 6 + m_Name: Plane (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4275585824570850193 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1506419440308516800} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + 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} +--- !u!33 &2590228332576071608 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1506419440308516800} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &8533676441368885741 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1506419440308516800} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_ForceMeshLod: -1 + m_MeshLodSelectionBias: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, 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_GlobalIlluminationMeshLod: 0 + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_MaskInteraction: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!64 &2494414474078969803 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1506419440308516800} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 5 + m_Convex: 0 + m_CookingOptions: 30 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &2102034327205085668 GameObject: m_ObjectHideFlags: 0 @@ -44,7 +157,7 @@ Light: serializedVersion: 13 m_Type: 0 m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 30 + m_Intensity: 60 m_Range: 25.4 m_SpotAngle: 62.726025 m_InnerSpotAngle: 18.196878 @@ -127,6 +240,119 @@ MonoBehaviour: m_ShadowLayerMask: 1 m_RenderingLayers: 1 m_ShadowRenderingLayers: 1 +--- !u!1 &2210053730125719316 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1545925190312489685} + - component: {fileID: 6489312344219198563} + - component: {fileID: 5595875933643548985} + - component: {fileID: 4612619318186142091} + m_Layer: 6 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1545925190312489685 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2210053730125719316} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + 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} +--- !u!33 &6489312344219198563 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2210053730125719316} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &5595875933643548985 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2210053730125719316} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_ForceMeshLod: -1 + m_MeshLodSelectionBias: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, 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_GlobalIlluminationMeshLod: 0 + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_MaskInteraction: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!64 &4612619318186142091 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2210053730125719316} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 5 + m_Convex: 0 + m_CookingOptions: 30 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &2658980241334070197 GameObject: m_ObjectHideFlags: 0 @@ -450,6 +676,8 @@ Transform: - {fileID: 5450540301096024125} - {fileID: 34709828658865169} - {fileID: 6918252568792756431} + - {fileID: 6102534033311042695} + - {fileID: 7105669767734819822} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!65 &7866095202227853034 @@ -618,6 +846,298 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineSplineSmoother AutoSmooth: 1 +--- !u!1 &6415465451029568722 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5529611236446596589} + - component: {fileID: 5550103839375517047} + - component: {fileID: 7032942705726985979} + - component: {fileID: 1630263232530857404} + m_Layer: 6 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5529611236446596589 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6415465451029568722} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + 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} +--- !u!33 &5550103839375517047 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6415465451029568722} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &7032942705726985979 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6415465451029568722} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_ForceMeshLod: -1 + m_MeshLodSelectionBias: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, 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_GlobalIlluminationMeshLod: 0 + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_MaskInteraction: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!64 &1630263232530857404 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6415465451029568722} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 5 + m_Convex: 0 + m_CookingOptions: 30 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &6864457669719155849 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7105669767734819822} + m_Layer: 6 + m_Name: MANYDEATH + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7105669767734819822 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6864457669719155849} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -0.4} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 5529611236446596589} + - {fileID: 7667077127026127658} + - {fileID: 4275585824570850193} + m_Father: {fileID: 6261725771962263685} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &7254671688974194731 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6102534033311042695} + m_Layer: 6 + m_Name: ONEDEATH + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6102534033311042695 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7254671688974194731} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -0.4} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1545925190312489685} + m_Father: {fileID: 6261725771962263685} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &7801453951043561867 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7667077127026127658} + - component: {fileID: 2578530183799417545} + - component: {fileID: 195741580793510385} + - component: {fileID: 6622856833549291109} + m_Layer: 6 + m_Name: Plane (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7667077127026127658 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7801453951043561867} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0} + 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} +--- !u!33 &2578530183799417545 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7801453951043561867} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &195741580793510385 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7801453951043561867} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_ForceMeshLod: -1 + m_MeshLodSelectionBias: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, 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_GlobalIlluminationMeshLod: 0 + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_MaskInteraction: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!64 &6622856833549291109 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7801453951043561867} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 5 + m_Convex: 0 + m_CookingOptions: 30 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &8392774035223462151 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/LevelPrefabs/GuardPrefab.prefab b/Assets/LevelPrefabs/GuardPrefab.prefab index 13bc83b..0a33793 100644 --- a/Assets/LevelPrefabs/GuardPrefab.prefab +++ b/Assets/LevelPrefabs/GuardPrefab.prefab @@ -44,7 +44,7 @@ Light: serializedVersion: 13 m_Type: 0 m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 30 + m_Intensity: 60 m_Range: 25.4 m_SpotAngle: 62.726025 m_InnerSpotAngle: 18.196878 diff --git a/Assets/LevelPrefabs/HorsePrefab.prefab b/Assets/LevelPrefabs/HorsePrefab.prefab index d1a245c..6826e66 100644 --- a/Assets/LevelPrefabs/HorsePrefab.prefab +++ b/Assets/LevelPrefabs/HorsePrefab.prefab @@ -230,7 +230,7 @@ Light: serializedVersion: 13 m_Type: 0 m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 30 + m_Intensity: 60 m_Range: 25.4 m_SpotAngle: 62.726025 m_InnerSpotAngle: 18.196878 diff --git a/Assets/LevelSprites/Guards/guard_2.png b/Assets/LevelSprites/Guards/guard_2.png index 80fb426..7886808 100644 --- a/Assets/LevelSprites/Guards/guard_2.png +++ b/Assets/LevelSprites/Guards/guard_2.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b5f86958061a0964579249d0bf250277abd7027339ac68f32f7c062bf752b1b -size 1320 +oid sha256:0478be47e7fa4a05cd4f0a7cba385b2768f39f6f05c6010ed6313c393ce4de98 +size 1322 diff --git a/Assets/Resources.meta b/Assets/Resources.meta new file mode 100644 index 0000000..0297c91 --- /dev/null +++ b/Assets/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ce995914cc8af1826b3ca2eae230fa5f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/PerformanceTestRunInfo.json b/Assets/Resources/PerformanceTestRunInfo.json new file mode 100644 index 0000000..f3ee93e --- /dev/null +++ b/Assets/Resources/PerformanceTestRunInfo.json @@ -0,0 +1 @@ +{"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.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 new file mode 100644 index 0000000..49438ae --- /dev/null +++ b/Assets/Resources/PerformanceTestRunSettings.json @@ -0,0 +1 @@ +{"MeasurementCount":-1} \ No newline at end of file diff --git a/Assets/Scenes/MainMenu.unity b/Assets/Scenes/MainMenu.unity index 1b9de58..59bfc64 100644 --- a/Assets/Scenes/MainMenu.unity +++ b/Assets/Scenes/MainMenu.unity @@ -582,7 +582,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 456.16998, y: -25} - m_SizeDelta: {x: 0, y: 50} + m_SizeDelta: {x: 170.48, y: 50} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &309858600 MonoBehaviour: diff --git a/Assets/Scripts/CameraController.cs b/Assets/Scripts/CameraController.cs index 35c8c13..e23b278 100644 --- a/Assets/Scripts/CameraController.cs +++ b/Assets/Scripts/CameraController.cs @@ -250,7 +250,7 @@ public class CameraController : MonoBehaviour if (currentGuardManager != null) { DialogManager.Instance.StartDialog(currentGuardManager); - talkButton.gameObject.SetActive(false); + // talkButton.gameObject.SetActive(false); } } diff --git a/Assets/Scripts/CupShuffle.cs b/Assets/Scripts/CupShuffle.cs index 971e1a1..aea6c6f 100644 --- a/Assets/Scripts/CupShuffle.cs +++ b/Assets/Scripts/CupShuffle.cs @@ -47,6 +47,10 @@ public class CupShuffle : Singleton sorted[0].GetComponent().mod = "#LEFT"; sorted[1].GetComponent().mod = "#CENTER"; sorted[2].GetComponent().mod = "#RIGHT"; + + LevelLoader.Instance.Doors[0] = sorted[0].GetComponent(); + LevelLoader.Instance.Doors[1] = sorted[1].GetComponent(); + LevelLoader.Instance.Doors[2] = sorted[2].GetComponent(); } IEnumerator SwapSlots(int slotA, int slotB) diff --git a/Assets/Scripts/DoorManager.cs b/Assets/Scripts/DoorManager.cs index 01d0353..83038ae 100644 --- a/Assets/Scripts/DoorManager.cs +++ b/Assets/Scripts/DoorManager.cs @@ -30,6 +30,15 @@ public class DoorManager : MonoBehaviour, IDescribable void Start() { indicatorLight = transform.FindChildRecursive("IndicatorLight").GetComponent(); + + //trolley problerm indicatgor + var oneDeath = transform.FindChildRecursive("ONEDEATH"); + var manyDeath = transform.FindChildRecursive("MANYDEATH"); + oneDeath.gameObject.SetActive(false); + manyDeath.gameObject.SetActive(false); + + + if (mod == "BLUE") { // this.GetComponentInChildren().material = blueMaterial; @@ -40,6 +49,19 @@ public class DoorManager : MonoBehaviour, IDescribable // this.GetComponentInChildren().material = redMaterial; indicatorLight.initialColor = Color.red; } + else if (mod == "GREEN") + { + // this.GetComponentInChildren().material = redMaterial; + indicatorLight.initialColor = Color.green; + } + else if (mod == "#ONE") + { + oneDeath.gameObject.SetActive(true); + } + else if (mod == "#MANY") + { + manyDeath.gameObject.SetActive(true); + } focusLight = transform.FindChildRecursive("FocusLight").GetComponent(); } @@ -55,7 +77,7 @@ public class DoorManager : MonoBehaviour, IDescribable { focusLight.intensity += Time.deltaTime * 100; } - else if (isfocussed == 0 && focusLight.intensity > 30) + else if (isfocussed == 0 && focusLight.intensity > 60) { focusLight.intensity -= Time.deltaTime * 100; } @@ -123,14 +145,14 @@ public class DoorManager : MonoBehaviour, IDescribable public string GetUnknownDescription() { - if (mod == "RED" || mod == "BLUE" || mod == "PLAIN") + if (mod == "RED" || mod == "BLUE" || mod == "GREEN") { - return $"the {mod} door"; + return $"the {mod.ToLower()} door"; } if (mod == "#LEFT" || mod == "#CENTER" || mod == "#RIGHT") { - return $"the {mod.Replace("#","")} door"; + return $"the {mod.Replace("#","").ToLower()} door"; } // add more modification here diff --git a/Assets/Scripts/GuardManager.cs b/Assets/Scripts/GuardManager.cs index 6a5920c..34914d5 100644 --- a/Assets/Scripts/GuardManager.cs +++ b/Assets/Scripts/GuardManager.cs @@ -27,7 +27,7 @@ public class GuardManager : MonoBehaviour, IDescribable // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { - if (mod == "SHORT") + if (mod == "BLUE") { GetComponentInChildren().material = GuardMaterials.ByKey("OTHER"); } @@ -54,7 +54,7 @@ public class GuardManager : MonoBehaviour, IDescribable { focusLight.intensity += Time.deltaTime * 100; } - else if (isfocussed == 0 && focusLight.intensity > 30) + else if (isfocussed == 0 && focusLight.intensity > 60) { focusLight.intensity -= Time.deltaTime * 100; } @@ -170,9 +170,9 @@ public class GuardManager : MonoBehaviour, IDescribable public string GetUnknownDescription() { - if (mod == "SHORT") + if (mod == "BLUE") { - return "the short guard"; + return "the blue guard"; } else if (mod == "HAT") { @@ -188,7 +188,7 @@ public class GuardManager : MonoBehaviour, IDescribable } else { - return "the plain guard"; + return "the red guard"; } // add more modification here } diff --git a/Assets/Scripts/LevelLoader.cs b/Assets/Scripts/LevelLoader.cs index 45f012b..6ca83a8 100644 --- a/Assets/Scripts/LevelLoader.cs +++ b/Assets/Scripts/LevelLoader.cs @@ -91,7 +91,12 @@ public class LevelLoader : Singleton for(int i = 0; i < data.guards.Count; i++) { var guardinstance = Instantiate(GuardPrefabs.ByKey(data.guards[i].type)); - guardinstance.transform.position = new Vector3(spacingGuards*(i+1), 0, -5); + + //its late, i cant think straight + var offset = i == data.guards.Count - 1 ? -2 : 2; + offset = data.guards.Count == 1 ? 0 : offset; + + guardinstance.transform.position = new Vector3(spacingGuards*(i+1)+offset, 0, -5); var manager = guardinstance.GetComponent(); manager.type = data.guards[i].action; diff --git a/Assets/Scripts/StatusManager.cs b/Assets/Scripts/StatusManager.cs index 7d139c8..c4d3df6 100644 --- a/Assets/Scripts/StatusManager.cs +++ b/Assets/Scripts/StatusManager.cs @@ -28,8 +28,8 @@ public class StatusManager : Singleton public void PopulatePanels() { - PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast().ToList(),false, LevelLoader.Instance.GlobalModifier == "HIDE"); - PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast().ToList(), false, false); + PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast().ToList().Shuffle(),false, LevelLoader.Instance.GlobalModifier == "HIDE"); + PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast().ToList().Shuffle(), false, false); PopulatePanel(doorPanelThoughts, doorPrefab, LevelLoader.Instance.Doors.Cast().ToList(),true, LevelLoader.Instance.GlobalModifier == "HIDE"); PopulatePanel(guardPanelThoughts, guardPrefab, LevelLoader.Instance.Guards.Cast().ToList(), true, false); diff --git a/Assets/Scripts/Utils/ListExtensions.cs b/Assets/Scripts/Utils/ListExtensions.cs index 5a3a50d..08bb9d5 100644 --- a/Assets/Scripts/Utils/ListExtensions.cs +++ b/Assets/Scripts/Utils/ListExtensions.cs @@ -5,7 +5,7 @@ namespace Utils { public static class ListExtensions { - public static void Shuffle(this List list) + public static List Shuffle(this List list) { for (int i = list.Count - 1; i > 0; i--) { @@ -13,6 +13,8 @@ namespace Utils (list[i], list[j]) = (list[j], list[i]); } + + return list; } public static T GetRandomAndRemove(this List list) diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index e5d5709..b7ec068 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -149,7 +149,8 @@ PlayerSettings: visionOSBundleVersion: 1.0 tvOSBundleVersion: 1.0 bundleVersion: 0.1.0 - preloadedAssets: [] + preloadedAssets: + - {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3} metroInputSource: 0 wsaTransparentSwapchain: 0 xboxOneDisableKinectGpuReservation: 1