蜗牛骑士投注逻辑补充,道具位置随机

This commit is contained in:
GL 2024-12-06 16:15:57 +08:00
parent e0269ab275
commit 8c25104e4c
13 changed files with 718 additions and 122 deletions

View File

@ -1291,8 +1291,8 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1528063317}
- {fileID: 334131841}
- {fileID: 1528063317}
- {fileID: 1517484420}
- {fileID: 1843981064}
- {fileID: 2088892250}
@ -4285,6 +4285,17 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!114 &327976028 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 327976027}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &328936952
GameObject:
m_ObjectHideFlags: 0
@ -4682,7 +4693,7 @@ RectTransform:
m_Children:
- {fileID: 674241908}
m_Father: {fileID: 62339110}
m_RootOrder: 1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@ -4895,10 +4906,10 @@ RectTransform:
m_Father: {fileID: 64044007}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &346238194
MonoBehaviour:
@ -4922,7 +4933,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 37ebb88374c3fea429a67836897c1e58, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -5313,6 +5324,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 366308368}
- component: {fileID: 366308369}
m_Layer: 5
m_Name: tool
m_TagString: Untagged
@ -5338,14 +5350,37 @@ RectTransform:
- {fileID: 2105063212}
- {fileID: 178345081}
- {fileID: 287674963}
- {fileID: 1285109073}
- {fileID: 1369166505}
m_Father: {fileID: 1705891619}
m_RootOrder: 6
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 1469, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &366308369
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 366308367}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2c05c1f2e1de18740aae9d6808e3a574, type: 3}
m_Name:
m_EditorClassIdentifier:
tools:
- {fileID: 8461295688629484332}
- {fileID: 1580090760}
- {fileID: 1680910173}
- {fileID: 1946384138}
- {fileID: 327976028}
- {fileID: 814048070}
- {fileID: 1285109074}
- {fileID: 1369166506}
--- !u!1 &377858867
GameObject:
m_ObjectHideFlags: 0
@ -10046,6 +10081,82 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &765517021
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 765517022}
- component: {fileID: 765517024}
- component: {fileID: 765517023}
m_Layer: 5
m_Name: Image (3)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &765517022
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 765517021}
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: 1
m_Children: []
m_Father: {fileID: 1705891619}
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: 4116, y: 0}
m_SizeDelta: {x: 1372, y: 2436}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &765517023
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 765517021}
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: 21300000, guid: 7fb166fb99c4c034ab8d2479fa61e8f3, type: 3}
m_Type: 3
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 &765517024
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 765517021}
m_CullTransparentMesh: 1
--- !u!1 &771005322
GameObject:
m_ObjectHideFlags: 0
@ -10391,10 +10502,10 @@ RectTransform:
m_Father: {fileID: 68346900}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &779183959
MonoBehaviour:
@ -10418,7 +10529,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 701f0eb570307724cae16920c0f05103, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -10910,6 +11021,17 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!114 &814048070 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 814048069}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &816281460
GameObject:
m_ObjectHideFlags: 0
@ -13766,10 +13888,10 @@ RectTransform:
m_Father: {fileID: 1654813681}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -23, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1015843098
MonoBehaviour:
@ -13793,7 +13915,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 5d2cc5fbe70ddb04388e29fd79c3c4b9, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -18284,6 +18406,119 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1283571263}
m_CullTransparentMesh: 1
--- !u!1001 &1285109072
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: 6
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: 670
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 (6)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!224 &1285109073 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1285109072}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1285109074 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1285109072}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1286761763
GameObject:
m_ObjectHideFlags: 0
@ -18322,7 +18557,7 @@ RectTransform:
- {fileID: 1643667392}
- {fileID: 1277993770}
m_Father: {fileID: 1705891619}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
@ -18800,10 +19035,10 @@ RectTransform:
m_Father: {fileID: 1560539261}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1317959759
MonoBehaviour:
@ -18827,7 +19062,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 580a4fe0a2223ee409c7e53a23dd15ed, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -19248,10 +19483,10 @@ RectTransform:
m_Father: {fileID: 1210943763}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1366644790
MonoBehaviour:
@ -19275,7 +19510,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 6cdc20be3ef0b804c9c87c87cd6fad72, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -19327,6 +19562,119 @@ RectTransform:
m_AnchoredPosition: {x: -120.99997, y: -363}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0.5}
--- !u!1001 &1369166504
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: 7
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: 874
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 (7)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!224 &1369166505 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1369166504}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1369166506 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1369166504}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1381749172
GameObject:
m_ObjectHideFlags: 0
@ -20186,10 +20534,10 @@ RectTransform:
m_Father: {fileID: 1842293127}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1465409246
MonoBehaviour:
@ -20213,7 +20561,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 373027a5438ba964e94579ed9126eb0e, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -20573,7 +20921,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -110, y: 0}
m_AnchoredPosition: {x: -131, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1512761193
@ -20923,7 +21271,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4936081174741538049, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_RootOrder
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4936081174741538049, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_AnchorMax.x
@ -21037,6 +21385,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f9a6dd727fa0d0341a230e5f9ad4f394, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
BetHorseId: 0
BetList: {fileID: 460375803}
NumBtn: {fileID: 1956500359}
@ -21773,10 +22123,10 @@ RectTransform:
m_Father: {fileID: 1936380314}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1553821199
MonoBehaviour:
@ -21800,7 +22150,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 6971058c3e0e85d4d9d43af267ac14e9, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -22231,7 +22581,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.x
value: 72
value: -164
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.y
@ -22264,6 +22614,17 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1580090758}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1580090760 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1580090758}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1591901235
GameObject:
m_ObjectHideFlags: 0
@ -23816,6 +24177,17 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1680910171}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1680910173 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1680910171}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1682632019
GameObject:
m_ObjectHideFlags: 0
@ -23937,7 +24309,7 @@ RectTransform:
- {fileID: 540447343}
- {fileID: 884765244}
m_Father: {fileID: 1705891619}
m_RootOrder: 5
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -24462,6 +24834,7 @@ RectTransform:
- {fileID: 179144105}
- {fileID: 73964228}
- {fileID: 2146083213}
- {fileID: 765517022}
- {fileID: 1286761764}
- {fileID: 2015217526}
- {fileID: 1686599134}
@ -24469,9 +24842,9 @@ RectTransform:
m_Father: {fileID: 294094431}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: 686, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1705891620
@ -24634,10 +25007,10 @@ RectTransform:
m_Father: {fileID: 1047739253}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 19}
m_SizeDelta: {x: 133, y: 125}
m_SizeDelta: {x: -25, y: -135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1752780819
MonoBehaviour:
@ -24661,7 +25034,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 768437d25c26d5d42b1bc8f54a65e553, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -25803,7 +26176,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 062a749607dc2f142b3c8737b71fa837, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -27156,6 +27529,17 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!114 &1946384138 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 1946384137}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1951101552
GameObject:
m_ObjectHideFlags: 0
@ -28032,7 +28416,7 @@ RectTransform:
- {fileID: 885686525}
- {fileID: 950612176}
m_Father: {fileID: 1705891619}
m_RootOrder: 4
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
@ -28567,7 +28951,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 062a749607dc2f142b3c8737b71fa837, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -29484,7 +29868,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.x
value: -252
value: -165
objectReference: {fileID: 0}
- target: {fileID: 8461295688368162787, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
propertyPath: m_AnchoredPosition.y
@ -29512,3 +29896,14 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
--- !u!114 &8461295688629484332 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3}
m_PrefabInstance: {fileID: 8461295688629484331}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10b8ca203750dc94d8c2249c62aba6ae, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -429,7 +429,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &43951773
RectTransform:
m_ObjectHideFlags: 0
@ -505,7 +505,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &51619034
RectTransform:
m_ObjectHideFlags: 0
@ -1324,7 +1324,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &215141886
RectTransform:
m_ObjectHideFlags: 0
@ -1476,7 +1476,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &237016698
RectTransform:
m_ObjectHideFlags: 0
@ -1552,7 +1552,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &240097219
RectTransform:
m_ObjectHideFlags: 0
@ -2110,7 +2110,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &278944242
RectTransform:
m_ObjectHideFlags: 0
@ -2411,7 +2411,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &331775598
RectTransform:
m_ObjectHideFlags: 0
@ -3714,7 +3714,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &592029087
RectTransform:
m_ObjectHideFlags: 0
@ -3790,7 +3790,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &593651402
RectTransform:
m_ObjectHideFlags: 0
@ -4368,7 +4368,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &666738525
RectTransform:
m_ObjectHideFlags: 0
@ -4849,7 +4849,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &737409302
RectTransform:
m_ObjectHideFlags: 0
@ -5212,7 +5212,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &765428601
RectTransform:
m_ObjectHideFlags: 0
@ -5985,7 +5985,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &944690325
RectTransform:
m_ObjectHideFlags: 0
@ -6635,7 +6635,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1115260675
RectTransform:
m_ObjectHideFlags: 0
@ -6823,7 +6823,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1152559004
RectTransform:
m_ObjectHideFlags: 0
@ -6899,7 +6899,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1153222779
RectTransform:
m_ObjectHideFlags: 0
@ -6991,10 +6991,10 @@ RectTransform:
m_Father: {fileID: 1769459764}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 3433, y: 0}
m_SizeDelta: {x: 5251.503, y: 2436}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 2325, y: 2}
m_SizeDelta: {x: 7479.652, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1174110454
MonoBehaviour:
@ -7016,7 +7016,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 76dc153e74288fd409a15efb00e6a52d, type: 3}
m_Sprite: {fileID: 21300000, guid: 78ce07fe3a8bf5147b0d0000b4ed672f, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@ -7250,7 +7250,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1227436479
RectTransform:
m_ObjectHideFlags: 0
@ -8274,7 +8274,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1410577640
RectTransform:
m_ObjectHideFlags: 0
@ -8858,7 +8858,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1506854118
RectTransform:
m_ObjectHideFlags: 0
@ -8934,7 +8934,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1530202602
RectTransform:
m_ObjectHideFlags: 0
@ -9341,7 +9341,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1641027112
RectTransform:
m_ObjectHideFlags: 0
@ -9721,7 +9721,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1716177139
RectTransform:
m_ObjectHideFlags: 0
@ -9932,7 +9932,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1745747365
RectTransform:
m_ObjectHideFlags: 0
@ -10008,7 +10008,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1747650841
RectTransform:
m_ObjectHideFlags: 0
@ -10084,7 +10084,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1763795642
RectTransform:
m_ObjectHideFlags: 0
@ -10802,7 +10802,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1829828142
RectTransform:
m_ObjectHideFlags: 0
@ -10954,7 +10954,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1846592662
RectTransform:
m_ObjectHideFlags: 0

View File

@ -112,7 +112,8 @@ public class AllManeger : MonoBehaviour
is_Reflash = false;
Allreturn();
ClearAllHouseBet();//清空本地投注
ToolsManager.instance.ShowTools();//刷新一下道具
ToolsManager.instance.RamgeTools();
Fuck521();//获取最新游戏
@ -135,7 +136,7 @@ public class AllManeger : MonoBehaviour
await Task.Delay(1000);
TextMPtime.text = (45 - knightRoomBetList522.Data.CarrySeconds - 1).ToString();
}
else if (knightRoomBetList522.Data.CarrySeconds>45&& knightRoomBetList522.Data.CarrySeconds<50)//»÷ɱ¿ªÅÜ
else if (knightRoomBetList522.Data.CarrySeconds>=45&& knightRoomBetList522.Data.CarrySeconds<50)//击杀开跑
{
if (!is_jisha)
{
@ -152,20 +153,24 @@ public class AllManeger : MonoBehaviour
}
else if (knightRoomBetList522.Data.CarrySeconds >=55)//½áËã
else if (knightRoomBetList522.Data.CarrySeconds >=56)//结算
{
if (!is_jieshuan)
{
TextMPtime.text = "";
wordText.text = "";
RacingSuccessPanel.instance.ShowImage();
RacingSuccessPanel.instance.ShowPanel();
if (WinNos.Count>0)
{
RacingSuccessPanel.instance.ShowImage();
RacingSuccessPanel.instance.ShowPanel();
}
//RacingSuccessPanel.instance.textSnailEggs.text = knightBetResult.data[0].win.ToString("F1");
Debug.Log("½áËã");
is_jieshuan = true;
Fuck525();
@ -359,6 +364,7 @@ public class AllManeger : MonoBehaviour
}
public void ClearAllHouseBet()//清空投注//顺便刷新所有蜗牛状态
{
foreach (HorseInfo horse in horseInfos)
{
horse.BetCoins=0;

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
public class BetBtn : MonoBehaviour
public class BetBtn : Base
{
public static BetBtn instance;
public int BetHorseId;//投注马匹id
@ -33,20 +33,28 @@ public class BetBtn : MonoBehaviour
}
async void BetOnClick()//点击投注
{
bool flag= await snailKnightBet523.SnailKnightBet(AllManeger.instance.id, BetValue, BetHorseId);
if (flag)
if (BetHorseId!=0)
{
foreach (HorseInfo horse in AllManeger.instance.horseInfos)
bool flag = await snailKnightBet523.SnailKnightBet(AllManeger.instance.id, BetValue, BetHorseId);
if (flag)
{
if (BetHorseId == horse.HorseNo)
foreach (HorseInfo horse in AllManeger.instance.horseInfos)
{
StartCoroutine(Tools.AnimateText(horse.BetCoins, horse.BetCoins + BetValue, 0.5f, horse.betText));
horse.BetCoins += BetValue;
if (BetHorseId == horse.HorseNo)
{
StartCoroutine(Tools.AnimateText(horse.BetCoins, horse.BetCoins + BetValue, 0.5f, horse.betText));
horse.BetCoins += BetValue;
}
}
AllManeger.instance.GetSelfInfo();
AllManeger.instance.Fuck522();
}
AllManeger.instance.GetSelfInfo();
AllManeger.instance.Fuck522();
}
else
{
addEventPopUp("ÇëÑ¡ÔñÎÏÅ£");
}
}

View File

@ -15,7 +15,7 @@ public class HorseInfo : MonoBehaviour
public Text betText;
public float BetCoins=0;//我投注的数
public int flag = 1;
private void Start()
{
betText.text = BetCoins.ToString();

View File

@ -10,24 +10,31 @@ public class MoveBg : MonoBehaviour
private float moveX = 1372;
public bool isMove;
//public float orPosX;
// Start is called before the first frame update
void Start()
{
//StartMove();
//orPosX = transform.position.x;
instance = this;
}
public void StartMove()//开始移动
{
rectTransform.DOAnchorPosX(-moveX*2,5).SetEase(Ease.Linear);
int add = 0;
if (Screen.width<moveX)
{
add = 30;
}
float move = -(moveX * 2 + moveX - Screen.width - 686-add);
rectTransform.DOAnchorPosX(move,7).SetEase(Ease.Linear);
isMove = true;
}
public void ReturnPos()//归位
{
if (isMove)
{
rectTransform.DOAnchorPosX(0, 2).SetEase(Ease.Linear);
rectTransform.DOAnchorPosX(686, 2).SetEase(Ease.Linear);
isMove = false;
}

View File

@ -80,52 +80,53 @@ public class RacingPanel : MonoBehaviour
btnMei.onClick.AddListener(() =>
{
//更新按钮图片上滑
ImgUpward(imgMei, imgMeiQ);
ImgUpward(imgMei, imgMeiQ,1);
//当前选中的蜗牛
BetBtn.instance.BetHorseId = 1;
//BetBtn.instance.BetHorseId = 1;
});
//蜘蛛侠
btnPig.onClick.AddListener(() =>
{
ImgUpward(imgPig, imgPigQ);
BetBtn.instance.BetHorseId = 2;
ImgUpward(imgPig, imgPigQ,2);
//BetBtn.instance.BetHorseId = 2;
});
//毒液
btnDu.onClick.AddListener(() =>
{
ImgUpward(imgDu, imgDuQ);
BetBtn.instance.BetHorseId = 3;
ImgUpward(imgDu, imgDuQ,3);
//BetBtn.instance.BetHorseId = 3;
});
//钢铁侠
btnGang.onClick.AddListener(() =>
{
ImgUpward(imgGang, imgGangQ);
BetBtn.instance.BetHorseId = 4;
ImgUpward(imgGang, imgGangQ,4);
//BetBtn.instance.BetHorseId = 4;
});
//蝙蝠侠
btnBian.onClick.AddListener(() =>
{
ImgUpward(imgBian, imgBianQ);
BetBtn.instance.BetHorseId = 5;
ImgUpward(imgBian, imgBianQ,5);
//BetBtn.instance.BetHorseId = 5;
});
//超人
btnChao.onClick.AddListener(() =>
{
ImgUpward(imgChao, imgChaoQ);
BetBtn.instance.BetHorseId = 6;
ImgUpward(imgChao, imgChaoQ,6);
//BetBtn.instance.BetHorseId = 6;
});
//雷神
btnLei.onClick.AddListener(() =>
{
ImgUpward(imgLei, imgLeiQ);
BetBtn.instance.BetHorseId = 7;
ImgUpward(imgLei, imgLeiQ,7);
//BetBtn.instance.BetHorseId = 7;
});
//灭霸
btnMie.onClick.AddListener(() =>
{
ImgUpward(imgMie, imgMieQ);
BetBtn.instance.BetHorseId = 8;
ImgUpward(imgMie, imgMieQ,8);
//BetBtn.instance.BetHorseId = 8;
});
}
@ -136,7 +137,7 @@ public class RacingPanel : MonoBehaviour
}
private void ImgUpward(RectTransform rec,GameObject obj)
private void ImgUpward(RectTransform rec,GameObject obj,int id)
{
//首先判断当前图片是否为空 不为空才处理
if (nowImg!=null)
@ -147,12 +148,14 @@ public class RacingPanel : MonoBehaviour
if (nowObj!=null)
{
nowObj.SetActive(false);
}
//判断是否点击的是同一个按钮
if (nowObj == obj && nowImg == rec)
{
Debug.Log("µã»÷Ïàͬ°´Å¥");
BetBtn.instance.BetHorseId = 0;
nowImg = null;
nowObj = null;
return;
@ -160,9 +163,9 @@ public class RacingPanel : MonoBehaviour
rec.localPosition = new Vector3(0,50,0);
obj.SetActive(true);
BetBtn.instance.BetHorseId = id;
//重新赋值
nowImg=rec;
nowImg =rec;
nowObj=obj;
}

View File

@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ToolsManager : MonoBehaviour
{
public static ToolsManager instance;
public List<snailRiderItem> tools=new List<snailRiderItem>();
// Start is called before the first frame update
void Start()
{
instance = this;
ShowTools();
RamgeTools();
}
public void RamgeTools()//随机道具位置和属性
{
foreach (snailRiderItem tool in tools)
{
int type = Random.Range(0, 2);
float randPosX= Random.Range(-350, 300);
tool.transform.position = new Vector2(tool.transform.position.x + randPosX, tool.transform.position.y);
if (type==0)
{
tool.mode = snailRiderItem.Mode.accelerate;
}
else
{
tool.mode = snailRiderItem.Mode.slowDown;
}
}
}
public void ShowTools()//显示所有道具
{
foreach (snailRiderItem tool in tools)
{
tool.gameObject.SetActive(true);
}
}
}

View File

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

View File

@ -50,6 +50,7 @@ public class snailRider : MonoBehaviour
public void killsnail()
{
obj.SetActive(!is_die);
transform.GetComponent<BoxCollider2D>().enabled = !is_die;
}
public void startMove()
{
@ -60,12 +61,12 @@ public class snailRider : MonoBehaviour
float suiji = 0;//时间时间
if (is_victory)
{
suiji = UnityEngine.Random.Range(5, 7);
suiji = UnityEngine.Random.Range(7, 10);
}
else
{
suiji = UnityEngine.Random.Range(8, 10);
suiji = UnityEngine.Random.Range(11, 15);
}
@ -113,7 +114,7 @@ public class snailRider : MonoBehaviour
{
offset = -500;
}
Destroy(other.gameObject);
other.gameObject.SetActive(false);
}
else//碰到终点线

View File

@ -5,6 +5,7 @@ using UnityEngine.UI;
public class snailRiderItem : MonoBehaviour
{
public enum Mode
{
accelerate,//¼ÓËÙ

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

View File

@ -0,0 +1,123 @@
fileFormatVersion: 2
guid: 78ce07fe3a8bf5147b0d0000b4ed672f
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant: