Starting to integrate the new art

This commit is contained in:
WillJeynes
2026-08-29 22:29:12 +01:00
parent b1705cd041
commit ecb078809b
13 changed files with 1637 additions and 279 deletions
+291 -3
View File
@@ -113,6 +113,146 @@ MeshCollider:
m_Convex: 0 m_Convex: 0
m_CookingOptions: 30 m_CookingOptions: 30
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1699298839218166779
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7047078567482699607}
- component: {fileID: 18885969086235008}
- component: {fileID: 6184765541825861383}
- component: {fileID: 7747694789893425261}
m_Layer: 0
m_Name: DeathCam
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7047078567482699607
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1699298839218166779}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0.4999999, z: -11}
m_LocalScale: {x: 0.4115226, y: 0.24691355, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6261725771962263685}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &18885969086235008
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1699298839218166779}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f9dfa5b682dcd46bda6128250e975f58, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineCamera
Priority:
Enabled: 1
m_Value: 10
OutputChannel: 1
StandbyUpdate: 2
m_StreamingVersion: 20241001
m_LegacyPriority: 0
Target:
TrackingTarget: {fileID: 0}
LookAtTarget: {fileID: 0}
CustomLookAtTarget: 0
Lens:
FieldOfView: 60.000004
OrthographicSize: 5
NearClipPlane: 0.3
FarClipPlane: 1000
Dutch: 0
ModeOverride: 0
PhysicalProperties:
GateFit: 2
SensorSize: {x: 21.946, y: 16.002}
LensShift: {x: 0, y: 0}
FocusDistance: 10
Iso: 200
ShutterSpeed: 0.005
Aperture: 16
BladeCount: 5
Curvature: {x: 2, y: 11}
BarrelClipping: 0.25
Anamorphism: 0
BlendHint: 0
--- !u!114 &6184765541825861383
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1699298839218166779}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 90eebaab98e4b44b0ba8c79821e554e1, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineSplineDolly
m_SplineSettings:
Spline: {fileID: 4900594939756415936}
Position: 0
Units: 0
SplineOffset: {x: 0, y: 0, z: 0}
CameraRotation: 0
Damping:
Enabled: 0
Position: {x: 0, y: 0, z: 0}
Angular: 0
AutomaticDolly:
Enabled: 0
Method:
rid: -2
m_LegacyPosition: -1
m_LegacyUnits: 0
m_LegacySpline: {fileID: 0}
references:
version: 2
RefIds:
- rid: -2
type: {class: , ns: , asm: }
--- !u!114 &7747694789893425261
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1699298839218166779}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f38bda98361e1de48a4ca2bd86ea3c17, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineRotationComposer
Composition:
ScreenPosition: {x: 0, y: 0}
DeadZone:
Enabled: 0
Size: {x: 0.2, y: 0.2}
HardLimits:
Enabled: 0
Size: {x: 0.8, y: 0.8}
Offset: {x: 0, y: 0}
CenterOnActivate: 1
TargetOffset: {x: 0, y: 0, z: 0}
Damping: {x: 0.5, y: 0.5}
Lookahead:
Enabled: 0
Time: 0
Smoothing: 0
IgnoreY: 0
--- !u!1 &2102034327205085668 --- !u!1 &2102034327205085668
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -445,7 +585,7 @@ MonoBehaviour:
m_SplineSettings: m_SplineSettings:
Spline: {fileID: 8692689237725241462} Spline: {fileID: 8692689237725241462}
Position: 0 Position: 0
Units: 1 Units: 0
SplineOffset: {x: 0, y: 0, z: 0} SplineOffset: {x: 0, y: 0, z: 0}
CameraRotation: 0 CameraRotation: 0
Damping: Damping:
@@ -493,6 +633,152 @@ MonoBehaviour:
Time: 0 Time: 0
Smoothing: 0 Smoothing: 0
IgnoreY: 0 IgnoreY: 0
--- !u!1 &2681921440081048080
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4334807056718839526}
- component: {fileID: 4900594939756415936}
- component: {fileID: 7076488144175942871}
m_Layer: 0
m_Name: Death Dolly Spline
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4334807056718839526
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2681921440081048080}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0.49999997, z: -11}
m_LocalScale: {x: 0.4115226, y: 0.24691355, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6261725771962263685}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4900594939756415936
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2681921440081048080}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dab5c7d4c32e743048dfca98e2d5914f, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Splines::UnityEngine.Splines.SplineContainer
m_Spline:
m_EditModeType: 1
m_Knots: []
m_MetaData: []
m_Closed: 0
m_IntData:
m_Data: []
m_FloatData:
m_Data: []
m_Float4Data:
m_Data: []
m_ObjectData:
m_Data: []
m_Splines:
- m_EditModeType: 1
m_Knots:
- Position:
x: 0
y: 0
z: 0
TangentIn:
x: 0
y: 0
z: 0
TangentOut:
x: 0
y: 0
z: 0
Rotation:
value:
x: 0.0008891812
y: -0.011103803
z: 0.000025192196
w: 0.999938
- Position:
x: -0.17
y: -0.015000105
z: 18.89
TangentIn:
x: 0
y: 0
z: 0
TangentOut:
x: 0
y: 0
z: 0
Rotation:
value:
x: 0.0008894407
y: -0.011103782
z: 0.0000018435329
w: 0.999938
- Position:
x: -0.25103
y: -257.7437
z: 9.09
TangentIn:
x: 0
y: 0
z: 0
TangentOut:
x: 0
y: 0
z: 0
Rotation:
value:
x: 0.0008893516
y: -0.011103789
z: 0.0000098757855
w: 0.99993795
m_MetaData:
- Mode: 1
Tension: 0.5
- Mode: 1
Tension: 0.5
- Mode: 1
Tension: 0.5
m_Closed: 0
m_IntData:
m_Data: []
m_FloatData:
m_Data: []
m_Float4Data:
m_Data: []
m_ObjectData:
m_Data: []
m_Knots:
m_KnotsLink: []
--- !u!114 &7076488144175942871
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2681921440081048080}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c5342500578afb24a9b83d6343d32a0f, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineSplineSmoother
AutoSmooth: 0
--- !u!1 &3755624549931742426 --- !u!1 &3755624549931742426
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -672,6 +958,8 @@ Transform:
m_LocalScale: {x: 2.43, y: 4.05, z: 1} m_LocalScale: {x: 2.43, y: 4.05, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 7047078567482699607}
- {fileID: 4334807056718839526}
- {fileID: 3377228030092779522} - {fileID: 3377228030092779522}
- {fileID: 3219076263300095770} - {fileID: 3219076263300095770}
- {fileID: 7563422810526552726} - {fileID: 7563422810526552726}
@@ -723,8 +1011,8 @@ MonoBehaviour:
isfocussed: 0 isfocussed: 0
doorCamera: {fileID: 1305966551938095645} doorCamera: {fileID: 1305966551938095645}
doorSplineDolly: {fileID: 4016467311621144490} doorSplineDolly: {fileID: 4016467311621144490}
deathCamera: {fileID: 0} deathCamera: {fileID: 18885969086235008}
deathSplineDolly: {fileID: 0} deathSplineDolly: {fileID: 6184765541825861383}
--- !u!1 &5594795846395120415 --- !u!1 &5594795846395120415
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
+528 -4
View File
@@ -499,6 +499,133 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &155228031
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 155228032}
- component: {fileID: 155228036}
- component: {fileID: 155228035}
- component: {fileID: 155228034}
- component: {fileID: 155228033}
m_Layer: 0
m_Name: Backwall (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &155228032
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 155228031}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: -158.7, y: 21.5, z: -102}
m_LocalScale: {x: 900, y: 900, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1082548083}
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &155228033
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 155228031}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8e702867e24946d529c85ca74996f6d7, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::TextureTiler
textureWorldSize: 1
surface: 2
--- !u!65 &155228034
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 155228031}
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: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &155228035
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 155228031}
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: 510c3d329ceee7bab9e0d94a3d9acd77, 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!33 &155228036
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 155228031}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &168153416 --- !u!1 &168153416
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -576,6 +703,133 @@ MonoBehaviour:
m_ChildScaleWidth: 0 m_ChildScaleWidth: 0
m_ChildScaleHeight: 0 m_ChildScaleHeight: 0
m_ReverseArrangement: 0 m_ReverseArrangement: 0
--- !u!1 &181004334
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 181004335}
- component: {fileID: 181004339}
- component: {fileID: 181004338}
- component: {fileID: 181004337}
- component: {fileID: 181004336}
m_Layer: 0
m_Name: Backwall (2)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &181004335
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 181004334}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 111, y: -82, z: -405}
m_LocalScale: {x: 900, y: 900, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1082548083}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &181004336
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 181004334}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8e702867e24946d529c85ca74996f6d7, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::TextureTiler
textureWorldSize: 1
surface: 2
--- !u!65 &181004337
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 181004334}
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: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &181004338
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 181004334}
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: 510c3d329ceee7bab9e0d94a3d9acd77, 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!33 &181004339
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 181004334}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &211603624 --- !u!1 &211603624
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -1913,6 +2167,146 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 494747085} m_GameObject: {fileID: 494747085}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!1 &517311409
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 517311413}
- component: {fileID: 517311412}
- component: {fileID: 517311411}
- component: {fileID: 517311410}
m_Layer: 0
m_Name: IntroCam
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &517311410
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 517311409}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f38bda98361e1de48a4ca2bd86ea3c17, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineRotationComposer
Composition:
ScreenPosition: {x: 0, y: 0}
DeadZone:
Enabled: 0
Size: {x: 0.2, y: 0.2}
HardLimits:
Enabled: 0
Size: {x: 0.8, y: 0.8}
Offset: {x: 0, y: 0}
CenterOnActivate: 1
TargetOffset: {x: 0, y: 0, z: 0}
Damping: {x: 0.5, y: 0.5}
Lookahead:
Enabled: 0
Time: 0
Smoothing: 0
IgnoreY: 0
--- !u!114 &517311411
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 517311409}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 90eebaab98e4b44b0ba8c79821e554e1, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineSplineDolly
m_SplineSettings:
Spline: {fileID: 1259864386}
Position: 0
Units: 1
SplineOffset: {x: 0, y: 0, z: 0}
CameraRotation: 0
Damping:
Enabled: 0
Position: {x: 0, y: 0, z: 0}
Angular: 0
AutomaticDolly:
Enabled: 0
Method:
rid: -2
m_LegacyPosition: -1
m_LegacyUnits: 0
m_LegacySpline: {fileID: 0}
references:
version: 2
RefIds:
- rid: -2
type: {class: , ns: , asm: }
--- !u!114 &517311412
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 517311409}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f9dfa5b682dcd46bda6128250e975f58, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineCamera
Priority:
Enabled: 0
m_Value: 0
OutputChannel: 1
StandbyUpdate: 2
m_StreamingVersion: 20241001
m_LegacyPriority: 0
Target:
TrackingTarget: {fileID: 0}
LookAtTarget: {fileID: 0}
CustomLookAtTarget: 0
Lens:
FieldOfView: 60.000004
OrthographicSize: 5
NearClipPlane: 0.3
FarClipPlane: 1000
Dutch: 0
ModeOverride: 0
PhysicalProperties:
GateFit: 2
SensorSize: {x: 21.946, y: 16.002}
LensShift: {x: 0, y: 0}
FocusDistance: 10
Iso: 200
ShutterSpeed: 0.005
Aperture: 16
BladeCount: 5
Curvature: {x: 2, y: 11}
BarrelClipping: 0.25
Anamorphism: 0
BlendHint: 0
--- !u!4 &517311413
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 517311409}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.8808908, z: 0, w: -0.4733196}
m_LocalPosition: {x: 43.62, y: 5, z: -52.07}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: -123.5, z: 0}
--- !u!1 &537607015 --- !u!1 &537607015
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -3929,6 +4323,8 @@ Transform:
m_Children: m_Children:
- {fileID: 32508550} - {fileID: 32508550}
- {fileID: 920484213} - {fileID: 920484213}
- {fileID: 155228032}
- {fileID: 181004335}
- {fileID: 1384402513} - {fileID: 1384402513}
- {fileID: 296011718} - {fileID: 296011718}
m_Father: {fileID: 0} m_Father: {fileID: 0}
@@ -4167,6 +4563,132 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -20, y: -20} m_SizeDelta: {x: -20, y: -20}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1259864384
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1259864387}
- component: {fileID: 1259864386}
- component: {fileID: 1259864385}
m_Layer: 0
m_Name: Dolly Spline
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1259864385
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1259864384}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c5342500578afb24a9b83d6343d32a0f, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineSplineSmoother
AutoSmooth: 1
--- !u!114 &1259864386
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1259864384}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dab5c7d4c32e743048dfca98e2d5914f, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Splines::UnityEngine.Splines.SplineContainer
m_Spline:
m_EditModeType: 1
m_Knots: []
m_MetaData: []
m_Closed: 0
m_IntData:
m_Data: []
m_FloatData:
m_Data: []
m_Float4Data:
m_Data: []
m_ObjectData:
m_Data: []
m_Splines:
- m_EditModeType: 1
m_Knots:
- Position:
x: 18.619999
y: 0
z: -0.069999695
TangentIn:
x: 0
y: 0
z: -2.820095
TangentOut:
x: 0
y: 0
z: 12.941999
Rotation:
value:
x: 0.024015132
y: 0.70478296
z: 0.11815383
w: -0.6991022
- Position:
x: 0.7800007
y: 0.65999985
z: 21.761
TangentIn:
x: 0
y: 0
z: 0
TangentOut:
x: 0
y: 0
z: 0
Rotation:
value:
x: -0.19298117
y: 0.25777513
z: 0.0526258
w: 0.94527286
m_MetaData:
- Mode: 3
Tension: 0.5
- Mode: 1
Tension: 0.5
m_Closed: 0
m_IntData:
m_Data: []
m_FloatData:
m_Data: []
m_Float4Data:
m_Data: []
m_ObjectData:
m_Data: []
m_Knots:
m_KnotsLink: []
--- !u!4 &1259864387
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1259864384}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 25, y: 5, z: -52}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1261465021 --- !u!1 &1261465021
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -5939,10 +6461,10 @@ MonoBehaviour:
explorationCamera: {fileID: 17649578} explorationCamera: {fileID: 17649578}
activePriority: 20 activePriority: 20
inactivePriority: 10 inactivePriority: 10
introCamera: {fileID: 0} introCamera: {fileID: 517311412}
introSplineDolly: {fileID: 0} introSplineDolly: {fileID: 517311411}
introHoldTime: 2 introHoldTime: 0.1
blendDuration: 2 blendDuration: 0.1
mainUnityCamera: {fileID: 330585545} mainUnityCamera: {fileID: 330585545}
interactableLayer: interactableLayer:
serializedVersion: 2 serializedVersion: 2
@@ -11950,3 +12472,5 @@ SceneRoots:
- {fileID: 1743187106} - {fileID: 1743187106}
- {fileID: 621543619} - {fileID: 621543619}
- {fileID: 211603628} - {fileID: 211603628}
- {fileID: 517311413}
- {fileID: 1259864387}
+282 -276
View File
@@ -7,119 +7,115 @@ using System.Collections;
public class CameraController : MonoBehaviour public class CameraController : MonoBehaviour
{ {
    [Header("Cinemachine 3 Setup")] [Header("Cinemachine 3 Setup")] public CinemachineCamera focusCameraA;
    public CinemachineCamera focusCameraA; public CinemachineCamera focusCameraB;
    public CinemachineCamera focusCameraB; public CinemachineCamera explorationCamera;
    public CinemachineCamera explorationCamera;
    public int activePriority = 20;
    public int activePriority = 20; public int inactivePriority = 10;
    public int inactivePriority = 10;
[Header("Intro Sequence Setup")] [Tooltip("The camera placed high up to show the whole room.")]
public CinemachineCamera introCamera;
    [Header("Intro Sequence Setup")]
    [Tooltip("The camera placed high up to show the whole room.")]
    public CinemachineCamera introCamera;
public CinemachineSplineDolly introSplineDolly; public CinemachineSplineDolly introSplineDolly;
 
    public float introHoldTime = 2f;
    [Tooltip("How long the Cinemachine blend takes to sweep down to the player.")]
    public float blendDuration = 2f;
    [Header("Raycast Setup")] public float introHoldTime = 2f;
    public Camera mainUnityCamera;
    public LayerMask interactableLayer;
    [Header("UI Setup")] [Tooltip("How long the Cinemachine blend takes to sweep down to the player.")]
    public Button talkButton; public float blendDuration = 2f;
    public Button doorButton;
    private GuardManager currentGuardManager;
    private DoorManager currentDoorManager;
    [Header("Hover Highlight Settings")] [Header("Raycast Setup")] public Camera mainUnityCamera;
    public Color highlightColour = Color.yellow; public LayerMask interactableLayer;
    private Renderer currentlyHoveredRenderer;
    private Color originalColour;
    [Header("Exploration Nudge Settings")] [Header("UI Setup")] public Button talkButton;
    public float nudgeSpeed = 15f; public Button doorButton;
    public float maxNudgeAngle = 8f; private GuardManager currentGuardManager;
    public float edgeThickness = 50f; private DoorManager currentDoorManager;
    [Header("Focus Nudge Settings")] [Header("Hover Highlight Settings")] public Color highlightColour = Color.yellow;
    public float focusNudgeSpeed = 5f; private Renderer currentlyHoveredRenderer;
    public float maxFocusOffset = 2f; private Color originalColour;
    private Quaternion startingRotation; [Header("Exploration Nudge Settings")] public float nudgeSpeed = 15f;
    private float currentYaw = 0f; public float maxNudgeAngle = 8f;
public float edgeThickness = 50f;
    private bool useCameraA = true; [Header("Focus Nudge Settings")] public float focusNudgeSpeed = 5f;
    private Transform dynamicFocusTargetA; public float maxFocusOffset = 2f;
    private Transform dynamicFocusTargetB;
    private Transform activeDynamicTarget;
    private Transform currentInteractableTransform;
   
    private float currentFocusOffsetX = 0f;
    private bool isSequencePlaying = false;
    void Start() private Quaternion startingRotation;
    { private float currentYaw = 0f;
        if (explorationCamera != null)
        {
            startingRotation = explorationCamera.transform.rotation;
        }
        dynamicFocusTargetA = new GameObject("DynamicFocusTarget_A").transform; private bool useCameraA = true;
        dynamicFocusTargetB = new GameObject("DynamicFocusTarget_B").transform; private Transform dynamicFocusTargetA;
private Transform dynamicFocusTargetB;
private Transform activeDynamicTarget;
private Transform currentInteractableTransform;
        if (talkButton != null) private float currentFocusOffsetX = 0f;
        { private bool isSequencePlaying = false;
            talkButton.gameObject.SetActive(false);
            talkButton.onClick.AddListener(OnTalkButtonClicked);
        }
        if (doorButton != null) void Start()
        { {
            doorButton.gameObject.SetActive(false); if (explorationCamera != null)
            doorButton.onClick.AddListener(OnDoorButtonClicked); {
        } startingRotation = explorationCamera.transform.rotation;
}
        // Play the intro sweep straight away when the game first loads! dynamicFocusTargetA = new GameObject("DynamicFocusTarget_A").transform;
        if (introCamera != null) dynamicFocusTargetB = new GameObject("DynamicFocusTarget_B").transform;
        {
            StartCoroutine(IntroSequenceRoutine());
        }
    }
    void Update() if (talkButton != null)
    { {
        // Allow the Escape key to skip intro sequences or drop interactions at any time talkButton.gameObject.SetActive(false);
        if (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame) talkButton.onClick.AddListener(OnTalkButtonClicked);
        { }
            StopAllCoroutines();
            isSequencePlaying = false;
            ResetCameraPositions();
        }
        if (Mouse.current == null || isSequencePlaying) return; if (doorButton != null)
{
doorButton.gameObject.SetActive(false);
doorButton.onClick.AddListener(OnDoorButtonClicked);
}
        HandleHover(); // Play the intro sweep straight away when the game first loads!
        HandleEdgeNudge(); if (introCamera != null)
{
StartCoroutine(IntroSequenceRoutine());
}
}
        if (Mouse.current.leftButton.wasPressedThisFrame) void Update()
        { {
            if (EventSystem.current != null && EventSystem.current.IsPointerOverGameObject()) // Allow the Escape key to skip intro sequences or drop interactions at any time
            { if (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame)
                return; {
            } StopAllCoroutines();
            HandleInteractionClick(); isSequencePlaying = false;
        } ResetCameraPositions();
        }
        if (Mouse.current.rightButton.wasPressedThisFrame)
        {
            ReturnToMainCamera();
        }
    }
    private IEnumerator IntroSequenceRoutine() if (Mouse.current == null || isSequencePlaying) return;
HandleHover();
HandleEdgeNudge();
if (Mouse.current.leftButton.wasPressedThisFrame)
{
if (EventSystem.current != null && EventSystem.current.IsPointerOverGameObject())
{
return;
}
HandleInteractionClick();
}
if (Mouse.current.rightButton.wasPressedThisFrame)
{
ReturnToMainCamera();
}
}
private IEnumerator IntroSequenceRoutine()
{ {
// If you haven't assigned an intro camera yet, just skip this // If you haven't assigned an intro camera yet, just skip this
if (introCamera == null) yield break; if (introCamera == null) yield break;
@@ -168,7 +164,7 @@ public class CameraController : MonoBehaviour
isSequencePlaying = false; isSequencePlaying = false;
} }
    private IEnumerator DoorSequenceRoutine(DoorManager activeDoor) private IEnumerator DoorSequenceRoutine(DoorManager activeDoor)
{ {
isSequencePlaying = true; isSequencePlaying = true;
RemoveHighlight(); RemoveHighlight();
@@ -176,23 +172,29 @@ public class CameraController : MonoBehaviour
// 1. TRIPWIRE: Check if the slots are empty! // 1. TRIPWIRE: Check if the slots are empty!
if (activeDoor.type == "DEATH") if (activeDoor.type == "DEATH")
{ {
if (activeDoor.deathCamera == null) Debug.LogError("🚨 ERROR: This is a DEATH door, but the Death Camera slot is empty in the Prefab Inspector!"); if (activeDoor.deathCamera == null)
if (activeDoor.deathSplineDolly == null) Debug.LogError("🚨 ERROR: This is a DEATH door, but the Death Spline Dolly slot is empty in the Prefab Inspector!"); Debug.LogError(
"🚨 ERROR: This is a DEATH door, but the Death Camera slot is empty in the Prefab Inspector!");
if (activeDoor.deathSplineDolly == null)
Debug.LogError(
"🚨 ERROR: This is a DEATH door, but the Death Spline Dolly slot is empty in the Prefab Inspector!");
} }
// 2. Determine which camera to use // 2. Determine which camera to use
bool isDeathDoor = activeDoor.type == "DEATH" && activeDoor.deathCamera != null && activeDoor.deathSplineDolly != null; bool isDeathDoor = activeDoor.type == "DEATH" && activeDoor.deathCamera != null &&
activeDoor.deathSplineDolly != null;
CinemachineCamera activeCam = isDeathDoor ? activeDoor.deathCamera : activeDoor.doorCamera; CinemachineCamera activeCam = isDeathDoor ? activeDoor.deathCamera : activeDoor.doorCamera;
CinemachineSplineDolly activeDolly = isDeathDoor ? activeDoor.deathSplineDolly : activeDoor.doorSplineDolly; CinemachineSplineDolly activeDolly = isDeathDoor ? activeDoor.deathSplineDolly : activeDoor.doorSplineDolly;
// 3. TRIPWIRE: Tell us which camera was actually chosen // 3. TRIPWIRE: Tell us which camera was actually chosen
Debug.Log($"🎯 Door clicked! Type is: '{activeDoor.type}'. Script is using track: '{activeCam.gameObject.name}'"); Debug.Log(
$"🎯 Door clicked! Type is: '{activeDoor.type}'. Script is using track: '{activeCam.gameObject.name}'");
activeDolly.CameraPosition = 0f; activeDolly.CameraPosition = 0f;
activeCam.Priority = 30; activeCam.Priority = 30;
yield return new WaitForSeconds(0.5f); yield return new WaitForSeconds(1f);
// --- DISTANCE MOVEMENT FIX --- // --- DISTANCE MOVEMENT FIX ---
// Using real metres now! 5f means 5 metres per second. Adjust this if it falls too slowly! // Using real metres now! 5f means 5 metres per second. Adjust this if it falls too slowly!
@@ -236,184 +238,188 @@ public class CameraController : MonoBehaviour
} }
} }
    private void HandleEdgeNudge() private void HandleEdgeNudge()
    { {
        Vector2 mousePos = Mouse.current.position.ReadValue(); Vector2 mousePos = Mouse.current.position.ReadValue();
        float yawInput = 0f; float yawInput = 0f;
        if (mousePos.x < edgeThickness) yawInput = -1f; if (mousePos.x < edgeThickness) yawInput = -1f;
        else if (mousePos.x > Screen.width - edgeThickness) yawInput = 1f; else if (mousePos.x > Screen.width - edgeThickness) yawInput = 1f;
        bool isFocused = focusCameraA.Priority >= activePriority || focusCameraB.Priority >= activePriority; bool isFocused = focusCameraA.Priority >= activePriority || focusCameraB.Priority >= activePriority;
        if (yawInput != 0f) if (yawInput != 0f)
        { {
            if (isFocused && currentInteractableTransform != null && activeDynamicTarget != null) if (isFocused && currentInteractableTransform != null && activeDynamicTarget != null)
            { {
                currentFocusOffsetX += yawInput * focusNudgeSpeed * Time.deltaTime; currentFocusOffsetX += yawInput * focusNudgeSpeed * Time.deltaTime;
                currentFocusOffsetX = Mathf.Clamp(currentFocusOffsetX, -maxFocusOffset, maxFocusOffset); currentFocusOffsetX = Mathf.Clamp(currentFocusOffsetX, -maxFocusOffset, maxFocusOffset);
                activeDynamicTarget.position = currentInteractableTransform.position activeDynamicTarget.position = currentInteractableTransform.position
                    + (mainUnityCamera.transform.right * currentFocusOffsetX); + (mainUnityCamera.transform.right * currentFocusOffsetX);
            } }
            else if (!isFocused && explorationCamera != null) else if (!isFocused && explorationCamera != null)
            { {
                currentYaw += yawInput * nudgeSpeed * Time.deltaTime; currentYaw += yawInput * nudgeSpeed * Time.deltaTime;
                currentYaw = Mathf.Clamp(currentYaw, -maxNudgeAngle, maxNudgeAngle); currentYaw = Mathf.Clamp(currentYaw, -maxNudgeAngle, maxNudgeAngle);
               
                Quaternion yawRotation = Quaternion.AngleAxis(currentYaw, Vector3.up); Quaternion yawRotation = Quaternion.AngleAxis(currentYaw, Vector3.up);
                explorationCamera.transform.rotation = startingRotation * yawRotation; explorationCamera.transform.rotation = startingRotation * yawRotation;
            } }
        } }
    } }
    private void HandleHover() private void HandleHover()
    { {
        Vector2 mousePos = Mouse.current.position.ReadValue(); Vector2 mousePos = Mouse.current.position.ReadValue();
        Ray ray = mainUnityCamera.ScreenPointToRay(mousePos); Ray ray = mainUnityCamera.ScreenPointToRay(mousePos);
       
        if (Physics.Raycast(ray, out RaycastHit hit, 100f, interactableLayer)) if (Physics.Raycast(ray, out RaycastHit hit, 100f, interactableLayer))
        { {
            Renderer hitRenderer = hit.transform.GetComponentInChildren<Renderer>(); Renderer hitRenderer = hit.transform.GetComponentInChildren<Renderer>();
           
            if (hitRenderer != null && hitRenderer != currentlyHoveredRenderer) if (hitRenderer != null && hitRenderer != currentlyHoveredRenderer)
            { {
                RemoveHighlight(); RemoveHighlight();
                currentlyHoveredRenderer = hitRenderer; currentlyHoveredRenderer = hitRenderer;
                if (currentlyHoveredRenderer is SpriteRenderer sprite) if (currentlyHoveredRenderer is SpriteRenderer sprite)
                { {
                    originalColour = sprite.color; originalColour = sprite.color;
                    sprite.color = highlightColour; sprite.color = highlightColour;
                } }
                else else
                { {
                    originalColour = currentlyHoveredRenderer.material.color; originalColour = currentlyHoveredRenderer.material.color;
                    currentlyHoveredRenderer.material.color = highlightColour; currentlyHoveredRenderer.material.color = highlightColour;
                } }
            } }
        } }
        else else
        { {
            RemoveHighlight(); RemoveHighlight();
        } }
    } }
    private void RemoveHighlight() private void RemoveHighlight()
    { {
        if (currentlyHoveredRenderer != null) if (currentlyHoveredRenderer != null)
        { {
            if (currentlyHoveredRenderer is SpriteRenderer sprite) if (currentlyHoveredRenderer is SpriteRenderer sprite)
            { {
                sprite.color = originalColour; sprite.color = originalColour;
            } }
            else else
            { {
                currentlyHoveredRenderer.material.color = originalColour; currentlyHoveredRenderer.material.color = originalColour;
            } }
            currentlyHoveredRenderer = null;
        } currentlyHoveredRenderer = null;
    } }
}
    private void HandleInteractionClick()
    { private void HandleInteractionClick()
        Vector2 mousePos = Mouse.current.position.ReadValue(); {
        Ray ray = mainUnityCamera.ScreenPointToRay(mousePos); Vector2 mousePos = Mouse.current.position.ReadValue();
        Ray ray = mainUnityCamera.ScreenPointToRay(mousePos);
        if (Physics.Raycast(ray, out RaycastHit hit, 100f, interactableLayer))
        { if (Physics.Raycast(ray, out RaycastHit hit, 100f, interactableLayer))
            currentInteractableTransform = hit.transform; {
            currentFocusOffsetX = 0f; currentInteractableTransform = hit.transform;
            currentFocusOffsetX = 0f;
            CinemachineCamera nextCam = useCameraA ? focusCameraA : focusCameraB;
            CinemachineCamera oldCam  = useCameraA ? focusCameraB : focusCameraA; CinemachineCamera nextCam = useCameraA ? focusCameraA : focusCameraB;
            Transform nextTarget      = useCameraA ? dynamicFocusTargetA : dynamicFocusTargetB; CinemachineCamera oldCam = useCameraA ? focusCameraB : focusCameraA;
            Transform nextTarget = useCameraA ? dynamicFocusTargetA : dynamicFocusTargetB;
            nextTarget.position = currentInteractableTransform.position;
            nextCam.Follow = currentInteractableTransform; nextTarget.position = currentInteractableTransform.position;
            nextCam.LookAt = nextTarget; nextCam.Follow = currentInteractableTransform;
            nextCam.LookAt = nextTarget;
            nextCam.Priority = activePriority;
            oldCam.Priority = inactivePriority; nextCam.Priority = activePriority;
            oldCam.Priority = inactivePriority;
            activeDynamicTarget = nextTarget;
            useCameraA = !useCameraA; activeDynamicTarget = nextTarget;
useCameraA = !useCameraA;
            GuardManager guard = hit.transform.GetComponent<GuardManager>();
            DoorManager door = hit.transform.GetComponent<DoorManager>(); GuardManager guard = hit.transform.GetComponent<GuardManager>();
DoorManager door = hit.transform.GetComponent<DoorManager>();
            if (talkButton != null) talkButton.gameObject.SetActive(false);
            if (doorButton != null) doorButton.gameObject.SetActive(false); if (talkButton != null) talkButton.gameObject.SetActive(false);
if (doorButton != null) doorButton.gameObject.SetActive(false);
            if (guard != null)
            { if (guard != null)
TutorialManager.Instance.LogAction("TAP"); {
                currentGuardManager = guard; TutorialManager.Instance.LogAction("TAP");
                if (talkButton != null) talkButton.gameObject.SetActive(true); currentGuardManager = guard;
            } if (talkButton != null) talkButton.gameObject.SetActive(true);
            else if (door != null) }
            { else if (door != null)
TutorialManager.Instance.LogAction("TAP"); {
                currentDoorManager = door; TutorialManager.Instance.LogAction("TAP");
                if (doorButton != null) doorButton.gameObject.SetActive(true); currentDoorManager = door;
            } if (doorButton != null) doorButton.gameObject.SetActive(true);
        } }
        else }
        { else
            ReturnToMainCamera(); {
        } ReturnToMainCamera();
    } }
}
    private void OnTalkButtonClicked()
    { private void OnTalkButtonClicked()
        if (currentGuardManager != null) {
        { if (currentGuardManager != null)
            DialogManager.Instance.StartDialog(currentGuardManager); {
            talkButton.gameObject.SetActive(false); DialogManager.Instance.StartDialog(currentGuardManager);
        } talkButton.gameObject.SetActive(false);
    } }
}
    private void OnDoorButtonClicked()
    { private void OnDoorButtonClicked()
        if (currentDoorManager != null && currentDoorManager.doorCamera != null && currentDoorManager.doorSplineDolly != null) {
        { if (currentDoorManager != null && currentDoorManager.doorCamera != null &&
            doorButton.gameObject.SetActive(false); currentDoorManager.doorSplineDolly != null)
            StartCoroutine(DoorSequenceRoutine(currentDoorManager)); {
        } doorButton.gameObject.SetActive(false);
        else StartCoroutine(DoorSequenceRoutine(currentDoorManager));
        { }
            Debug.LogError("The DoorManager is missing its Camera or Spline Dolly references!"); else
        } {
    } Debug.LogError("The DoorManager is missing its Camera or Spline Dolly references!");
}
    private void ReturnToMainCamera() }
    {
        focusCameraA.Priority = inactivePriority; private void ReturnToMainCamera()
        focusCameraB.Priority = inactivePriority; {
        if (introCamera != null) introCamera.Priority = inactivePriority; focusCameraA.Priority = inactivePriority;
        focusCameraB.Priority = inactivePriority;
        focusCameraA.Follow = null; focusCameraA.LookAt = null; if (introCamera != null) introCamera.Priority = inactivePriority;
        focusCameraB.Follow = null; focusCameraB.LookAt = null;
        focusCameraA.Follow = null;
        currentInteractableTransform = null; focusCameraA.LookAt = null;
        activeDynamicTarget = null; focusCameraB.Follow = null;
        currentGuardManager = null; focusCameraB.LookAt = null;
        currentDoorManager = null;
currentInteractableTransform = null;
        if (talkButton != null) talkButton.gameObject.SetActive(false); activeDynamicTarget = null;
        if (doorButton != null) doorButton.gameObject.SetActive(false); currentGuardManager = null;
    } currentDoorManager = null;
    private void ResetCameraPositions() if (talkButton != null) talkButton.gameObject.SetActive(false);
    { if (doorButton != null) doorButton.gameObject.SetActive(false);
        ReturnToMainCamera(); }
        currentFocusOffsetX = 0f; private void ResetCameraPositions()
        currentYaw = 0f; {
        ReturnToMainCamera();
        if (explorationCamera != null)
        { currentFocusOffsetX = 0f;
            explorationCamera.transform.rotation = startingRotation; currentYaw = 0f;
        }
    } if (explorationCamera != null)
{
explorationCamera.transform.rotation = startingRotation;
}
}
} }
+1 -1
View File
@@ -139,7 +139,7 @@ public class LevelLoader : Singleton<LevelLoader>
IEnumerator DoSomethingAfterOneSecond() IEnumerator DoSomethingAfterOneSecond()
{ {
yield return new WaitForSeconds(0.1f); yield return new WaitForSeconds(1.5f);
var responder = "GUARD"; var responder = "GUARD";
if (introchar != null) if (introchar != null)
+8
View File
@@ -1,3 +1,4 @@
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using Utils; using Utils;
@@ -37,6 +38,13 @@ public class TutorialManager : Singleton<TutorialManager>
return; return;
} }
StartCoroutine(DoSomethingAfterOneSecond());
}
IEnumerator DoSomethingAfterOneSecond()
{
yield return new WaitForSeconds(1.5f);
var tutorial = LevelLoader.Instance.GlobalModifier == "TUT1" ? tutorialOne : tutorialTwo; var tutorial = LevelLoader.Instance.GlobalModifier == "TUT1" ? tutorialOne : tutorialTwo;
tutorial[index].value.SetActive(true); tutorial[index].value.SetActive(true);
} }
Binary file not shown.
+130
View File
@@ -0,0 +1,130 @@
fileFormatVersion: 2
guid: 0f47d6e86d29d3811ada5b876bb74b98
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: 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:
Binary file not shown.
+130
View File
@@ -0,0 +1,130 @@
fileFormatVersion: 2
guid: 4845b9c63e0d4c89fbcbbcd4b7718876
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: 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:
Binary file not shown.
+130
View File
@@ -0,0 +1,130 @@
fileFormatVersion: 2
guid: a705101d171ccff65b6a2cf793556d85
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: 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:
Binary file not shown.
+130
View File
@@ -0,0 +1,130 @@
fileFormatVersion: 2
guid: 9dc5f838092f1fa05bc0a606c12effa8
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: 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: