Add fadeout and game over scene [not tested]

This commit is contained in:
Jens Pitkänen 2020-06-12 00:10:30 +03:00
parent 7ded1447c6
commit bbb5be0a9e
13 changed files with 4159 additions and 59 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -0,0 +1,261 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1065497409069962936
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1065497409069962937}
- component: {fileID: 1489126835892919555}
m_Layer: 0
m_Name: GameOverText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1065497409069962937
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497409069962936}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.077941954, y: 1.7106835, z: -2.4409823}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1065497410053260779}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1489126835892919555
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497409069962936}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f76c041565cd4254e91d41f50a469d44, type: 3}
m_Name:
m_EditorClassIdentifier:
Anchor: {fileID: 0}
--- !u!1 &1065497410053260778
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1065497410053260779}
- component: {fileID: 1065497410053260775}
- component: {fileID: 1065497410053260774}
- component: {fileID: 1065497410053260773}
- component: {fileID: 1065497410053260772}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1065497410053260779
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497410053260778}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.02, y: 0.02, z: 0.02}
m_Children: []
m_Father: {fileID: 1065497409069962937}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 50, y: 5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &1065497410053260775
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497410053260778}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 8685160809628845514, guid: 3bdeb58e27d09da46979c1b24c359e70, 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
--- !u!33 &1065497410053260774
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497410053260778}
m_Mesh: {fileID: 0}
--- !u!222 &1065497410053260773
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497410053260778}
m_CullTransparentMesh: 0
--- !u!114 &1065497410053260772
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065497410053260778}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Game over
The campfire went out.
The wolves ate you and everyone
in the tent.
Sorry.'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 3bdeb58e27d09da46979c1b24c359e70, type: 2}
m_sharedMaterial: {fileID: 8685160809628845514, guid: 3bdeb58e27d09da46979c1b24c359e70,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4283387727
m_fontColor: {r: 0.31132078, g: 0.31132078, b: 0.31132078, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_textAlignment: 514
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: 10
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 0
m_isCullingEnabled: 0
m_ignoreRectMaskCulling: 0
m_ignoreCulling: 1
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_VertexBufferAutoSizeReduction: 1
m_firstVisibleCharacter: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_textInfo:
textComponent: {fileID: 1065497410053260772}
characterCount: 86
spriteCount: 0
spaceCount: 17
wordCount: 16
linkCount: 0
lineCount: 7
pageCount: 1
materialCount: 1
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_spriteAnimator: {fileID: 0}
m_hasFontAssetChanged: 0
m_renderer: {fileID: 1065497410053260775}
m_subTextObjects:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
m_maskType: 0

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6053c8a28383e1646b5595b97bb40454
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1998,7 +1998,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &185758726 --- !u!1001 &185758726
PrefabInstance: PrefabInstance:
@ -2217,7 +2217,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 447954, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} - target: {fileID: 447954, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 6 value: 7
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 447954, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} - target: {fileID: 447954, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3}
propertyPath: m_LocalEulerAnglesHint.x propertyPath: m_LocalEulerAnglesHint.x
@ -4930,7 +4930,7 @@ Transform:
m_LocalScale: {x: 21.772371, y: 21.772371, z: 21.772371} m_LocalScale: {x: 21.772371, y: 21.772371, z: 21.772371}
m_Children: [] m_Children: []
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 10 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &380838730 --- !u!114 &380838730
MonoBehaviour: MonoBehaviour:
@ -7662,7 +7662,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 2 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &642855297 --- !u!1001 &642855297
PrefabInstance: PrefabInstance:
@ -9137,7 +9137,7 @@ PrefabInstance:
- target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138, - target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 14 value: 15
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138, - target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138,
type: 3} type: 3}
@ -10634,7 +10634,7 @@ Transform:
- {fileID: 559135886} - {fileID: 559135886}
- {fileID: 585607714} - {fileID: 585607714}
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 24 m_RootOrder: 25
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &873845669 --- !u!1001 &873845669
PrefabInstance: PrefabInstance:
@ -10758,7 +10758,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 475244, guid: 7a135b1a2cb9c8f488d4dd00c55ab283, type: 3} - target: {fileID: 475244, guid: 7a135b1a2cb9c8f488d4dd00c55ab283, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 8 value: 9
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 475244, guid: 7a135b1a2cb9c8f488d4dd00c55ab283, type: 3} - target: {fileID: 475244, guid: 7a135b1a2cb9c8f488d4dd00c55ab283, type: 3}
propertyPath: m_LocalEulerAnglesHint.x propertyPath: m_LocalEulerAnglesHint.x
@ -13125,7 +13125,7 @@ PrefabInstance:
- target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 25 value: 26
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d,
type: 3} type: 3}
@ -13635,7 +13635,7 @@ Transform:
m_Children: m_Children:
- {fileID: 287774642} - {fileID: 287774642}
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 9 m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1130853765 --- !u!114 &1130853765
MonoBehaviour: MonoBehaviour:
@ -14985,6 +14985,68 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 1211066201} m_PrefabInstance: {fileID: 1211066201}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1 &1213410463
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1213410464}
- component: {fileID: 1213410466}
- component: {fileID: 1213410465}
m_Layer: 8
m_Name: Darkness Post-process Volume
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1213410464
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1213410463}
m_LocalRotation: {x: -0, y: -0.2131446, z: -0, w: 0.9770207}
m_LocalPosition: {x: 0.15, y: 0, z: -0.16}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1660514110}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: -24.613, z: 0}
--- !u!114 &1213410465
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1213410463}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3}
m_Name:
m_EditorClassIdentifier:
sharedProfile: {fileID: 11400000, guid: eed378b1b06ad3441a65be9b54363961, type: 2}
isGlobal: 0
blendDistance: 2
weight: 0
priority: 1
--- !u!65 &1213410466
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1213410463}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 6, y: 3, z: 5}
m_Center: {x: 0, y: 1.5, z: 0}
--- !u!4 &1231142110 stripped --- !u!4 &1231142110 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: 7234109734831889898, guid: 65b9ab5277d05de459f2091021e0ee01, m_CorrespondingSourceObject: {fileID: 7234109734831889898, guid: 65b9ab5277d05de459f2091021e0ee01,
@ -15567,7 +15629,7 @@ PrefabInstance:
- target: {fileID: 9033857765742716543, guid: a266bcf30ea85ae4f8457cbcd97ad222, - target: {fileID: 9033857765742716543, guid: a266bcf30ea85ae4f8457cbcd97ad222,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 16 value: 17
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9033857765742716543, guid: a266bcf30ea85ae4f8457cbcd97ad222, - target: {fileID: 9033857765742716543, guid: a266bcf30ea85ae4f8457cbcd97ad222,
type: 3} type: 3}
@ -15970,7 +16032,7 @@ Transform:
- {fileID: 1129651174} - {fileID: 1129651174}
- {fileID: 1658658490} - {fileID: 1658658490}
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 23 m_RootOrder: 24
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &1310630590 stripped --- !u!4 &1310630590 stripped
Transform: Transform:
@ -16509,6 +16571,51 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 506991118} m_PrefabInstance: {fileID: 506991118}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1 &1416814827
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1416814829}
- component: {fileID: 1416814828}
m_Layer: 0
m_Name: Game Overer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1416814828
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1416814827}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 09d6b65954b84064e816903dbf2f3291, type: 3}
m_Name:
m_EditorClassIdentifier:
DarknessVolume: {fileID: 1213410465}
GameState: {fileID: 834592896}
--- !u!4 &1416814829
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1416814827}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1423320400 --- !u!1001 &1423320400
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -16884,7 +16991,7 @@ PrefabInstance:
- target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138, - target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 13 value: 14
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138, - target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138,
type: 3} type: 3}
@ -17191,7 +17298,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 17 m_RootOrder: 18
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!215 &1467350796 --- !u!215 &1467350796
ReflectionProbe: ReflectionProbe:
@ -17795,7 +17902,7 @@ Transform:
m_LocalScale: {x: 50, y: 1, z: 50} m_LocalScale: {x: 50, y: 1, z: 50}
m_Children: [] m_Children: []
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 18 m_RootOrder: 19
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &1519600968 --- !u!64 &1519600968
MeshCollider: MeshCollider:
@ -19210,7 +19317,7 @@ PrefabInstance:
- target: {fileID: 8265150240760341263, guid: 8ee6eecf5317b4841817712d24763e37, - target: {fileID: 8265150240760341263, guid: 8ee6eecf5317b4841817712d24763e37,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 11 value: 12
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8265150240760341263, guid: 8ee6eecf5317b4841817712d24763e37, - target: {fileID: 8265150240760341263, guid: 8ee6eecf5317b4841817712d24763e37,
type: 3} type: 3}
@ -20313,6 +20420,7 @@ Transform:
- {fileID: 833188479} - {fileID: 833188479}
- {fileID: 958093121} - {fileID: 958093121}
- {fileID: 85607725} - {fileID: 85607725}
- {fileID: 1213410464}
- {fileID: 1195794718} - {fileID: 1195794718}
- {fileID: 1460458978} - {fileID: 1460458978}
- {fileID: 874547082} - {fileID: 874547082}
@ -20335,7 +20443,7 @@ Transform:
- {fileID: 869147415} - {fileID: 869147415}
- {fileID: 1060470479} - {fileID: 1060470479}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1672333786 --- !u!1001 &1672333786
PrefabInstance: PrefabInstance:
@ -20716,7 +20824,7 @@ Transform:
- {fileID: 35399133} - {fileID: 35399133}
- {fileID: 1808691935} - {fileID: 1808691935}
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 12 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1708470768 --- !u!1001 &1708470768
PrefabInstance: PrefabInstance:
@ -23307,7 +23415,7 @@ PrefabInstance:
- target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138, - target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 15 value: 16
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138, - target: {fileID: 1537215554624875642, guid: 3d3251a3aedb46143931b1ea4eaa4138,
type: 3} type: 3}
@ -23893,7 +24001,7 @@ RectTransform:
- {fileID: 1344354208} - {fileID: 1344354208}
- {fileID: 429180126} - {fileID: 429180126}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}
@ -25015,7 +25123,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 1660514110} m_Father: {fileID: 1660514110}
m_RootOrder: 19 m_RootOrder: 20
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2009628692 --- !u!114 &2009628692
MonoBehaviour: MonoBehaviour:
@ -26200,7 +26308,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 4 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2116820717 --- !u!1001 &2116820717
PrefabInstance: PrefabInstance:
@ -26600,7 +26708,7 @@ PrefabInstance:
- target: {fileID: 8533006164501396295, guid: 388bb253525fc3a4bab3e1dd21beb08c, - target: {fileID: 8533006164501396295, guid: 388bb253525fc3a4bab3e1dd21beb08c,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 21 value: 22
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8533006164501396295, guid: 388bb253525fc3a4bab3e1dd21beb08c, - target: {fileID: 8533006164501396295, guid: 388bb253525fc3a4bab3e1dd21beb08c,
type: 3} type: 3}
@ -26648,6 +26756,10 @@ PrefabInstance:
propertyPath: Hand propertyPath: Hand
value: value:
objectReference: {fileID: 189615151} objectReference: {fileID: 189615151}
- target: {fileID: 874547083, guid: aaebb5cafb47fbf408359934bb5b1ae6, type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2964009488635626393, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009488635626393, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
propertyPath: m_Mesh propertyPath: m_Mesh
@ -26671,17 +26783,17 @@ PrefabInstance:
- target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 0.881 value: 1.886
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 0.25 value: 0.72
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: -1.383 value: -0.965
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
@ -26706,7 +26818,7 @@ PrefabInstance:
- target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 7 value: 8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6, - target: {fileID: 2964009489611609207, guid: aaebb5cafb47fbf408359934bb5b1ae6,
type: 3} type: 3}
@ -27063,7 +27175,7 @@ PrefabInstance:
- target: {fileID: 6125707630481988396, guid: 558201eae20fa5540a826edb23937665, - target: {fileID: 6125707630481988396, guid: 558201eae20fa5540a826edb23937665,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6125707630481988396, guid: 558201eae20fa5540a826edb23937665, - target: {fileID: 6125707630481988396, guid: 558201eae20fa5540a826edb23937665,
type: 3} type: 3}
@ -27277,7 +27389,7 @@ PrefabInstance:
- target: {fileID: 6166170817692975782, guid: 8cf3939d3cb6e684c8ac9618e68c8259, - target: {fileID: 6166170817692975782, guid: 8cf3939d3cb6e684c8ac9618e68c8259,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 20 value: 21
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6166170817692975782, guid: 8cf3939d3cb6e684c8ac9618e68c8259, - target: {fileID: 6166170817692975782, guid: 8cf3939d3cb6e684c8ac9618e68c8259,
type: 3} type: 3}
@ -27442,7 +27554,7 @@ PrefabInstance:
- target: {fileID: 9114811099361258696, guid: dce6ed08bb6da0a438a43d72fdf944da, - target: {fileID: 9114811099361258696, guid: dce6ed08bb6da0a438a43d72fdf944da,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 22 value: 23
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9114811099361258696, guid: dce6ed08bb6da0a438a43d72fdf944da, - target: {fileID: 9114811099361258696, guid: dce6ed08bb6da0a438a43d72fdf944da,
type: 3} type: 3}

View File

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameOverTextVR : MonoBehaviour {
public Transform Anchor;
private void Start() {
transform.position = Anchor.position;
transform.rotation = Anchor.rotation;
}
}

View File

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

View File

@ -0,0 +1,15 @@
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
using UnityEngine.SceneManagement;
public class GameOverVR : MonoBehaviour {
public PostProcessVolume DarknessVolume;
public GameState GameState;
private void Update() {
DarknessVolume.weight = Mathf.Lerp(DarknessVolume.weight, GameState.Current == State.GameOver ? 1 : 0, 3f * Time.deltaTime);
if (DarknessVolume.weight >= 0.99) {
SceneManager.LoadScene("Scenes/VRGameOverScene");
}
}
}

View File

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

View File

@ -8,4 +8,7 @@ EditorBuildSettings:
- enabled: 1 - enabled: 1
path: Assets/Scenes/VRScene.unity path: Assets/Scenes/VRScene.unity
guid: 877a6f99ade23364d85fbe5788f58091 guid: 877a6f99ade23364d85fbe5788f58091
- enabled: 1
path: Assets/Scenes/VRGameOverScene.unity
guid: 6053c8a28383e1646b5595b97bb40454
m_configObjects: {} m_configObjects: {}