详情请见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} - component: {fileID: 3031531149213211398}
m_Layer: 5 m_Layer: 5
m_Name: DistanceText m_Name: DistanceText
m_TagString: Untagged m_TagString: DistanceText
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0

View File

@ -13,7 +13,6 @@ GameObject:
- component: {fileID: 7842703526636760784} - component: {fileID: 7842703526636760784}
- component: {fileID: 7842703526636760783} - component: {fileID: 7842703526636760783}
- component: {fileID: 8186647694008240964} - component: {fileID: 8186647694008240964}
- component: {fileID: 2828386532122924123}
m_Layer: 6 m_Layer: 6
m_Name: RockObject m_Name: RockObject
m_TagString: Obstacles m_TagString: Obstacles
@ -198,99 +197,3 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
xSpeed: 0 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_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_UiScaleMode: 0 m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100 m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1 m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600} m_ReferenceResolution: {x: 1024, y: 768}
m_ScreenMatchMode: 0 m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0 m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3 m_PhysicalUnit: 3
@ -217,7 +217,10 @@ RectTransform:
m_Children: m_Children:
- {fileID: 1063081223} - {fileID: 1063081223}
- {fileID: 1444111047} - {fileID: 1444111047}
- {fileID: 1692816062}
- {fileID: 853659546}
- {fileID: 882329437} - {fileID: 882329437}
- {fileID: 622078085}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -226,6 +229,91 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {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 --- !u!1 &744156464
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -285,11 +373,11 @@ MonoBehaviour:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_FontData: m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 48 m_FontSize: 36
m_FontStyle: 0 m_FontStyle: 0
m_BestFit: 0 m_BestFit: 0
m_MinSize: 4 m_MinSize: 3
m_MaxSize: 48 m_MaxSize: 48
m_Alignment: 4 m_Alignment: 4
m_AlignByGeometry: 0 m_AlignByGeometry: 0
@ -306,6 +394,140 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 744156464} m_GameObject: {fileID: 744156464}
m_CullTransparentMesh: 1 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 --- !u!1 &882329436
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -339,12 +561,12 @@ RectTransform:
m_Children: m_Children:
- {fileID: 1810591674} - {fileID: 1810591674}
m_Father: {fileID: 19056360} m_Father: {fileID: 19056360}
m_RootOrder: 2 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 188, y: -140.80423} m_AnchoredPosition: {x: 300, y: -140}
m_SizeDelta: {x: 320.4928, y: 119.6084} m_SizeDelta: {x: 180, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &882329438 --- !u!114 &882329438
MonoBehaviour: MonoBehaviour:
@ -440,6 +662,86 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 882329436} m_GameObject: {fileID: 882329436}
m_CullTransparentMesh: 1 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 --- !u!1 &1063081222
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -639,8 +941,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -182.7536, y: -140.80423} m_AnchoredPosition: {x: -300, y: -140}
m_SizeDelta: {x: 320.4928, y: 119.6084} m_SizeDelta: {x: 180, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1444111048 --- !u!114 &1444111048
MonoBehaviour: MonoBehaviour:
@ -736,6 +1038,140 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1444111046} m_GameObject: {fileID: 1444111046}
m_CullTransparentMesh: 1 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 --- !u!1 &1714768154
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -807,7 +1243,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0 m_HorizontalOverflow: 0
m_VerticalOverflow: 0 m_VerticalOverflow: 0
m_LineSpacing: 1 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 --- !u!222 &1714768157
CanvasRenderer: CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -828,6 +1264,7 @@ GameObject:
- component: {fileID: 1761663052} - component: {fileID: 1761663052}
- component: {fileID: 1761663051} - component: {fileID: 1761663051}
- component: {fileID: 1761663054} - component: {fileID: 1761663054}
- component: {fileID: 1761663055}
m_Layer: 0 m_Layer: 0
m_Name: EventSystem m_Name: EventSystem
m_TagString: Untagged m_TagString: Untagged
@ -847,6 +1284,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical m_VerticalAxis: Vertical
m_SubmitButton: Submit m_SubmitButton: Submit
@ -896,6 +1334,18 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 846902436ffcc42499272fb53e18590a, type: 3} m_Script: {fileID: 11500000, guid: 846902436ffcc42499272fb53e18590a, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: 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 --- !u!1 &1810591673
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -955,11 +1405,11 @@ MonoBehaviour:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_FontData: m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 48 m_FontSize: 36
m_FontStyle: 0 m_FontStyle: 0
m_BestFit: 0 m_BestFit: 0
m_MinSize: 4 m_MinSize: 3
m_MaxSize: 300 m_MaxSize: 300
m_Alignment: 4 m_Alignment: 4
m_AlignByGeometry: 0 m_AlignByGeometry: 0
@ -1035,7 +1485,7 @@ MonoBehaviour:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_FontData: m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_Font: {fileID: 12800000, guid: 2bf12013aafd87743a3d4787fd383b70, type: 3}
m_FontSize: 96 m_FontSize: 96
m_FontStyle: 0 m_FontStyle: 0
m_BestFit: 0 m_BestFit: 0
@ -1056,3 +1506,228 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2056260118} m_GameObject: {fileID: 2056260118}
m_CullTransparentMesh: 1 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 zlib License
Ìø³öÒ»·½ÌìµØ (C) 2022 Lucas (C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
@ -28,9 +28,12 @@ public class BackgroundMovementController : MonoBehaviour
public GameObject backgroundObject; public GameObject backgroundObject;
private GameObject backgroundObject1; private GameObject backgroundObject1;
private GameObject backgroundObject2; private GameObject backgroundObject2;
// Update: Triple moving background -> boundless transform
private GameObject backgroundObject3;
private float distance; private float distance;
private Rigidbody2D brg2D1; private Rigidbody2D brg2D1;
private Rigidbody2D brg2D2; private Rigidbody2D brg2D2;
private Rigidbody2D brg2D3;
public float speed; public float speed;
private float leftBound; private float leftBound;
// Start is called before the first frame update // Start is called before the first frame update
@ -38,18 +41,29 @@ public class BackgroundMovementController : MonoBehaviour
{ {
backgroundObject1 = Instantiate(backgroundObject); backgroundObject1 = Instantiate(backgroundObject);
backgroundObject2 = Instantiate(backgroundObject); backgroundObject2 = Instantiate(backgroundObject);
backgroundObject3 = Instantiate(backgroundObject);
brg2D1 = backgroundObject1.GetComponent<Rigidbody2D>(); brg2D1 = backgroundObject1.GetComponent<Rigidbody2D>();
brg2D2 = backgroundObject2.GetComponent<Rigidbody2D>(); brg2D2 = backgroundObject2.GetComponent<Rigidbody2D>();
brg2D3 = backgroundObject3.GetComponent<Rigidbody2D>();
Vector2 speedVector = new(speed, 0); Vector2 speedVector = new(speed, 0);
brg2D1.velocity = speedVector; brg2D1.velocity = speedVector;
brg2D2.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; leftBound = topLeft.x;
SpriteRenderer sRenderer = backgroundObject1.GetComponent<SpriteRenderer>(); var sRenderer = backgroundObject1.GetComponent<SpriteRenderer>();
distance = sRenderer.bounds.extents.x * 2; distance = sRenderer.bounds.extents.x * 2;
backgroundObject2.transform.position = new Vector3(backgroundObject2.transform.position.x + distance, var position = backgroundObject2.transform.position;
backgroundObject2.transform.position.y, backgroundObject2.transform.position.z); 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 // Update is called once per frame
@ -58,18 +72,28 @@ public class BackgroundMovementController : MonoBehaviour
if (brg2D1.transform.position.x <= leftBound) if (brg2D1.transform.position.x <= leftBound)
{ {
Vector3 newPosition = new(brg2D2.transform.position.x + distance, var position = brg2D3.transform.position;
brg2D2.transform.position.y, Vector3 newPosition = new(position.x + distance,
brg2D2.transform.position.z); position.y,
position.z);
brg2D1.transform.position = newPosition; brg2D1.transform.position = newPosition;
} }
else if (brg2D2.transform.position.x <= leftBound) else if (brg2D2.transform.position.x <= leftBound)
{ {
Vector3 newPosition = new(brg2D1.transform.position.x + distance, var position = brg2D1.transform.position;
brg2D1.transform.position.y, Vector3 newPosition = new(position.x + distance,
brg2D1.transform.position.z); position.y,
position.z);
brg2D2.transform.position = newPosition; 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 zlib License
(C) 2022 Lucas (C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
@ -19,20 +19,29 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
using System.Collections;
using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using Gravitons.UI.Modal;
public class ButtonEventHandler : MonoBehaviour public class ButtonEventHandler : MonoBehaviour
{ {
private bool isDialogExists = false;
private void Start() private void Start()
{ {
// Do some initialization
Screen.orientation = ScreenOrientation.LandscapeLeft; Screen.orientation = ScreenOrientation.LandscapeLeft;
Screen.autorotateToLandscapeLeft = true; Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true; Screen.autorotateToLandscapeRight = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false; Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false; Screen.autorotateToPortraitUpsideDown = false;
// Frame rate setting
if (Application.isMobilePlatform)
Application.targetFrameRate = 120;
else
QualitySettings.vSyncCount = 1;
} }
public void OnStart() public void OnStart()
{ {
@ -43,4 +52,24 @@ public class ButtonEventHandler : MonoBehaviour
{ {
Application.Quit(); 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 zlib License
(C) 2022 Lucas (C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
@ -37,18 +37,19 @@ public class GameController : MonoBehaviour
void Start() void Start()
{ {
player = Instantiate(playerPrefab); player = Instantiate(playerPrefab);
initialPlayerPosition = Camera.main.ViewportToWorldPoint(new Vector2(0, 1)).x + playerSpawnDistance; initialPlayerPosition = Camera.main!.ViewportToWorldPoint(new Vector2(0, 1)).x + playerSpawnDistance;
player.transform.position = new Vector3(initialPlayerPosition, var position = player.transform.position;
player.transform.position.y, position = new Vector3(initialPlayerPosition,
player.transform.position.z); position.y,
position.z);
player.transform.position = position;
Screen.orientation = ScreenOrientation.LandscapeLeft; Screen.orientation = ScreenOrientation.LandscapeLeft;
Screen.autorotateToLandscapeLeft = true; Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true; Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false; Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false; Screen.autorotateToPortraitUpsideDown = false;
GameObject disText = Instantiate(distanceTextPrefab); GameObject disText = Instantiate(distanceTextPrefab, GameObject.Find("Canvas").transform, false);
disText.transform.SetParent(GameObject.Find("Canvas").transform, false);
distanceText = disText.GetComponent<Text>(); distanceText = disText.GetComponent<Text>();
} }

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
/* /*
zlib License zlib License
Ìø³öÒ»·½ÌìµØ (C) 2022 Lucas (C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
@ -19,39 +19,46 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.UIElements;
public class MovementController : MonoBehaviour public class MovementController : MonoBehaviour
{ {
public bool isJumping = false; public bool isJumping;
private bool isPressing = false; private bool isPressing;
private bool isDoubleJumping = false; private bool isDoubleJumping;
private Rigidbody2D rb2D; private Rigidbody2D rb2D;
public float xSpeed; public float xSpeed;
public float jumpSpeed; 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 // Start is called before the first frame update
void Start() void Start()
{ {
rb2D = GetComponent<Rigidbody2D>(); rb2D = GetComponent<Rigidbody2D>();
Vector2 speed = rb2D.velocity; var speed = rb2D.velocity;
speed.x = xSpeed; speed.x = xSpeed;
rb2D.velocity = speed; rb2D.velocity = speed;
} ui = GetUiToScreenPos(GameObject.FindGameObjectWithTag("PauseButton").transform);
// Update is called once per frame
void Update()
{
} }
private void FixedUpdate() private void FixedUpdate()
{ {
Vector2 speed = rb2D.velocity; var speed = rb2D.velocity;
speed.x = xSpeed; speed.x = xSpeed;
if (Input.GetKey(KeyCode.Space) || Input.touchCount > 0) if (Input.GetKey(KeyCode.Space) || IsTouched())
{ {
if (!isPressing) if (!isPressing)
{ {
@ -77,10 +84,47 @@ public class MovementController : MonoBehaviour
private void OnCollisionEnter2D(Collision2D collision) private void OnCollisionEnter2D(Collision2D collision)
{ {
if (collision.gameObject.CompareTag("Floor")) if (!collision.gameObject.CompareTag("Floor")) return;
{ isJumping = false;
isJumping = false; isDoubleJumping = 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 zlib License
(C) 2022 Lucas (C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
@ -29,14 +29,16 @@ public class RockController : MonoBehaviour
public float xSpeed; public float xSpeed;
Rigidbody2D rb2d; Rigidbody2D rb2d;
private float leftBound; private float leftBound;
AudioSource audioSource;
private SoundEffectController controller;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
rb2d = GetComponent<Rigidbody2D>(); rb2d = GetComponent<Rigidbody2D>();
audioSource = GetComponent<AudioSource>();
rb2d.velocity = new Vector2(xSpeed, 0); 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 // Update is called once per frame
@ -50,12 +52,10 @@ public class RockController : MonoBehaviour
private void OnCollisionEnter2D(Collision2D collision) private void OnCollisionEnter2D(Collision2D collision)
{ {
if (collision.gameObject.CompareTag("Player")) if (!collision.gameObject.CompareTag("Player")) return;
{ controller.NotifyPlay();
audioSource.Play(); var healthController = collision.gameObject.GetComponent<HealthController>();
HealthController healthController = collision.gameObject.GetComponent<HealthController>(); healthController.DecreaseHealth();
healthController.DecreaseHealth(); gameObject.SetActive(false);
gameObject.SetActive(false);
}
} }
} }

View File

@ -1,7 +1,7 @@
/* /*
zlib License zlib License
Ìø³öÒ»·½ÌìµØ (C) 2022 Lucas (C) 2022-2023 Lucas
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages 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 // Start is called before the first frame update
void Start() void Start()
{ {
BackgroundMovementController controller = GetComponent<BackgroundMovementController>(); var controller = GetComponent<BackgroundMovementController>();
xSpeed = controller.speed; xSpeed = controller.speed;
rockObjects = new List<GameObject>(); rockObjects = new List<GameObject>();
float initialPos = initialPosition; var initialPos = initialPosition;
for (int i = 0; i < 7; i++) for (var i = 0; i < 7; i++)
{ {
initialPos += fixedDistance + floatingDistance * Random.value; initialPos += fixedDistance + floatingDistance * Random.value;
GameObject curRockObject = Instantiate(rockPrefab); var curRockObject = Instantiate(rockPrefab);
curRockObject.transform.position = new Vector3(initialPos, curRockObject.transform.position = new Vector3(initialPos,
offset); offset);
curRockObject.GetComponent<RockController>().xSpeed = xSpeed; curRockObject.GetComponent<RockController>().xSpeed = xSpeed;
@ -56,17 +56,17 @@ public class RockGenerator : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
foreach (GameObject curRockObject in rockObjects) var index = 0;
for (; index < rockObjects.Count; index++)
{ {
if (!curRockObject.activeSelf) var curRockObject = rockObjects[index];
{ if (curRockObject.activeSelf) continue;
curRockObject.transform.position = new Vector3(maxStone.transform.position.x curRockObject.transform.position = new Vector3(maxStone.transform.position.x
+ fixedDistance + floatingDistance * Random.value, + fixedDistance + floatingDistance * Random.value,
curRockObject.transform.position.y); curRockObject.transform.position.y);
curRockObject.SetActive(true); curRockObject.SetActive(true);
curRockObject.GetComponent<Rigidbody2D>().velocity = new Vector2(xSpeed, 0); curRockObject.GetComponent<Rigidbody2D>().velocity = new Vector2(xSpeed, 0);
maxStone = curRockObject; maxStone = curRockObject;
}
} }
} }
} }

View File

@ -1,13 +1,14 @@
{ {
"dependencies": { "dependencies": {
"com.unity.collab-proxy": "1.15.17", "com.unity.collab-proxy": "1.17.7",
"com.unity.feature.2d": "1.0.0", "com.unity.feature.2d": "1.0.0",
"com.unity.ide.rider": "3.0.14", "com.unity.ide.rider": "3.0.18",
"com.unity.ide.visualstudio": "2.0.15", "com.unity.ide.visualstudio": "2.0.16",
"com.unity.ide.vscode": "1.2.5", "com.unity.ide.vscode": "1.2.5",
"com.unity.test-framework": "1.1.31", "com.unity.test-framework": "1.1.31",
"com.unity.textmeshpro": "3.0.6", "com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.6.4", "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.ugui": "1.0.0",
"com.unity.visualscripting": "1.7.8", "com.unity.visualscripting": "1.7.8",
"com.unity.modules.ai": "1.0.0", "com.unity.modules.ai": "1.0.0",

View File

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

View File

@ -5,13 +5,19 @@ EditorBuildSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 2 serializedVersion: 2
m_Scenes: m_Scenes:
- enabled: 0
path:
guid: 00000000000000000000000000000000
- enabled: 1 - enabled: 1
path: Assets/Scenes/StartupScene.unity path: Assets/Scenes/StartupScene.unity
guid: 5785dd3f76a528b4bb568ebe61860fed guid: 5785dd3f76a528b4bb568ebe61860fed
- enabled: 1 - enabled: 1
path: Assets/Scenes/MainScene.unity path: Assets/Scenes/MainScene.unity
guid: 99ca68dc39a7e4246acf9bd1c545b058 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: {} m_configObjects: {}

View File

@ -3,7 +3,7 @@
--- !u!30 &1 --- !u!30 &1
GraphicsSettings: GraphicsSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 13 serializedVersion: 14
m_Deferred: m_Deferred:
m_Mode: 1 m_Mode: 1
m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
@ -38,13 +38,31 @@ GraphicsSettings:
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: [] m_PreloadedShaders: []
m_PreloadShadersBatchTimeLimit: -1
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_CustomRenderPipeline: {fileID: 0} m_CustomRenderPipeline: {fileID: 0}
m_TransparencySortMode: 0 m_TransparencySortMode: 0
m_TransparencySortAxis: {x: 0, y: 0, z: 1} m_TransparencySortAxis: {x: 0, y: 0, z: 1}
m_DefaultRenderingPath: 1 m_DefaultRenderingPath: 1
m_DefaultMobileRenderingPath: 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_LightmapStripping: 0
m_FogStripping: 0 m_FogStripping: 0
m_InstancingStripping: 0 m_InstancingStripping: 0
@ -62,3 +80,4 @@ GraphicsSettings:
m_LightsUseColorTemperature: 0 m_LightsUseColorTemperature: 0
m_DefaultRenderingLayerMask: 1 m_DefaultRenderingLayerMask: 1
m_LogWhenShaderIsCompiled: 0 m_LogWhenShaderIsCompiled: 0
m_SRPDefaultSettings: {}

View File

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

View File

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

View File

@ -4,80 +4,8 @@
QualitySettings: QualitySettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 5 serializedVersion: 5
m_CurrentQuality: 5 m_CurrentQuality: 0
m_QualitySettings: 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 - serializedVersion: 2
name: Medium name: Medium
pixelLightCount: 1 pixelLightCount: 1
@ -98,8 +26,8 @@ QualitySettings:
softVegetation: 0 softVegetation: 0
realtimeReflectionProbes: 0 realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0 billboardsFaceCameraPosition: 0
vSyncCount: 1 vSyncCount: 0
lodBias: 0.7 lodBias: 2
maximumLODLevel: 0 maximumLODLevel: 0
streamingMipmapsActive: 0 streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1 streamingMipmapsAddAllCameras: 1
@ -114,123 +42,16 @@ QualitySettings:
resolutionScalingFixedDPIFactor: 1 resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0} customRenderPipeline: {fileID: 0}
excludedTargetPlatforms: [] 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: m_PerPlatformDefaultQuality:
Android: 2 Android: 0
Lumin: 5 Lumin: 0
Nintendo Switch: 5 Nintendo Switch: 0
PS4: 5 PS4: 0
Stadia: 5 Server: 0
Standalone: 5 Stadia: 0
WebGL: 3 Standalone: 0
Windows Store Apps: 5 WebGL: 0
XboxOne: 5 Windows Store Apps: 0
iPhone: 2 XboxOne: 0
tvOS: 2 iPhone: 0
tvOS: 0

View File

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