occulsion culling sometimes breaks in 1 eye and its probably unfixable -_-

This commit is contained in:
LOLthecool 2024-02-29 17:13:41 +00:00
parent 5c763be98d
commit e902e2197c
19 changed files with 502 additions and 314 deletions

View file

@ -856,7 +856,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &214981957
Transform:
m_ObjectHideFlags: 0
@ -1413,6 +1413,10 @@ PrefabInstance:
propertyPath: m_Name
value: player
objectReference: {fileID: 0}
- target: {fileID: 311172431272143442, guid: 62668fa10a1682a449e4b6afd3883237, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2032835341544451279, guid: 62668fa10a1682a449e4b6afd3883237, type: 3}
propertyPath: m_OcclusionCulling
value: 1
@ -3320,11 +3324,11 @@ PrefabInstance:
- target: {fileID: -7511558181221131132, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 7847d6aa0efaa7b499f405c1f9c73b05, type: 2}
objectReference: {fileID: 2100000, guid: bdff8666beeec1b40998e59aec2510da, type: 2}
- target: {fileID: -7511558181221131132, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
propertyPath: m_Materials.Array.data[1]
value:
objectReference: {fileID: 2100000, guid: 00ee8df7237e1df478292b8d40232b8c, type: 2}
objectReference: {fileID: 2100000, guid: 514f479565bb2e44586955071c1334f0, type: 2}
- target: {fileID: 919132149155446097, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
propertyPath: m_Name
value: ceilinglight1 (1)
@ -3831,11 +3835,11 @@ PrefabInstance:
- target: {fileID: -7511558181221131132, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 7847d6aa0efaa7b499f405c1f9c73b05, type: 2}
objectReference: {fileID: 2100000, guid: bdff8666beeec1b40998e59aec2510da, type: 2}
- target: {fileID: -7511558181221131132, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
propertyPath: m_Materials.Array.data[1]
value:
objectReference: {fileID: 2100000, guid: 00ee8df7237e1df478292b8d40232b8c, type: 2}
objectReference: {fileID: 2100000, guid: bdff8666beeec1b40998e59aec2510da, type: 2}
- target: {fileID: 919132149155446097, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
propertyPath: m_Name
value: ceilinglight1 (5)
@ -3851,152 +3855,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
m_PrefabInstance: {fileID: 1739106759}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1739106761 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 25b8d35363e54db419b6b9aee2db26ab, type: 3}
m_PrefabInstance: {fileID: 1739106759}
m_PrefabAsset: {fileID: 0}
--- !u!82 &1739106762
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1739106761}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 03c61a82df3ff8a429b7e69d3bd1740d, type: 3}
m_PlayOnAwake: 1
m_Volume: 0.2
m_Pitch: 1
Loop: 1
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 200
DopplerLevel: 0
MinDistance: 1
MaxDistance: 8
Pan2D: 0
rolloffMode: 1
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0.02
value: 1
inSlope: -50.01992
outSlope: -50.01992
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.04
value: 0.5
inSlope: -12.50498
outSlope: -12.50498
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.08
value: 0.25
inSlope: -3.126245
outSlope: -3.126245
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.16
value: 0.125
inSlope: -0.78156126
outSlope: -0.78156126
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.32
value: 0.0625
inSlope: -0.19539031
outSlope: -0.19539031
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.64
value: 0.03125
inSlope: -0.04884758
outSlope: -0.04884758
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: -0.020007975
outSlope: -0.020007975
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1 &1826552106
GameObject:
m_ObjectHideFlags: 0
@ -5357,11 +5215,20 @@ PrefabInstance:
propertyPath: m_Name
value: ceilinglight1
objectReference: {fileID: 0}
- target: {fileID: 1336040340728821430, guid: cb210624344fda646869011f1bd9ae93, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: bdff8666beeec1b40998e59aec2510da, type: 2}
- target: {fileID: 1336040340728821430, guid: cb210624344fda646869011f1bd9ae93, type: 3}
propertyPath: m_Materials.Array.data[1]
value:
objectReference: {fileID: 2100000, guid: 00ee8df7237e1df478292b8d40232b8c, type: 2}
m_RemovedComponents: []
objectReference: {fileID: 2100000, guid: bdff8666beeec1b40998e59aec2510da, type: 2}
- target: {fileID: 6477968466118542097, guid: cb210624344fda646869011f1bd9ae93, type: 3}
propertyPath: m_audioClip
value:
objectReference: {fileID: 8300000, guid: 03c61a82df3ff8a429b7e69d3bd1740d, type: 3}
m_RemovedComponents:
- {fileID: 6477968466118542097, guid: cb210624344fda646869011f1bd9ae93, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: cb210624344fda646869011f1bd9ae93, type: 3}
--- !u!4 &381403257386949810 stripped
Transform:
@ -7802,6 +7669,10 @@ MonoBehaviour:
looping: 1
loopingAfterUnlock: 0
locked: 1
reject: {fileID: 2782228159376791294}
accept: {fileID: 2782228159376791293}
puzzlecomplete: {fileID: 2782228159376791292}
finalStep: 1
--- !u!135 &2782228159376791289
SphereCollider:
m_ObjectHideFlags: 0
@ -7815,6 +7686,384 @@ SphereCollider:
serializedVersion: 2
m_Radius: 0.001
m_Center: {x: 0.0000007558556, y: -0.000024558793, z: 0.00018842802}
--- !u!82 &2782228159376791292
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2782228159376791286}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: f75ed445495e2014e982728610efe130, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 0
MinDistance: 1
MaxDistance: 2
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!82 &2782228159376791293
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2782228159376791286}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 2a62003fef6c9a848863c62b645bbf04, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 200
DopplerLevel: 0
MinDistance: 1
MaxDistance: 8
Pan2D: 0
rolloffMode: 1
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0.02
value: 1
inSlope: -50.01992
outSlope: -50.01992
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.04
value: 0.5
inSlope: -12.50498
outSlope: -12.50498
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.08
value: 0.25
inSlope: -3.126245
outSlope: -3.126245
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.16
value: 0.125
inSlope: -0.78156126
outSlope: -0.78156126
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.32
value: 0.0625
inSlope: -0.19539031
outSlope: -0.19539031
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.64
value: 0.03125
inSlope: -0.04884758
outSlope: -0.04884758
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: -0.020007975
outSlope: -0.020007975
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!82 &2782228159376791294
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2782228159376791286}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: f9b9f3fbf778e7a4bb211f0f76817d96, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 200
DopplerLevel: 0
MinDistance: 1
MaxDistance: 8
Pan2D: 0
rolloffMode: 1
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0.02
value: 1
inSlope: -50.01992
outSlope: -50.01992
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.04
value: 0.5
inSlope: -12.50498
outSlope: -12.50498
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.08
value: 0.25
inSlope: -3.126245
outSlope: -3.126245
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.16
value: 0.125
inSlope: -0.78156126
outSlope: -0.78156126
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.32
value: 0.0625
inSlope: -0.19539031
outSlope: -0.19539031
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.64
value: 0.03125
inSlope: -0.04884758
outSlope: -0.04884758
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: -0.020007975
outSlope: -0.020007975
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!33 &2799655801908033461
MeshFilter:
m_ObjectHideFlags: 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 816 KiB

After

Width:  |  Height:  |  Size: 815 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

After

Width:  |  Height:  |  Size: 996 KiB

View file

@ -49,7 +49,7 @@ LightingSettings:
m_PVRMinBounces: 1
m_PVREnvironmentMIS: 1
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeDirect: 3
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0

View file

@ -1,81 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: lightharsh damaged
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords:
- _EMISSION
m_InvalidKeywords: []
m_LightmapFlags: 2
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.901, g: 0.9354722, b: 1, a: 1}
- _EmissionColor: {r: 0.555222, g: 0.60350215, b: 0.7000626, a: 1}
m_BuildTextureStacks: []

View file

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 00ee8df7237e1df478292b8d40232b8c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -643,7 +643,6 @@ GameObject:
- component: {fileID: 2032835341544451279}
- component: {fileID: 2032835341544451277}
- component: {fileID: 5352875614844548907}
- component: {fileID: 3046226430606946634}
- component: {fileID: 2493405276568164973}
m_Layer: 0
m_Name: Main Camera
@ -731,7 +730,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_TrackingType: 0
m_UpdateType: 0
m_UpdateType: 2
m_IgnoreTrackingState: 0
m_PositionInput:
m_UseReference: 1
@ -819,39 +818,6 @@ MonoBehaviour:
m_Action: Rotation
m_Flags: 0
m_Flags: 0
--- !u!114 &3046226430606946634
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2032835341544451273}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_RenderShadows: 1
m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_CameraType: 0
m_Cameras: []
m_RendererIndex: -1
m_VolumeLayerMask:
serializedVersion: 2
m_Bits: 1
m_VolumeTrigger: {fileID: 0}
m_VolumeFrameworkUpdateModeOption: 2
m_RenderPostProcessing: 0
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0
m_Dithering: 0
m_ClearDepth: 1
m_AllowXRRendering: 1
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
--- !u!114 &2493405276568164973
MonoBehaviour:
m_ObjectHideFlags: 0
@ -4201,7 +4167,6 @@ GameObject:
- component: {fileID: 6749415898578951907}
- component: {fileID: 2720678824186190307}
- component: {fileID: 6631790936913543499}
- component: {fileID: 8641047548206813625}
- component: {fileID: 8888611246345853628}
m_Layer: 0
m_Name: Main Camera (1)
@ -4281,7 +4246,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_TrackingType: 0
m_UpdateType: 0
m_UpdateType: 2
m_IgnoreTrackingState: 0
m_PositionInput:
m_UseReference: 1
@ -4369,39 +4334,6 @@ MonoBehaviour:
m_Action: Rotation
m_Flags: 0
m_Flags: 0
--- !u!114 &8641047548206813625
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8176281997214923336}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_RenderShadows: 1
m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_CameraType: 0
m_Cameras: []
m_RendererIndex: -1
m_VolumeLayerMask:
serializedVersion: 2
m_Bits: 1
m_VolumeTrigger: {fileID: 0}
m_VolumeFrameworkUpdateModeOption: 2
m_RenderPostProcessing: 0
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0
m_Dithering: 0
m_ClearDepth: 1
m_AllowXRRendering: 1
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
--- !u!114 &8888611246345853628
MonoBehaviour:
m_ObjectHideFlags: 0

View file

@ -5,11 +5,19 @@ using UnityEngine;
public class KeyPanelLockable : Lockable
{
Material material;
public AudioSource reject;
public AudioSource accept;
public AudioSource puzzlecomplete;
public bool finalStep = false;
public override void StartUnlock(){
material = GetComponent<MeshRenderer>().material;
material.color = Color.green;
accept.Play();
if(finalStep){
puzzlecomplete.Play();
}
}
public override void FailedUnlock(){
return;
reject.Play();
}
}

Binary file not shown.

View file

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 14c8febf9c2adb44e96653fe750010d2
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View file

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 2a62003fef6c9a848863c62b645bbf04
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View file

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: f9b9f3fbf778e7a4bb211f0f76817d96
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View file

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: f75ed445495e2014e982728610efe130
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant: