正在加关灯效果,提交新版本

This commit is contained in:
GL 2024-11-23 14:25:10 +08:00
parent 7f270bec88
commit c411e0705c
27 changed files with 37355 additions and 12 deletions

View File

@ -251,6 +251,7 @@ RectTransform:
m_Children:
- {fileID: 836005726}
- {fileID: 1804302356}
- {fileID: 384489348}
- {fileID: 822718467}
- {fileID: 1738205551}
- {fileID: 226521323}
@ -326,6 +327,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 177818106}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!114 &20259222
MonoBehaviour:
m_ObjectHideFlags: 0
@ -1913,7 +1916,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2143530046}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
@ -3079,6 +3082,96 @@ GameObject:
m_CorrespondingSourceObject: {fileID: 4075030775632783691, guid: a030fef0719b2504ba325e558ca3651c, type: 3}
m_PrefabInstance: {fileID: 1314167371}
m_PrefabAsset: {fileID: 0}
--- !u!1 &232960012
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 232960013}
- component: {fileID: 232960015}
- component: {fileID: 232960014}
- component: {fileID: 232960016}
m_Layer: 5
m_Name: DarkImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &232960013
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 232960012}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 708679836}
m_RootOrder: 2
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.76429}
m_SizeDelta: {x: 427, y: 268.07}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &232960014
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 232960012}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &232960015
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 232960012}
m_CullTransparentMesh: 1
--- !u!114 &232960016
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 232960012}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5637cca8b3d8c264ea70d77a686f86e8, type: 3}
m_Name:
m_EditorClassIdentifier:
fadeDuration: 1.5
--- !u!1 &245899059
GameObject:
m_ObjectHideFlags: 0
@ -4529,6 +4622,96 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384095150}
m_CullTransparentMesh: 1
--- !u!1 &384489347
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 384489348}
- component: {fileID: 384489350}
- component: {fileID: 384489349}
- component: {fileID: 384489351}
m_Layer: 5
m_Name: DarkImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &384489348
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384489347}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 20259217}
m_RootOrder: 2
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: 321, y: 291}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &384489349
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384489347}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &384489350
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384489347}
m_CullTransparentMesh: 1
--- !u!114 &384489351
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384489347}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5637cca8b3d8c264ea70d77a686f86e8, type: 3}
m_Name:
m_EditorClassIdentifier:
fadeDuration: 1.5
--- !u!1 &385193886
GameObject:
m_ObjectHideFlags: 0
@ -4936,7 +5119,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 898215875}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -5465,7 +5648,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 708679836}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
@ -5541,7 +5724,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 708679836}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -7723,6 +7906,7 @@ RectTransform:
m_Children:
- {fileID: 1170434600}
- {fileID: 879293994}
- {fileID: 232960013}
- {fileID: 526366572}
- {fileID: 521012224}
- {fileID: 849249376}
@ -7798,6 +7982,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 177818106}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!114 &708679842
MonoBehaviour:
m_ObjectHideFlags: 0
@ -7968,7 +8154,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 898215875}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
@ -8050,6 +8236,7 @@ RectTransform:
m_Children:
- {fileID: 1465281022}
- {fileID: 1605011914}
- {fileID: 1654170156}
- {fileID: 1845217874}
- {fileID: 2109736981}
- {fileID: 1483918297}
@ -8125,6 +8312,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 177818106}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!114 &715869105
MonoBehaviour:
m_ObjectHideFlags: 0
@ -8638,7 +8827,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2143530046}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -9013,7 +9202,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 20259217}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -9677,6 +9866,82 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 879293993}
m_CullTransparentMesh: 1
--- !u!1 &880521873
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 880521874}
- component: {fileID: 880521876}
- component: {fileID: 880521875}
m_Layer: 5
m_Name: DarkImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &880521874
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 880521873}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2143530046}
m_RootOrder: 2
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: -4.1965}
m_SizeDelta: {x: 427, y: 282.61}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &880521875
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 880521873}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &880521876
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 880521873}
m_CullTransparentMesh: 1
--- !u!1 &890679608
GameObject:
m_ObjectHideFlags: 0
@ -9959,6 +10224,7 @@ RectTransform:
m_Children:
- {fileID: 197030555}
- {fileID: 2065312023}
- {fileID: 1374180390}
- {fileID: 432632077}
- {fileID: 715294075}
- {fileID: 1292714234}
@ -10034,6 +10300,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 177818106}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!114 &898215880
MonoBehaviour:
m_ObjectHideFlags: 0
@ -11905,6 +12173,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 177818106}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!114 &1049673033
MonoBehaviour:
m_ObjectHideFlags: 0
@ -12132,6 +12402,7 @@ GameObject:
- component: {fileID: 1052466733}
- component: {fileID: 1052466735}
- component: {fileID: 1052466734}
- component: {fileID: 1052466736}
m_Layer: 5
m_Name: DarkImage
m_TagString: Untagged
@ -12173,7 +12444,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_RaycastTarget: 1
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
@ -12197,6 +12468,19 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1052466732}
m_CullTransparentMesh: 1
--- !u!114 &1052466736
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1052466732}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5637cca8b3d8c264ea70d77a686f86e8, type: 3}
m_Name:
m_EditorClassIdentifier:
fadeDuration: 1.5
--- !u!1 &1054507117
GameObject:
m_ObjectHideFlags: 0
@ -15627,6 +15911,82 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1347256775}
m_CullTransparentMesh: 1
--- !u!1 &1374180389
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1374180390}
- component: {fileID: 1374180392}
- component: {fileID: 1374180391}
m_Layer: 5
m_Name: DarkImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1374180390
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1374180389}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 898215875}
m_RootOrder: 2
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: -2.4895}
m_SizeDelta: {x: 321, y: 286.02}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1374180391
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1374180389}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1374180392
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1374180389}
m_CullTransparentMesh: 1
--- !u!1 &1377318865
GameObject:
m_ObjectHideFlags: 0
@ -16681,7 +17041,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4075030775632783688, guid: a030fef0719b2504ba325e558ca3651c, type: 3}
propertyPath: m_RootOrder
value: 4
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4075030775632783688, guid: a030fef0719b2504ba325e558ca3651c, type: 3}
propertyPath: m_AnchorMax.x
@ -17859,6 +18219,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 0}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!1 &1557156368
GameObject:
m_ObjectHideFlags: 0
@ -19226,6 +19588,96 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1647449143}
m_CullTransparentMesh: 1
--- !u!1 &1654170155
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1654170156}
- component: {fileID: 1654170158}
- component: {fileID: 1654170157}
- component: {fileID: 1654170159}
m_Layer: 5
m_Name: DarkImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1654170156
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1654170155}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 715869100}
m_RootOrder: 2
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.5}
m_SizeDelta: {x: 427, y: 292}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1654170157
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1654170155}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1654170158
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1654170155}
m_CullTransparentMesh: 1
--- !u!114 &1654170159
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1654170155}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5637cca8b3d8c264ea70d77a686f86e8, type: 3}
m_Name:
m_EditorClassIdentifier:
fadeDuration: 1.5
--- !u!1 &1667346432
GameObject:
m_ObjectHideFlags: 0
@ -20119,7 +20571,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 20259217}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
@ -21494,7 +21946,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 715869100}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -23552,7 +24004,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 715869100}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
@ -24319,6 +24771,7 @@ RectTransform:
m_Children:
- {fileID: 1528141812}
- {fileID: 1457829063}
- {fileID: 880521874}
- {fileID: 742072225}
- {fileID: 157655807}
- {fileID: 1314167372}
@ -24394,6 +24847,8 @@ MonoBehaviour:
DoorIsOpen: 0
woniuMovePos: {fileID: 177818106}
otherWonius: []
DarkMask: {fileID: 0}
Lightlinp: {fileID: 0}
--- !u!114 &2143530051
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -0,0 +1,44 @@
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class FadeToBlack : MonoBehaviour
{
public float fadeDuration = 1.5f; // 渐变时间
private Image blackImage;
void Start()
{
blackImage = GetComponent<Image>();
}
// 外部调用:渐变变黑
public void StartFade()
{
StartCoroutine(FadeToBlackCoroutine());
}
// 外部调用:直接变黑
public void InstantBlack()
{
blackImage.color = new Color(0, 0, 0, 1f); // 设置为全黑
}
// 协程:控制渐变过程
private IEnumerator FadeToBlackCoroutine()
{
float elapsedTime = 0f;
while (elapsedTime < fadeDuration)
{
elapsedTime += Time.deltaTime;
float alpha = Mathf.Clamp01(elapsedTime / fadeDuration); // 计算透明度
blackImage.color = new Color(0, 0, 0, alpha);
yield return null; // 等待下一帧
}
// 确保最终完全变黑
blackImage.color = new Color(0, 0, 0, 0.6f);
}
}

View File

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

View File

@ -20,6 +20,8 @@ public class HouseBtn : MonoBehaviour
public bool DoorIsOpen;
public PlayerMovePos woniuMovePos;
public List<otherWoniu> otherWonius;
public FadeToBlack DarkMask;//·¿¼äºÚÉ«ÕÚÕÖ
public GameObject Lightlinp;//·¿¼äµÆ¹â
// Start is called before the first frame update
void Start()
{

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6e9a0d65c8619e4459fabb7490df413f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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