make freeze levels fully playable

This commit is contained in:
Cat Flynn 2021-05-16 20:00:39 +01:00
parent b4a331a63b
commit 4395681868
23 changed files with 14945 additions and 5227 deletions

View File

@ -3,7 +3,12 @@ guid: 803c82d4ce9f809448a55cba1adec183
ModelImporter:
serializedVersion: 20200
internalIDToNameTable: []
externalObjects: {}
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: blinn2
second: {fileID: 2100000, guid: 22a733893c7f0bc48b61d6a462964442, type: 2}
materials:
materialImportMode: 2
materialName: 0

View File

@ -12,4 +12,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 3a977303773797047b37664649362484, type: 3}
m_Name: Freeze Glitch
m_EditorClassIdentifier:
_logRaised: 1
_logRaised: 0

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 31d8ef37691d64a42a44946428b9ac65
guid: 40893a35c2567d6428e07341d4251694
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000

View File

@ -1,5 +1,100 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1847491485490277947
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 320976713338271151}
- component: {fileID: 5064421258454371209}
- component: {fileID: 8176961678202514079}
- component: {fileID: 3382746122836966329}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &320976713338271151
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1847491485490277947}
m_LocalRotation: {x: -0, y: 0.06322366, z: -0, w: 0.99799937}
m_LocalPosition: {x: -69.67, y: 9.4, z: -25.08}
m_LocalScale: {x: 7.6009, y: 7.4442, z: 1}
m_Children: []
m_Father: {fileID: 1079789866306985124}
m_RootOrder: 17
m_LocalEulerAnglesHint: {x: 0, y: 7.25, z: 0}
--- !u!33 &5064421258454371209
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1847491485490277947}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &8176961678202514079
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1847491485490277947}
m_Enabled: 0
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &3382746122836966329
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1847491485490277947}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &2437694428781397850
GameObject:
m_ObjectHideFlags: 0
@ -44,9 +139,52 @@ Transform:
- {fileID: 4016448991269688598}
- {fileID: 4016448989855892992}
- {fileID: 4016448991849918611}
- {fileID: 320976713338271151}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &2870272586227016390
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4392869731842554382}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -3232754196067237502, guid: aab64b7c1bdfce345b1e5905c2d520d9, type: 3}
--- !u!64 &5705196509839504412
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4392869732384537380}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 158474917571322673, guid: def9dbd0b120e2244ac3df7b6e33a0b7, type: 3}
--- !u!64 &2482734288074774658
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4392869732439483824}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -2604295252669549402, guid: 1e76aa98a80e17548825cccbf7990d42, type: 3}
--- !u!1001 &3474512194041208942
PrefabInstance:
m_ObjectHideFlags: 0
@ -330,6 +468,11 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: def9dbd0b120e2244ac3df7b6e33a0b7, type: 3}
--- !u!1 &4392869732384537380 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: def9dbd0b120e2244ac3df7b6e33a0b7, type: 3}
m_PrefabInstance: {fileID: 3474512194540226165}
m_PrefabAsset: {fileID: 0}
--- !u!4 &4016448991383789982 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: def9dbd0b120e2244ac3df7b6e33a0b7, type: 3}
@ -622,6 +765,11 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1e76aa98a80e17548825cccbf7990d42, type: 3}
--- !u!1 &4392869732439483824 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 1e76aa98a80e17548825cccbf7990d42, type: 3}
m_PrefabInstance: {fileID: 3474512194728876257}
m_PrefabAsset: {fileID: 0}
--- !u!4 &4016448991153536778 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e76aa98a80e17548825cccbf7990d42, type: 3}
@ -840,6 +988,11 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: aab64b7c1bdfce345b1e5905c2d520d9, type: 3}
--- !u!1 &4392869731842554382 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: aab64b7c1bdfce345b1e5905c2d520d9, type: 3}
m_PrefabInstance: {fileID: 3474512195071985503}
m_PrefabAsset: {fileID: 0}
--- !u!4 &4016448990843904180 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: aab64b7c1bdfce345b1e5905c2d520d9, type: 3}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 09ae514e34e858e488ec6de29efd3701
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -3541,7 +3541,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0a5de09a27d949d4db67034f55c57e6b, type: 3}
m_Name:
m_EditorClassIdentifier:
_event: {fileID: 11400000, guid: 31d8ef37691d64a42a44946428b9ac65, type: 2}
_event: {fileID: 11400000, guid: 40893a35c2567d6428e07341d4251694, type: 2}
_response:
m_PersistentCalls:
m_Calls:
@ -4334,7 +4334,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0a5de09a27d949d4db67034f55c57e6b, type: 3}
m_Name:
m_EditorClassIdentifier:
_event: {fileID: 11400000, guid: 31d8ef37691d64a42a44946428b9ac65, type: 2}
_event: {fileID: 0}
_response:
m_PersistentCalls:
m_Calls:
@ -4478,7 +4478,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0a5de09a27d949d4db67034f55c57e6b, type: 3}
m_Name:
m_EditorClassIdentifier:
_event: {fileID: 11400000, guid: 31d8ef37691d64a42a44946428b9ac65, type: 2}
_event: {fileID: 11400000, guid: 40893a35c2567d6428e07341d4251694, type: 2}
_response:
m_PersistentCalls:
m_Calls:

View File

@ -206,7 +206,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0a5de09a27d949d4db67034f55c57e6b, type: 3}
m_Name:
m_EditorClassIdentifier:
_event: {fileID: 11400000, guid: 22fd384aef0d08146831d35c2ab7f983, type: 2}
_event: {fileID: 11400000, guid: 6e31084a96bb93a44a85563a6208d0da, type: 2}
_response:
m_PersistentCalls:
m_Calls:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -46,8 +46,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a9f664d4cd388fb438941ca151bbc622, type: 3}
m_Name:
m_EditorClassIdentifier:
_amplitude: 0.1
_period: 0.12
_amplitude: 0.02
_period: 1.12
_objectTimeScale: {fileID: 11400000, guid: 9b68e167db44c0c42837e9a679da964e, type: 2}
--- !u!1001 &7724136830670557933
PrefabInstance:

View File

@ -54,6 +54,7 @@ MonoBehaviour:
path: {fileID: 1541764264070722539}
_killbox: {fileID: 6835443877287158791}
_fmodKey: event:/Environment/Traps/RockRoll
_resetTime: 5
--- !u!114 &1541764264070722539
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -11,7 +11,6 @@ GameObject:
- component: {fileID: 3340651998927408397}
- component: {fileID: 3340651998927408396}
- component: {fileID: 3340651998927408399}
- component: {fileID: 3340651998927408398}
- component: {fileID: 3340651998927408395}
- component: {fileID: 3340651998927408394}
m_Layer: 0
@ -84,20 +83,6 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &3340651998927408398
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3340651998927408401}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 0
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!65 &3340651998927408395
BoxCollider:
m_ObjectHideFlags: 0

View File

@ -1003,6 +1003,10 @@ PrefabInstance:
propertyPath: m_RootOrder
value: 48
objectReference: {fileID: 0}
- target: {fileID: 1608993493359809246, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 224
objectReference: {fileID: 0}
- target: {fileID: 1618227772145015255, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: editorData.tabIndex
value: 1
@ -1055,6 +1059,10 @@ PrefabInstance:
propertyPath: m_RootOrder
value: 145
objectReference: {fileID: 0}
- target: {fileID: 2269484477898992757, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 223
objectReference: {fileID: 0}
- target: {fileID: 2320458502031594430, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 111
@ -1175,6 +1183,10 @@ PrefabInstance:
propertyPath: m_RootOrder
value: 119
objectReference: {fileID: 0}
- target: {fileID: 4403469193080280518, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 225
objectReference: {fileID: 0}
- target: {fileID: 4457601070968350465, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 50
@ -1215,6 +1227,14 @@ PrefabInstance:
propertyPath: m_RootOrder
value: 122
objectReference: {fileID: 0}
- target: {fileID: 5082882443344134932, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalPosition.y
value: 36.75
objectReference: {fileID: 0}
- target: {fileID: 5082882443344134932, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalPosition.z
value: -70.77
objectReference: {fileID: 0}
- target: {fileID: 5134981953543094035, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 64
@ -1339,6 +1359,46 @@ PrefabInstance:
propertyPath: m_RootOrder
value: 73
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalPosition.x
value: 25.37
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalPosition.y
value: 38.23
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalPosition.z
value: -73.04
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalRotation.w
value: 0.68398863
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalRotation.x
value: 0.056838743
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7148953
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalRotation.z
value: 0.1336178
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -6.505
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 451.65
objectReference: {fileID: 0}
- target: {fileID: 6197495092790354494, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 375.412
objectReference: {fileID: 0}
- target: {fileID: 6210181821029983378, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 74
@ -1523,6 +1583,14 @@ PrefabInstance:
propertyPath: m_Lightmapping
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8918529971965571674, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 226
objectReference: {fileID: 0}
- target: {fileID: 8921319248153755614, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -180.62
objectReference: {fileID: 0}
- target: {fileID: 9043383795067346386, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 89
@ -1634,27 +1702,27 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: -0.075413406
value: -0.07540685
objectReference: {fileID: 0}
- target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: 0.016739741
value: 0.01673833
objectReference: {fileID: 0}
- target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: 0.6017391
value: 0.60173917
objectReference: {fileID: 0}
- target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: 0.7949482
value: 0.7949488
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.x
value: 0.06265259
value: 0.062642574
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -1.2534504
value: -1.2534506
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
@ -1662,19 +1730,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: -0.16372605
value: -0.16372034
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: 0.09855568
value: 0.09855228
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: 0.8409636
value: 0.8409646
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: 0.5062221
value: 0.5062229
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007564, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_Name
@ -1686,15 +1754,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.x
value: -316.435
value: 4.55
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -20.146
value: 3.8
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
value: 23.534
value: -28.61
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
@ -1738,27 +1806,27 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: 0.09021823
value: 0.09022497
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: 0.006206425
value: 0.006206859
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: 0.8013341
value: 0.8013334
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: 0.59134245
value: 0.59134233
objectReference: {fileID: 0}
- target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.x
value: 0.06265259
value: 0.062642574
objectReference: {fileID: 0}
- target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -1.2534504
value: -1.2534506
objectReference: {fileID: 0}
- target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
@ -1778,27 +1846,27 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: 0.009151593
value: 0.0091583505
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: -0.0005720705
value: -0.00057249144
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: 0.72006416
value: 0.72006404
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: 0.69384694
value: 0.693847
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.x
value: 0.06265259
value: 0.062642574
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -1.2534504
value: -1.2534506
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
@ -1806,19 +1874,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: -0.16372605
value: -0.16372034
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: 0.09855568
value: 0.09855228
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: 0.8409636
value: 0.8409646
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: 0.5062221
value: 0.5062229
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}

View File

@ -853,17 +853,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 58.424, y: -243.812, z: -233.512}
--- !u!114 &1460540785 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 6109618642997272366, guid: 2d949926f63a2554584336b07085202b, type: 3}
m_PrefabInstance: {fileID: 5633276111010996303}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c79d6b66286a2ac41b41321a95dfcc00, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1509348080
GameObject:
m_ObjectHideFlags: 0
@ -1075,9 +1064,49 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 1509348081}
m_Modifications:
- target: {fileID: 491357856935112765, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.x
value: 0.93786716
objectReference: {fileID: 0}
- target: {fileID: 491357856935112765, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: 491357857451020218, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.x
value: 5.337862
objectReference: {fileID: 0}
- target: {fileID: 491357857451020218, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.z
value: -21.279055
objectReference: {fileID: 0}
- target: {fileID: 491357857451020218, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: 491357857738353629, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.z
value: -21.279049
objectReference: {fileID: 0}
- target: {fileID: 491357857738353629, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: 491357858484426927, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.x
value: -28.06213
objectReference: {fileID: 0}
- target: {fileID: 491357858484426927, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.z
value: -21.279043
objectReference: {fileID: 0}
- target: {fileID: 491357858484426927, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: 2318864476246067792, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_RootOrder
value: 7
value: 6
objectReference: {fileID: 0}
- target: {fileID: 2318864476246067792, guid: 1e0e2f5e5749a93499760c30aa5325ec, type: 3}
propertyPath: m_LocalPosition.x
@ -1365,7 +1394,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -1.2534504
value: -1.2534506
objectReference: {fileID: 0}
- target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
@ -1401,15 +1430,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.x
value: -19
value: -17.4
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: 4.7
value: -0.07
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
value: 90.8
value: 87
objectReference: {fileID: 0}
- target: {fileID: 4676633831414007565, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
@ -1505,7 +1534,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: 0.9082052
value: 0.90820515
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
@ -1513,11 +1542,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: -0.02264136
value: -0.02264132
objectReference: {fileID: 0}
- target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: -0.0030938145
value: -0.0030938052
objectReference: {fileID: 0}
- target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.x
@ -1525,7 +1554,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -1.2534504
value: -1.2534505
objectReference: {fileID: 0}
- target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
@ -1565,19 +1594,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.w
value: 0.8445457
value: 0.84454566
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: -0.5322786
value: -0.53227866
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
value: 0.05642691
value: 0.056426905
objectReference: {fileID: 0}
- target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.z
value: 0.015429547
value: 0.015429554
objectReference: {fileID: 0}
- target: {fileID: 4676633833077728950, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_XAxis.Value
@ -1613,7 +1642,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.y
value: -1.2534504
value: -1.2534506
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalPosition.z
@ -1625,7 +1654,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.x
value: 0.0985523
value: 0.098552294
objectReference: {fileID: 0}
- target: {fileID: 6640567037475532300, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3}
propertyPath: m_LocalRotation.y
@ -2426,6 +2455,10 @@ PrefabInstance:
propertyPath: m_RootOrder
value: 35
objectReference: {fileID: 0}
- target: {fileID: 1964242779959540740, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: _event
value:
objectReference: {fileID: 11400000, guid: 40893a35c2567d6428e07341d4251694, type: 2}
- target: {fileID: 2094851161394484735, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 18
@ -2589,7 +2622,7 @@ PrefabInstance:
- target: {fileID: 6548783543199996220, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: _onPress.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 1460540785}
objectReference: {fileID: 0}
- target: {fileID: 6548783543199996220, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: _onPress.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: Open
@ -2654,6 +2687,10 @@ PrefabInstance:
propertyPath: _onPress.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 7820220801429966100, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8058126213131904364, guid: 2d949926f63a2554584336b07085202b, type: 3}
propertyPath: m_RootOrder
value: 26
@ -3051,132 +3088,6 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
--- !u!1 &7204703165525828993 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4399184565016286136, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
m_PrefabInstance: {fileID: 7204703165525828992}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7204703165525828994 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5455694590130061583, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
m_PrefabInstance: {fileID: 7204703165525828992}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7204703165525828995 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 3328859615154663267, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
m_PrefabInstance: {fileID: 7204703165525828992}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7204703165525828996 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 8488132013019412403, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
m_PrefabInstance: {fileID: 7204703165525828992}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7204703165525828997 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7398965743694309885, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
m_PrefabInstance: {fileID: 7204703165525828992}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7204703165525828998 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1891058236089944942, guid: e7dd603d70497504b8ef7caa1bddff5f, type: 3}
m_PrefabInstance: {fileID: 7204703165525828992}
m_PrefabAsset: {fileID: 0}
--- !u!54 &7204703165525828999
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7204703165525828993}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &7204703165525829000
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7204703165525828994}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &7204703165525829001
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7204703165525828995}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &7204703165525829002
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7204703165525828996}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &7204703165525829003
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7204703165525828997}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &7204703165525829004
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7204703165525828998}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!1001 &8182946074183196472
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -9,11 +9,15 @@ public class PressurePlate : MonoBehaviour
{
[SerializeField] private float _triggerDelay = 2.0f;
[SerializeField] private float _resetDelay = -1f;
[SerializeField] private UnityEvent _onPress;
[SerializeField] private UnityEvent _onReset;
[SerializeField] private SerialFloat _objectTimeScale;
[SerializeField] private GameObject _graphics;
public UnityEvent OnPress => _onPress;
[SerializeField] private UnityEvent _onPress;
public UnityEvent OnReset => _onReset;
[SerializeField] private UnityEvent _onReset;
private bool opened;
private float? triggered = null;
@ -45,7 +49,7 @@ public class PressurePlate : MonoBehaviour
var elapsed = 0f;
while (elapsed < _resetDelay)
{
elapsed += Time.time * _objectTimeScale;
elapsed += Time.deltaTime * _objectTimeScale;
yield return null;
}

View File

@ -111,6 +111,7 @@ public class FallawayFloor : MonoBehaviour
_triggered = false;
transform.position = initialPosition;
velocity = Vector3.zero;
if (_graphics.TryGetComponent(out BoxCollider box)) box.enabled = true;
if (_graphics && _graphics.TryGetComponent(out BoxCollider box)) box.enabled = true;
}
}

View File

@ -3,6 +3,7 @@ using Ktyl.Util;
using System.Collections;
using System.Collections.Generic;
using PathCreation;
using UnityEditor.Build;
using UnityEngine;
using UnityEngine.Animations.Rigging;
#if UNITY_EDITOR
@ -18,6 +19,7 @@ public class RollingBoulder : MonoBehaviour
[SerializeField] private PathCreator path;
[SerializeField] private Killbox _killbox;
[SerializeField] private string _fmodKey;
[SerializeField] private float _resetTime;
private bool _triggered = false;
private GameObject _endBoulder;
@ -67,6 +69,16 @@ public class RollingBoulder : MonoBehaviour
{
boulder.position = path.path.GetPointAtTime(0.999f);
}
var resetElapsed = 0f;
while (resetElapsed < _resetTime)
{
resetElapsed += Time.deltaTime * objectTimeScale;
yield return null;
}
Reset();
}
public void Reset()

View File

@ -1,10 +1,13 @@
using UnityEngine;
using UnityEngine.Events;
[RequireComponent(typeof(BoxCollider))]
public class Teleporter : MonoBehaviour
{
[SerializeField] private Transform _out;
[SerializeField] private UnityEvent _onTeleport;
private void OnEnable()
{
GetComponent<BoxCollider>().isTrigger = true;

View File

@ -0,0 +1,69 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class TimeAndPlate : MonoBehaviour
{
[SerializeField] private PressurePlate[] _plates;
private bool[] _plateStates;
// trigger on successful activation of all plates
[SerializeField] private UnityEvent _onTrigger;
private bool _triggered;
private void Awake()
{
_plateStates = new bool[_plates.Length];
foreach (var plate in _plates)
{
plate.OnPress.AddListener(() =>
{
_plateStates[Array.IndexOf(_plates, plate)] = true;
});
plate.OnReset.AddListener(() =>
{
_plateStates[Array.IndexOf(_plates, plate)] = false;
});
}
}
private void Update()
{
if (_triggered) return;
// bail if any plates are inactive
for (int i = 0; i < _plateStates.Length; i++)
{
if (!_plateStates[i]) return;
}
// all plates are active
Trigger();
}
public void Trigger()
{
for (int i = 0; i < _plates.Length; i++)
{
_plates[i].gameObject.SetActive(false);
}
_onTrigger.Invoke();
}
public void Reset()
{
_triggered = false;
for (int i = 0; i < _plates.Length; i++)
{
_plates[i].gameObject.SetActive(true);
_plateStates[i] = false;
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7a181900ca46dce41bb55f10ff865cc2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,6 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using NaughtyAttributes.Test;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
@ -15,6 +17,8 @@ namespace Ktyl.Util
protected readonly List<GameEventListener> _listeners = new List<GameEventListener>();
private readonly List<GameEventListener> _listenerBuffer = new List<GameEventListener>();
public virtual void Raise()
{
if (_logRaised)
@ -22,9 +26,14 @@ namespace Ktyl.Util
Debug.Log($"raised {this}", this);
}
for (int i = 0; i < _listeners.Count; i++)
// populate a buffer of listeners, since the original list
// may be modified as a consequence of triggering the event
_listenerBuffer.Clear();
_listenerBuffer.AddRange(_listeners);
foreach (var listener in _listenerBuffer)
{
_listeners[i].OnEventRaised();
listener.OnEventRaised();
}
}