Compare commits

...

3 Commits

Author SHA1 Message Date
舒荣森
c70044b084 add 2024-11-27 18:57:29 +08:00
舒荣森
edff3aff3b Merge branch 'main' of http://shu.sheziwanglo.cn:3000/wulongxiao/_TheStrongestSnail 2024-11-27 18:53:54 +08:00
舒荣森
8f8fe800d2 add 2024-11-27 18:53:41 +08:00
2 changed files with 321 additions and 9 deletions

View File

@ -2311,6 +2311,11 @@ RectTransform:
m_AnchoredPosition: {x: 71, y: 36} m_AnchoredPosition: {x: 71, y: 36}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!224 &178345081 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 327976027}
m_PrefabAsset: {fileID: 0}
--- !u!1 &179144104 --- !u!1 &179144104
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2711,7 +2716,7 @@ MonoBehaviour:
- {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3}
startingPoint: {fileID: 532751784} startingPoint: {fileID: 532751784}
end: {fileID: 98816691} end: {fileID: 98816691}
is_victory: 0 is_victory: 1
is_die: 0 is_die: 0
--- !u!61 &219934845 --- !u!61 &219934845
BoxCollider2D: BoxCollider2D:
@ -3279,6 +3284,11 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3} m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 8461295688629484331} m_PrefabInstance: {fileID: 8461295688629484331}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!224 &287674963 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 814048069}
m_PrefabAsset: {fileID: 0}
--- !u!1 &293843507 --- !u!1 &293843507
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -3695,6 +3705,103 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 315160060} m_GameObject: {fileID: 315160060}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!1001 &327976027
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 366308368}
m_Modifications:
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.x
value: -167
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -334
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162796, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Name
value: Image (4)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!1 &328936952 --- !u!1 &328936952
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -4745,6 +4852,9 @@ RectTransform:
- {fileID: 284654792} - {fileID: 284654792}
- {fileID: 1580090759} - {fileID: 1580090759}
- {fileID: 1680910172} - {fileID: 1680910172}
- {fileID: 2105063212}
- {fileID: 178345081}
- {fileID: 287674963}
m_Father: {fileID: 475168857} m_Father: {fileID: 475168857}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -6762,8 +6872,8 @@ MonoBehaviour:
- {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3}
startingPoint: {fileID: 1363431408} startingPoint: {fileID: 1363431408}
end: {fileID: 869027439} end: {fileID: 869027439}
is_victory: 0 is_victory: 1
is_die: 1 is_die: 0
--- !u!61 &540447345 --- !u!61 &540447345
BoxCollider2D: BoxCollider2D:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -8847,6 +8957,103 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 811726604} m_GameObject: {fileID: 811726604}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!1001 &814048069
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 366308368}
m_Modifications:
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.x
value: -167
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -527
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162796, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Name
value: Image (5)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!1 &816281460 --- !u!1 &816281460
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -11211,7 +11418,7 @@ MonoBehaviour:
- {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3}
startingPoint: {fileID: 238215576} startingPoint: {fileID: 238215576}
end: {fileID: 1291160958} end: {fileID: 1291160958}
is_victory: 0 is_victory: 1
is_die: 0 is_die: 0
--- !u!61 &1039706607 --- !u!61 &1039706607
BoxCollider2D: BoxCollider2D:
@ -12630,7 +12837,7 @@ MonoBehaviour:
- {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3}
startingPoint: {fileID: 2137823193} startingPoint: {fileID: 2137823193}
end: {fileID: 302264171} end: {fileID: 302264171}
is_victory: 0 is_victory: 1
is_die: 0 is_die: 0
--- !u!61 &1112535303 --- !u!61 &1112535303
BoxCollider2D: BoxCollider2D:
@ -23088,6 +23295,103 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1936380313} m_GameObject: {fileID: 1936380313}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!1001 &1946384137
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 366308368}
m_Modifications:
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.x
value: -167
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -125
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162796, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_Name
value: Image (3)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!1 &1951101552 --- !u!1 &1951101552
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -24472,6 +24776,11 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2094513875} m_GameObject: {fileID: 2094513875}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!224 &2105063212 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1946384137}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2117390733 --- !u!1 &2117390733
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -25096,5 +25405,9 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: Image value: Image
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: mode
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3} m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}

View File

@ -39,7 +39,8 @@ public class snailRider : MonoBehaviour
} }
void startMove() void startMove()
{ {
palye.enabled = !is_die; obj.SetActive(!is_die);
//palye.enabled = !is_die;
if (!is_die) if (!is_die)
{ {
float suiji = 0; float suiji = 0;
@ -53,11 +54,9 @@ public class snailRider : MonoBehaviour
} }
Sequence mySequence = DOTween.Sequence(); Sequence mySequence = DOTween.Sequence();
mySequence.Append(transform.DOMove(startingPoint.transform.position, 0.01f)) mySequence.Append(transform.DOMove(startingPoint.transform.position, 0.01f))
.Append(transform.DOMove(end.transform.position, 5f + suiji)) .Append(transform.DOMove(end.transform.position, 10f + suiji))
; ;
} }
//+UnityEngine.Random.Range(-2f, 5.0f)
} }
private void Update() private void Update()
{ {