详情请见UpdateLog.txt

This commit is contained in:
_Karasu_ 2023-02-14 20:05:31 +08:00
parent 3221680299
commit c54285cb91
22 changed files with 2262 additions and 442 deletions

View File

@ -13,7 +13,7 @@ GameObject:
- component: {fileID: 3031531149213211398}
m_Layer: 5
m_Name: DistanceText
m_TagString: Untagged
m_TagString: DistanceText
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0

View File

@ -13,7 +13,6 @@ GameObject:
- component: {fileID: 7842703526636760784}
- component: {fileID: 7842703526636760783}
- component: {fileID: 8186647694008240964}
- component: {fileID: 2828386532122924123}
m_Layer: 6
m_Name: RockObject
m_TagString: Obstacles
@ -198,99 +197,3 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
xSpeed: 0
--- !u!82 &2828386532122924123
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7842703526636760782}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 61bb7fbecc96426428444c5728e11c3d, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
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

File diff suppressed because it is too large Load Diff

View File

@ -171,10 +171,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ReferenceResolution: {x: 1024, y: 768}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
@ -217,7 +217,10 @@ RectTransform:
m_Children:
- {fileID: 1063081223}
- {fileID: 1444111047}
- {fileID: 1692816062}
- {fileID: 853659546}
- {fileID: 882329437}
- {fileID: 622078085}
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -226,6 +229,91 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1 &320423714
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 320423715}
- component: {fileID: 320423717}
- component: {fileID: 320423716}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &320423715
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320423714}
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: 1692816062}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &320423716
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320423714}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 36
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 48
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u6392\u884C\u699C"
--- !u!222 &320423717
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320423714}
m_CullTransparentMesh: 1
--- !u!224 &622078085 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
m_PrefabInstance: {fileID: 2138885352}
m_PrefabAsset: {fileID: 0}
--- !u!1 &744156464
GameObject:
m_ObjectHideFlags: 0
@ -285,11 +373,11 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 48
m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 36
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 4
m_MinSize: 3
m_MaxSize: 48
m_Alignment: 4
m_AlignByGeometry: 0
@ -306,6 +394,140 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 744156464}
m_CullTransparentMesh: 1
--- !u!1 &853659545
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 853659546}
- component: {fileID: 853659549}
- component: {fileID: 853659548}
- component: {fileID: 853659547}
m_Layer: 5
m_Name: AboutButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &853659546
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 853659545}
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:
- {fileID: 988094116}
m_Father: {fileID: 19056360}
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}
m_AnchoredPosition: {x: 100, y: -140}
m_SizeDelta: {x: 180, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &853659547
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 853659545}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 853659548}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1761663054}
m_TargetAssemblyTypeName: ButtonEventHandler, Assembly-CSharp
m_MethodName: OnUpdateLog
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 1
--- !u!114 &853659548
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 853659545}
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: 1, g: 1, b: 1, a: 1}
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: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
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 &853659549
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 853659545}
m_CullTransparentMesh: 1
--- !u!1 &882329436
GameObject:
m_ObjectHideFlags: 0
@ -339,12 +561,12 @@ RectTransform:
m_Children:
- {fileID: 1810591674}
m_Father: {fileID: 19056360}
m_RootOrder: 2
m_RootOrder: 4
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: 188, y: -140.80423}
m_SizeDelta: {x: 320.4928, y: 119.6084}
m_AnchoredPosition: {x: 300, y: -140}
m_SizeDelta: {x: 180, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &882329438
MonoBehaviour:
@ -440,6 +662,86 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 882329436}
m_CullTransparentMesh: 1
--- !u!1 &988094115
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 988094116}
- component: {fileID: 988094118}
- component: {fileID: 988094117}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &988094116
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 988094115}
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: 853659546}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &988094117
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 988094115}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 28
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 48
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u5173\u4E8E\u6E38\u620F\n\u66F4\u65B0\u65E5\u5FD7"
--- !u!222 &988094118
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 988094115}
m_CullTransparentMesh: 1
--- !u!1 &1063081222
GameObject:
m_ObjectHideFlags: 0
@ -639,8 +941,8 @@ RectTransform:
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: -182.7536, y: -140.80423}
m_SizeDelta: {x: 320.4928, y: 119.6084}
m_AnchoredPosition: {x: -300, y: -140}
m_SizeDelta: {x: 180, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1444111048
MonoBehaviour:
@ -736,6 +1038,140 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1444111046}
m_CullTransparentMesh: 1
--- !u!1 &1692816061
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1692816062}
- component: {fileID: 1692816065}
- component: {fileID: 1692816064}
- component: {fileID: 1692816063}
m_Layer: 5
m_Name: RankButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1692816062
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1692816061}
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:
- {fileID: 320423715}
m_Father: {fileID: 19056360}
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: -100, y: -140}
m_SizeDelta: {x: 180, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1692816063
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1692816061}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1692816064}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1761663054}
m_TargetAssemblyTypeName: ButtonEventHandler, Assembly-CSharp
m_MethodName: OnRankButtonTriggered
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 1
--- !u!114 &1692816064
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1692816061}
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: 1, g: 1, b: 1, a: 1}
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: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
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 &1692816065
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1692816061}
m_CullTransparentMesh: 1
--- !u!1 &1714768154
GameObject:
m_ObjectHideFlags: 0
@ -807,7 +1243,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Version 3.1 By Lucas Created With Unity
m_Text: Version 3.4 By Lucas Created With Unity
--- !u!222 &1714768157
CanvasRenderer:
m_ObjectHideFlags: 0
@ -828,6 +1264,7 @@ GameObject:
- component: {fileID: 1761663052}
- component: {fileID: 1761663051}
- component: {fileID: 1761663054}
- component: {fileID: 1761663055}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
@ -847,6 +1284,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
@ -896,6 +1334,18 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 846902436ffcc42499272fb53e18590a, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1761663055
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1761663050}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4350b309d6e293c45afd5b6d6eee2b8a, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1810591673
GameObject:
m_ObjectHideFlags: 0
@ -955,11 +1405,11 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 48
m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 36
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 4
m_MinSize: 3
m_MaxSize: 300
m_Alignment: 4
m_AlignByGeometry: 0
@ -1035,7 +1485,7 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 96
m_FontStyle: 0
m_BestFit: 0
@ -1056,3 +1506,228 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2056260118}
m_CullTransparentMesh: 1
--- !u!1 &2086207852
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2086207854}
- component: {fileID: 2086207853}
m_Layer: 0
m_Name: BackgroundMusic
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!82 &2086207853
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2086207852}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 8d894ea79b844ad4189a5c7929eb1567, type: 3}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 1
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
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!4 &2086207854
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2086207852}
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: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2138885352
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 19056360}
m_Modifications:
- target: {fileID: 6290023700921099033, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_Name
value: ModalManager
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6290023700921099038, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 757ca131f07e3478983435cf80dc4eee, type: 3}

View File

@ -1,7 +1,7 @@
/*
zlib License
Ìø³öÒ»·½ÌìµØ (C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -28,9 +28,12 @@ public class BackgroundMovementController : MonoBehaviour
public GameObject backgroundObject;
private GameObject backgroundObject1;
private GameObject backgroundObject2;
// Update: Triple moving background -> boundless transform
private GameObject backgroundObject3;
private float distance;
private Rigidbody2D brg2D1;
private Rigidbody2D brg2D2;
private Rigidbody2D brg2D3;
public float speed;
private float leftBound;
// Start is called before the first frame update
@ -38,18 +41,29 @@ public class BackgroundMovementController : MonoBehaviour
{
backgroundObject1 = Instantiate(backgroundObject);
backgroundObject2 = Instantiate(backgroundObject);
backgroundObject3 = Instantiate(backgroundObject);
brg2D1 = backgroundObject1.GetComponent<Rigidbody2D>();
brg2D2 = backgroundObject2.GetComponent<Rigidbody2D>();
brg2D3 = backgroundObject3.GetComponent<Rigidbody2D>();
Vector2 speedVector = new(speed, 0);
brg2D1.velocity = speedVector;
brg2D2.velocity = speedVector;
Vector2 topLeft = Camera.main.ViewportToWorldPoint(new Vector2(0, 1));
brg2D3.velocity = speedVector;
Vector2 topLeft = Camera.main!.ViewportToWorldPoint(new Vector2(0, 1));
leftBound = topLeft.x;
SpriteRenderer sRenderer = backgroundObject1.GetComponent<SpriteRenderer>();
var sRenderer = backgroundObject1.GetComponent<SpriteRenderer>();
distance = sRenderer.bounds.extents.x * 2;
backgroundObject2.transform.position = new Vector3(backgroundObject2.transform.position.x + distance,
backgroundObject2.transform.position.y, backgroundObject2.transform.position.z);
var position = backgroundObject2.transform.position;
position = new Vector3(position.x + distance,
position.y, position.z);
backgroundObject2.transform.position = position;
position = new Vector3(position.x + distance,
position.y, position.z);
backgroundObject3.transform.position = position;
}
// Update is called once per frame
@ -58,18 +72,28 @@ public class BackgroundMovementController : MonoBehaviour
if (brg2D1.transform.position.x <= leftBound)
{
Vector3 newPosition = new(brg2D2.transform.position.x + distance,
brg2D2.transform.position.y,
brg2D2.transform.position.z);
var position = brg2D3.transform.position;
Vector3 newPosition = new(position.x + distance,
position.y,
position.z);
brg2D1.transform.position = newPosition;
}
else if (brg2D2.transform.position.x <= leftBound)
{
Vector3 newPosition = new(brg2D1.transform.position.x + distance,
brg2D1.transform.position.y,
brg2D1.transform.position.z);
var position = brg2D1.transform.position;
Vector3 newPosition = new(position.x + distance,
position.y,
position.z);
brg2D2.transform.position = newPosition;
}
else if (brg2D3.transform.position.x <= leftBound)
{
var position = brg2D2.transform.position;
Vector3 newPosition = new(position.x + distance,
position.y,
position.z);
brg2D3.transform.position = newPosition;
}
}
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -19,20 +19,29 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using Gravitons.UI.Modal;
public class ButtonEventHandler : MonoBehaviour
{
private bool isDialogExists = false;
private void Start()
{
// Do some initialization
Screen.orientation = ScreenOrientation.LandscapeLeft;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false;
// Frame rate setting
if (Application.isMobilePlatform)
Application.targetFrameRate = 120;
else
QualitySettings.vSyncCount = 1;
}
public void OnStart()
{
@ -43,4 +52,24 @@ public class ButtonEventHandler : MonoBehaviour
{
Application.Quit();
}
public void OnUpdateLog()
{
if (isDialogExists) return;
var updateLog = Resources.Load<TextAsset>("Texts/UpdateLog").text;
var aboutGame = Resources.Load<TextAsset>("Texts/AboutGame").text;
ModalManager.Show("关于游戏&更新日志",
"更新日志:\n" + updateLog + "\n关于游戏\n" + aboutGame,
new[] { new ModalButton()
{
Text = "OK" ,
Callback = delegate
{
isDialogExists = false;
}
} });
isDialogExists = true;
}
public void OnRankButtonTriggered() => SceneManager.LoadScene("RankingScene");
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -37,18 +37,19 @@ public class GameController : MonoBehaviour
void Start()
{
player = Instantiate(playerPrefab);
initialPlayerPosition = Camera.main.ViewportToWorldPoint(new Vector2(0, 1)).x + playerSpawnDistance;
player.transform.position = new Vector3(initialPlayerPosition,
player.transform.position.y,
player.transform.position.z);
initialPlayerPosition = Camera.main!.ViewportToWorldPoint(new Vector2(0, 1)).x + playerSpawnDistance;
var position = player.transform.position;
position = new Vector3(initialPlayerPosition,
position.y,
position.z);
player.transform.position = position;
Screen.orientation = ScreenOrientation.LandscapeLeft;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false;
GameObject disText = Instantiate(distanceTextPrefab);
disText.transform.SetParent(GameObject.Find("Canvas").transform, false);
GameObject disText = Instantiate(distanceTextPrefab, GameObject.Find("Canvas").transform, false);
distanceText = disText.GetComponent<Text>();
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -43,6 +43,6 @@ public class HealthBarController : MonoBehaviour
public void SetHealth(int newHealthValue)
{
meterImage.fillAmount = (float)newHealthValue / maxHealthValue;
hpText.text = "HP:" + newHealthValue.ToString();
hpText.text = "HP:" + newHealthValue;
}
}

View File

@ -1,7 +1,7 @@
/*
zlib License
Ìø³öÒ»·½ÌìµØ (C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -35,10 +35,9 @@ public class HealthController : MonoBehaviour
void Start()
{
health = initialHealth;
healthBar = Instantiate(healthBarPrefab);
healthBar = Instantiate(healthBarPrefab, GameObject.Find("Canvas").transform, false);
controller = healthBar.GetComponent<HealthBarController>();
controller.maxHealthValue = initialHealth;
healthBar.transform.SetParent(GameObject.Find("Canvas").transform, false);
healthBar.SetActive(true);
}
@ -46,15 +45,12 @@ public class HealthController : MonoBehaviour
public void IncreaseHealth()
{
if (health < initialHealth) {
if (health >= initialHealth) return;
controller.SetHealth(++health);
if (health == initialHealth)
{
GameObject gameController = GameObject.FindGameObjectWithTag("GameController");
if (health != initialHealth) return;
var gameController = GameObject.FindGameObjectWithTag("GameController");
gameController.GetComponent<HealthPotionGenerator>().DisNotifyGenerate();
}
}
}
public void DecreaseHealth()
{
@ -62,14 +58,14 @@ public class HealthController : MonoBehaviour
if (health <= 0)
{
SceneManager.LoadScene("StartupScene");
var score = GlobalGameDataManager.GetScore();
print(GlobalGameDataManager.NeedUpdateName(score));
SceneManager.LoadScene(GlobalGameDataManager.NeedUpdateName(score) ? "HighScoreScene" : "SettlementScene");
return;
}
GameObject gameController = GameObject.FindGameObjectWithTag("GameController");
var gameController = GameObject.FindGameObjectWithTag("GameController");
gameController.GetComponent<HealthPotionGenerator>().NotifyGenerate(gameObject);
}
public bool NeedPotion
{
get => health < initialHealth;
}
public bool NeedPotion => health < initialHealth;
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -27,13 +27,14 @@ public class HealthPotionController : MonoBehaviour
{
private float leftBound;
public float xSpeed;
Rigidbody2D rb2d;
private Rigidbody2D rb2d;
// Start is called before the first frame update
void Start()
{
rb2d = GetComponent<Rigidbody2D>();
rb2d.velocity = new Vector2(xSpeed, 0);
leftBound = Camera.main.ViewportToWorldPoint(new Vector2(0, 1)).x;
leftBound = Camera.main!.ViewportToWorldPoint(new Vector2(0, 1)).x;
}
// Update is called once per frame
@ -47,11 +48,9 @@ public class HealthPotionController : MonoBehaviour
private void OnTriggerEnter2D(Collider2D collision)
{
if (collision.gameObject.CompareTag("Player"))
{
HealthController healthController = collision.gameObject.GetComponent<HealthController>();
if (!collision.gameObject.CompareTag("Player")) return;
var healthController = collision.gameObject.GetComponent<HealthController>();
healthController.IncreaseHealth();
gameObject.SetActive(false);
}
}
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -32,23 +32,22 @@ public class HealthPotionGenerator : MonoBehaviour
public float potionYOffset;
public GameObject healthPotionPrefab;
private GameObject healthPotion;
Coroutine generatePotionCoroutine;
private Coroutine generatePotionCoroutine;
public float spawnTimeInterval;
// Start is called before the first frame update
void Start()
{
healthPotion = Instantiate(healthPotionPrefab);
healthPotion.SetActive(false);
rightBound = Camera.main.ViewportToWorldPoint(new Vector2(1, 1)).x;
rightBound = Camera.main!.ViewportToWorldPoint(new Vector2(1, 1)).x;
}
public void NotifyGenerate(GameObject player)
{
HealthController healthController = player.GetComponent<HealthController>();
var healthController = player.GetComponent<HealthController>();
if (healthController.NeedPotion)
{
if (generatePotionCoroutine == null)
generatePotionCoroutine = StartCoroutine(ConstantGenerate());
generatePotionCoroutine ??= StartCoroutine(ConstantGenerate());
}
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -19,39 +19,46 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.UIElements;
public class MovementController : MonoBehaviour
{
public bool isJumping = false;
private bool isPressing = false;
private bool isDoubleJumping = false;
public bool isJumping;
private bool isPressing;
private bool isDoubleJumping;
private Rigidbody2D rb2D;
public float xSpeed;
public float jumpSpeed;
private UIRect ui;
private struct UIRect
{
public Vector2 pos;
public float width;
public float height;
}
// Start is called before the first frame update
void Start()
{
rb2D = GetComponent<Rigidbody2D>();
Vector2 speed = rb2D.velocity;
var speed = rb2D.velocity;
speed.x = xSpeed;
rb2D.velocity = speed;
}
// Update is called once per frame
void Update()
{
ui = GetUiToScreenPos(GameObject.FindGameObjectWithTag("PauseButton").transform);
}
private void FixedUpdate()
{
Vector2 speed = rb2D.velocity;
var speed = rb2D.velocity;
speed.x = xSpeed;
if (Input.GetKey(KeyCode.Space) || Input.touchCount > 0)
if (Input.GetKey(KeyCode.Space) || IsTouched())
{
if (!isPressing)
{
@ -77,10 +84,47 @@ public class MovementController : MonoBehaviour
private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.gameObject.CompareTag("Floor"))
{
if (!collision.gameObject.CompareTag("Floor")) return;
isJumping = false;
isDoubleJumping = false;
}
private bool IsTouched()
{
if (Input.touchCount == 0) return false;
for (var i = 0; i < Input.touchCount; ++i)
{
if (!IsTouchInUi(Input.GetTouch(i).rawPosition)) continue;
return false;
}
return true;
}
private UIRect GetUiToScreenPos(Transform trans)
{
var mapHeight = trans.GetComponent<RectTransform>().rect.height;
var mapWidth = trans.GetComponent<RectTransform>().rect.width;
Vector2 pos2D = trans.position;
pos2D.x -= mapWidth / 2;
pos2D.y -= mapHeight / 2;
return new UIRect
{
height = mapHeight,
width = mapWidth,
pos = pos2D
};
}
private bool IsTouchInUi(Vector3 pos)
{
var isInRect = false;
var newPos = ui.pos;
if ((pos.x - 30) < (newPos.x + ui.width) && (pos.x + 30) > newPos.x &&
(pos.y - 30) < (newPos.y + ui.height) && (pos.y + 30) > newPos.y)
{
isInRect = true;
}
return isInRect;
}
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -29,14 +29,16 @@ public class RockController : MonoBehaviour
public float xSpeed;
Rigidbody2D rb2d;
private float leftBound;
AudioSource audioSource;
private SoundEffectController controller;
// Start is called before the first frame update
void Start()
{
rb2d = GetComponent<Rigidbody2D>();
audioSource = GetComponent<AudioSource>();
rb2d.velocity = new Vector2(xSpeed, 0);
leftBound = Camera.main.ViewportToWorldPoint(new Vector2(0, 1)).x;
leftBound = Camera.main!.ViewportToWorldPoint(new Vector2(0, 1)).x;
controller = GameObject.FindGameObjectsWithTag("SoundEffectController")[0]
.GetComponent<SoundEffectController>();
}
// Update is called once per frame
@ -50,12 +52,10 @@ public class RockController : MonoBehaviour
private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.gameObject.CompareTag("Player"))
{
audioSource.Play();
HealthController healthController = collision.gameObject.GetComponent<HealthController>();
if (!collision.gameObject.CompareTag("Player")) return;
controller.NotifyPlay();
var healthController = collision.gameObject.GetComponent<HealthController>();
healthController.DecreaseHealth();
gameObject.SetActive(false);
}
}
}

View File

@ -1,7 +1,7 @@
/*
zlib License
(C) 2022 Lucas
(C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -36,15 +36,15 @@ public class RockGenerator : MonoBehaviour
// Start is called before the first frame update
void Start()
{
BackgroundMovementController controller = GetComponent<BackgroundMovementController>();
var controller = GetComponent<BackgroundMovementController>();
xSpeed = controller.speed;
rockObjects = new List<GameObject>();
float initialPos = initialPosition;
for (int i = 0; i < 7; i++)
var initialPos = initialPosition;
for (var i = 0; i < 7; i++)
{
initialPos += fixedDistance + floatingDistance * Random.value;
GameObject curRockObject = Instantiate(rockPrefab);
var curRockObject = Instantiate(rockPrefab);
curRockObject.transform.position = new Vector3(initialPos,
offset);
curRockObject.GetComponent<RockController>().xSpeed = xSpeed;
@ -56,10 +56,11 @@ public class RockGenerator : MonoBehaviour
// Update is called once per frame
void Update()
{
foreach (GameObject curRockObject in rockObjects)
{
if (!curRockObject.activeSelf)
var index = 0;
for (; index < rockObjects.Count; index++)
{
var curRockObject = rockObjects[index];
if (curRockObject.activeSelf) continue;
curRockObject.transform.position = new Vector3(maxStone.transform.position.x
+ fixedDistance + floatingDistance * Random.value,
curRockObject.transform.position.y);
@ -68,5 +69,4 @@ public class RockGenerator : MonoBehaviour
maxStone = curRockObject;
}
}
}
}

View File

@ -1,13 +1,14 @@
{
"dependencies": {
"com.unity.collab-proxy": "1.15.17",
"com.unity.collab-proxy": "1.17.7",
"com.unity.feature.2d": "1.0.0",
"com.unity.ide.rider": "3.0.14",
"com.unity.ide.visualstudio": "2.0.15",
"com.unity.ide.rider": "3.0.18",
"com.unity.ide.visualstudio": "2.0.16",
"com.unity.ide.vscode": "1.2.5",
"com.unity.test-framework": "1.1.31",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.6.4",
"com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.4",
"com.unity.ugui": "1.0.0",
"com.unity.visualscripting": "1.7.8",
"com.unity.modules.ai": "1.0.0",

View File

@ -1,11 +1,11 @@
{
"dependencies": {
"com.unity.2d.animation": {
"version": "7.0.5",
"version": "7.0.9",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "6.0.3",
"com.unity.2d.common": "6.0.6",
"com.unity.2d.sprite": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.uielements": "1.0.0"
@ -13,7 +13,7 @@
"url": "https://packages.unity.cn"
},
"com.unity.2d.common": {
"version": "6.0.3",
"version": "6.0.6",
"depth": 2,
"source": "registry",
"dependencies": {
@ -32,19 +32,19 @@
"url": "https://packages.unity.cn"
},
"com.unity.2d.pixel-perfect": {
"version": "5.0.1",
"version": "5.0.3",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.cn"
},
"com.unity.2d.psdimporter": {
"version": "6.0.3",
"version": "6.0.6",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.2d.animation": "7.0.4",
"com.unity.2d.common": "6.0.3",
"com.unity.2d.animation": "7.0.8",
"com.unity.2d.common": "6.0.5",
"com.unity.2d.sprite": "1.0.0"
},
"url": "https://packages.unity.cn"
@ -56,12 +56,12 @@
"dependencies": {}
},
"com.unity.2d.spriteshape": {
"version": "7.0.4",
"version": "7.0.6",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.1.0",
"com.unity.2d.common": "6.0.3",
"com.unity.2d.common": "6.0.4",
"com.unity.2d.path": "5.0.2",
"com.unity.modules.physics2d": "1.0.0"
},
@ -74,7 +74,7 @@
"dependencies": {}
},
"com.unity.2d.tilemap.extras": {
"version": "2.2.2",
"version": "2.2.3",
"depth": 1,
"source": "registry",
"dependencies": {
@ -86,7 +86,7 @@
"url": "https://packages.unity.cn"
},
"com.unity.burst": {
"version": "1.6.5",
"version": "1.6.6",
"depth": 3,
"source": "registry",
"dependencies": {
@ -95,7 +95,7 @@
"url": "https://packages.unity.cn"
},
"com.unity.collab-proxy": {
"version": "1.15.17",
"version": "1.17.7",
"depth": 0,
"source": "registry",
"dependencies": {
@ -115,17 +115,17 @@
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.2d.animation": "7.0.5",
"com.unity.2d.pixel-perfect": "5.0.1",
"com.unity.2d.psdimporter": "6.0.3",
"com.unity.2d.animation": "7.0.9",
"com.unity.2d.pixel-perfect": "5.0.3",
"com.unity.2d.psdimporter": "6.0.6",
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "7.0.4",
"com.unity.2d.spriteshape": "7.0.6",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.2d.tilemap.extras": "2.2.2"
"com.unity.2d.tilemap.extras": "2.2.3"
}
},
"com.unity.ide.rider": {
"version": "3.0.14",
"version": "3.0.18",
"depth": 0,
"source": "registry",
"dependencies": {
@ -134,7 +134,7 @@
"url": "https://packages.unity.cn"
},
"com.unity.ide.visualstudio": {
"version": "2.0.15",
"version": "2.0.16",
"depth": 0,
"source": "registry",
"dependencies": {
@ -164,7 +164,7 @@
"url": "https://packages.unity.cn"
},
"com.unity.services.core": {
"version": "1.4.0",
"version": "1.6.0",
"depth": 1,
"source": "registry",
"dependencies": {
@ -174,6 +174,22 @@
},
"url": "https://packages.unity.cn"
},
"com.unity.sysroot": {
"version": "2.0.5",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.cn"
},
"com.unity.sysroot.linux-x86_64": {
"version": "2.0.4",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.sysroot": "2.0.5"
},
"url": "https://packages.unity.cn"
},
"com.unity.test-framework": {
"version": "1.1.31",
"depth": 0,
@ -206,6 +222,16 @@
},
"url": "https://packages.unity.cn"
},
"com.unity.toolchain.win-x86_64-linux-x86_64": {
"version": "2.0.4",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.sysroot": "2.0.5",
"com.unity.sysroot.linux-x86_64": "2.0.4"
},
"url": "https://packages.unity.cn"
},
"com.unity.ugui": {
"version": "1.0.0",
"depth": 0,

View File

@ -5,13 +5,19 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 0
path:
guid: 00000000000000000000000000000000
- enabled: 1
path: Assets/Scenes/StartupScene.unity
guid: 5785dd3f76a528b4bb568ebe61860fed
- enabled: 1
path: Assets/Scenes/MainScene.unity
guid: 99ca68dc39a7e4246acf9bd1c545b058
- enabled: 1
path: Assets/Scenes/HighScoreScene.unity
guid: c3fd9546082b0ae41bf6edc5f3f7a7db
- enabled: 1
path: Assets/Scenes/SettlementScene.unity
guid: 47c3988a560e37b4e92f2dfb737fac81
- enabled: 1
path: Assets/Scenes/RankingScene.unity
guid: 32481ef54a0412942b442912c8081863
m_configObjects: {}

View File

@ -3,7 +3,7 @@
--- !u!30 &1
GraphicsSettings:
m_ObjectHideFlags: 0
serializedVersion: 13
serializedVersion: 14
m_Deferred:
m_Mode: 1
m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
@ -38,13 +38,31 @@ GraphicsSettings:
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_PreloadShadersBatchTimeLimit: -1
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_CustomRenderPipeline: {fileID: 0}
m_TransparencySortMode: 0
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
m_DefaultRenderingPath: 1
m_DefaultMobileRenderingPath: 1
m_TierSettings: []
m_TierSettings:
- serializedVersion: 5
m_BuildTarget: 7
m_Tier: 0
m_Settings:
standardShaderQuality: 0
renderingPath: 1
hdrMode: 2
realtimeGICPUUsage: 25
useReflectionProbeBoxProjection: 0
useReflectionProbeBlending: 0
useHDR: 0
useDetailNormalMap: 0
useCascadedShadowMaps: 0
prefer32BitShadowMaps: 0
enableLPPV: 0
useDitherMaskForAlphaBlendedShadows: 0
m_Automatic: 1
m_LightmapStripping: 0
m_FogStripping: 0
m_InstancingStripping: 0
@ -62,3 +80,4 @@ GraphicsSettings:
m_LightsUseColorTemperature: 0
m_DefaultRenderingLayerMask: 1
m_LogWhenShaderIsCompiled: 0
m_SRPDefaultSettings: {}

View File

@ -145,7 +145,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 3.1
bundleVersion: 3.4
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
@ -382,7 +382,105 @@ PlayerSettings:
m_Height: 36
m_Kind: 0
m_SubKind:
- m_BuildTarget: iPhone
m_Icons:
- m_Textures: []
m_Width: 180
m_Height: 180
m_Kind: 0
m_SubKind: iPhone
- m_Textures: []
m_Width: 120
m_Height: 120
m_Kind: 0
m_SubKind: iPhone
- m_Textures: []
m_Width: 167
m_Height: 167
m_Kind: 0
m_SubKind: iPad
- m_Textures: []
m_Width: 152
m_Height: 152
m_Kind: 0
m_SubKind: iPad
- m_Textures: []
m_Width: 76
m_Height: 76
m_Kind: 0
m_SubKind: iPad
- m_Textures: []
m_Width: 120
m_Height: 120
m_Kind: 3
m_SubKind: iPhone
- m_Textures: []
m_Width: 80
m_Height: 80
m_Kind: 3
m_SubKind: iPhone
- m_Textures: []
m_Width: 80
m_Height: 80
m_Kind: 3
m_SubKind: iPad
- m_Textures: []
m_Width: 40
m_Height: 40
m_Kind: 3
m_SubKind: iPad
- m_Textures: []
m_Width: 87
m_Height: 87
m_Kind: 1
m_SubKind: iPhone
- m_Textures: []
m_Width: 58
m_Height: 58
m_Kind: 1
m_SubKind: iPhone
- m_Textures: []
m_Width: 29
m_Height: 29
m_Kind: 1
m_SubKind: iPhone
- m_Textures: []
m_Width: 58
m_Height: 58
m_Kind: 1
m_SubKind: iPad
- m_Textures: []
m_Width: 29
m_Height: 29
m_Kind: 1
m_SubKind: iPad
- m_Textures: []
m_Width: 60
m_Height: 60
m_Kind: 2
m_SubKind: iPhone
- m_Textures: []
m_Width: 40
m_Height: 40
m_Kind: 2
m_SubKind: iPhone
- m_Textures: []
m_Width: 40
m_Height: 40
m_Kind: 2
m_SubKind: iPad
- m_Textures: []
m_Width: 20
m_Height: 20
m_Kind: 2
m_SubKind: iPad
- m_Textures: []
m_Width: 1024
m_Height: 1024
m_Kind: 4
m_SubKind: App Store
m_BuildTargetBatching: []
m_BuildTargetShaderSettings: []
m_BuildTargetGraphicsJobs:
- m_BuildTarget: MacStandaloneSupport
m_GraphicsJobs: 0
@ -418,7 +516,12 @@ PlayerSettings:
- m_BuildTarget: iOSSupport
m_APIs: 10000000
m_Automatic: 1
- m_BuildTarget: WindowsStandaloneSupport
m_APIs: 120000001500000002000000
m_Automatic: 0
m_BuildTargetVRSettings: []
m_DefaultShaderChunkSizeInMB: 16
m_DefaultShaderChunkCount: 0
openGLRequireES31: 0
openGLRequireES31AEP: 0
openGLRequireES32: 0
@ -581,6 +684,7 @@ PlayerSettings:
switchNetworkInterfaceManagerInitializeEnabled: 1
switchPlayerConnectionEnabled: 1
switchUseNewStyleFilepaths: 0
switchUseLegacyFmodPriorities: 1
switchUseMicroSleepForYield: 1
switchEnableRamDiskSupport: 0
switchMicroSleepForYieldTime: 25
@ -655,6 +759,7 @@ PlayerSettings:
ps4videoRecordingFeaturesUsed: 0
ps4contentSearchFeaturesUsed: 0
ps4CompatibilityPS5: 0
ps4AllowPS5Detection: 0
ps4GPU800MHz: 1
ps4attribEyeToEyeDistanceSettingVR: 0
ps4IncludedModules: []
@ -679,12 +784,14 @@ PlayerSettings:
webGLLinkerTarget: 1
webGLThreadsSupport: 0
webGLDecompressionFallback: 0
webGLPowerPreference: 2
scriptingDefineSymbols:
Server: ExitButton
additionalCompilerArguments: {}
platformArchitecture: {}
scriptingBackend:
Android: 1
Standalone: 1
il2cppCompilerConfiguration: {}
managedStrippingLevel: {}
incrementalIl2cppBuild: {}
@ -692,6 +799,7 @@ PlayerSettings:
allowUnsafeCode: 0
useDeterministicCompilation: 1
enableRoslynAnalyzers: 1
selectedPlatform: 2
additionalIl2CppArgs:
scriptingRuntimeVersion: 1
gcIncremental: 1
@ -700,8 +808,8 @@ PlayerSettings:
apiCompatibilityLevelPerPlatform: {}
m_RenderingPath: 1
m_MobileRenderingPath: 1
metroPackageName: 2D_BuiltInRenderer
metroPackageVersion:
metroPackageName: 2DBuiltInRenderer
metroPackageVersion: 1.0.0.0
metroCertificatePath:
metroCertificatePassword:
metroCertificateSubject:
@ -709,7 +817,7 @@ PlayerSettings:
metroCertificateNotAfter: 0000000000000000
metroApplicationDescription: 2D_BuiltInRenderer
wsaImages: {}
metroTileShortName:
metroTileShortName: "\u8DF3\u51FA\u4E00\u65B9\u5929\u5730"
metroTileShowName: 0
metroMediumTileShowName: 0
metroLargeTileShowName: 0
@ -769,6 +877,7 @@ PlayerSettings:
m_VersionName:
apiCompatibilityLevel: 6
activeInputHandler: 0
windowsGamepadBackendHint: 0
cloudProjectId:
framebufferDepthMemorylessMode: 0
qualitySettingsNames: []

View File

@ -1,2 +1,2 @@
m_EditorVersion: 2021.3.4f1c1
m_EditorVersionWithRevision: 2021.3.4f1c1 (64682593795a)
m_EditorVersion: 2021.3.16f1c1
m_EditorVersionWithRevision: 2021.3.16f1c1 (56dbfdd6697f)

View File

@ -4,80 +4,8 @@
QualitySettings:
m_ObjectHideFlags: 0
serializedVersion: 5
m_CurrentQuality: 5
m_CurrentQuality: 0
m_QualitySettings:
- serializedVersion: 2
name: Very Low
pixelLightCount: 0
shadows: 0
shadowResolution: 0
shadowProjection: 1
shadowCascades: 1
shadowDistance: 15
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
skinWeights: 1
textureQuality: 1
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 0
lodBias: 0.3
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
streamingMipmapsRenderersPerFrame: 512
streamingMipmapsMaxLevelReduction: 2
streamingMipmapsMaxFileIORequests: 1024
particleRaycastBudget: 4
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: []
- serializedVersion: 2
name: Low
pixelLightCount: 0
shadows: 0
shadowResolution: 0
shadowProjection: 1
shadowCascades: 1
shadowDistance: 20
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
skinWeights: 2
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 0
lodBias: 0.4
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
streamingMipmapsRenderersPerFrame: 512
streamingMipmapsMaxLevelReduction: 2
streamingMipmapsMaxFileIORequests: 1024
particleRaycastBudget: 16
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: []
- serializedVersion: 2
name: Medium
pixelLightCount: 1
@ -98,8 +26,8 @@ QualitySettings:
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 1
lodBias: 0.7
vSyncCount: 0
lodBias: 2
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
@ -114,123 +42,16 @@ QualitySettings:
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: []
- serializedVersion: 2
name: High
pixelLightCount: 2
shadows: 2
shadowResolution: 1
shadowProjection: 1
shadowCascades: 2
shadowDistance: 40
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 2
textureQuality: 0
anisotropicTextures: 1
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
lodBias: 1
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
streamingMipmapsRenderersPerFrame: 512
streamingMipmapsMaxLevelReduction: 2
streamingMipmapsMaxFileIORequests: 1024
particleRaycastBudget: 256
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: []
- serializedVersion: 2
name: Very High
pixelLightCount: 3
shadows: 2
shadowResolution: 2
shadowProjection: 1
shadowCascades: 2
shadowDistance: 70
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 4
textureQuality: 0
anisotropicTextures: 2
antiAliasing: 2
softParticles: 1
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
lodBias: 1.5
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
streamingMipmapsRenderersPerFrame: 512
streamingMipmapsMaxLevelReduction: 2
streamingMipmapsMaxFileIORequests: 1024
particleRaycastBudget: 1024
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: []
- serializedVersion: 2
name: Ultra
pixelLightCount: 4
shadows: 2
shadowResolution: 2
shadowProjection: 1
shadowCascades: 4
shadowDistance: 150
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 255
textureQuality: 0
anisotropicTextures: 2
antiAliasing: 2
softParticles: 1
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
lodBias: 2
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
streamingMipmapsRenderersPerFrame: 512
streamingMipmapsMaxLevelReduction: 2
streamingMipmapsMaxFileIORequests: 1024
particleRaycastBudget: 4096
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: []
m_PerPlatformDefaultQuality:
Android: 2
Lumin: 5
Nintendo Switch: 5
PS4: 5
Stadia: 5
Standalone: 5
WebGL: 3
Windows Store Apps: 5
XboxOne: 5
iPhone: 2
tvOS: 2
Android: 0
Lumin: 0
Nintendo Switch: 0
PS4: 0
Server: 0
Stadia: 0
Standalone: 0
WebGL: 0
Windows Store Apps: 0
XboxOne: 0
iPhone: 0
tvOS: 0

View File

@ -10,6 +10,10 @@ TagManager:
- Text
- MeterImage
- HealthPotion
- SoundEffectController
- PauseMenu
- DistanceText
- PauseButton
layers:
- Default
- TransparentFX