From ca12a5897700d97ff8bbbf924e5193daba9d8b88 Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Wed, 4 Dec 2024 14:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scenes/RacingPanel.unity | 387 ++++++++++++++---- .../Assets/Scenes/Scene_main.unity | 28 +- TheStrongestSnail/Assets/Scenes/newtest.unity | 214 +++++++--- .../Assets/Scripts/Login/Global.cs | 50 +-- .../Assets/Scripts/RacingPanel/AllManeger.cs | 12 +- .../Assets/Scripts/RacingPanel/snailRider.cs | 6 +- .../Scripts/SnailKnight52/knightTest.cs | 8 +- .../SnailKnight52/queryKnightBetResult525.cs | 55 ++- 8 files changed, 572 insertions(+), 188 deletions(-) diff --git a/TheStrongestSnail/Assets/Scenes/RacingPanel.unity b/TheStrongestSnail/Assets/Scenes/RacingPanel.unity index 6c104da..78a77f9 100644 --- a/TheStrongestSnail/Assets/Scenes/RacingPanel.unity +++ b/TheStrongestSnail/Assets/Scenes/RacingPanel.unity @@ -233,6 +233,50 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 10458497} m_CullTransparentMesh: 1 +--- !u!1 &10805001 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 10805003} + - component: {fileID: 10805002} + m_Layer: 0 + m_Name: onlyTest + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &10805002 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 10805001} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 10093cb6eece78d4a95d49de75ff947e, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &10805003 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 10805001} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 1341.8802, y: 1282.9521, z: -16.555443} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &15724798 GameObject: m_ObjectHideFlags: 0 @@ -1601,6 +1645,82 @@ MonoBehaviour: snail: {fileID: 219934844} betText: {fileID: 1756588178} BetCoins: 0 +--- !u!1 &73964227 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 73964228} + - component: {fileID: 73964230} + - component: {fileID: 73964229} + m_Layer: 5 + m_Name: Image (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &73964228 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 73964227} + 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: 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: 1372, y: 0} + m_SizeDelta: {x: 1372, y: 2436} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &73964229 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 73964227} + 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 &73964230 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 73964227} + m_CullTransparentMesh: 1 --- !u!1 &91150040 GameObject: m_ObjectHideFlags: 0 @@ -2145,7 +2265,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 5372453729458756189, guid: f06fd4485b1c4c54ba7070bde9d2b5d3, type: 3} propertyPath: m_RootOrder - value: 4 + value: 5 objectReference: {fileID: 0} - target: {fileID: 5372453729458756189, guid: f06fd4485b1c4c54ba7070bde9d2b5d3, type: 3} propertyPath: m_AnchorMax.x @@ -2578,18 +2698,18 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 179144104} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + 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: 294094431} + m_Father: {fileID: 1705891619} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 1372, y: 2436} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &179144106 MonoBehaviour: @@ -2612,7 +2732,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 21300000, guid: 7fb166fb99c4c034ab8d2479fa61e8f3, type: 3} - m_Type: 0 + m_Type: 3 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 @@ -3691,12 +3811,12 @@ RectTransform: m_LocalScale: {x: 0, y: 0, z: 0} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 179144105} + - {fileID: 1705891619} - {fileID: 394840204} + - {fileID: 771005323} - {fileID: 745637401} - {fileID: 346585089} - {fileID: 152576853} - - {fileID: 771005323} m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -4705,7 +4825,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6513331807595845951, guid: 7f207d2cff994d04f9a72fef5e743f4e, type: 3} propertyPath: m_RootOrder - value: 3 + value: 4 objectReference: {fileID: 0} - target: {fileID: 6513331807595845951, guid: 7f207d2cff994d04f9a72fef5e743f4e, type: 3} propertyPath: m_AnchorMax.x @@ -9232,83 +9352,83 @@ PrefabInstance: m_Modifications: - target: {fileID: 1574451516597611413, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516597611413, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516597611413, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 1317.4369 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516597611413, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516626885862, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516626885862, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516626885862, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 304.0239 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516626885862, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516796566995, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516796566995, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516796566995, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 506.7065 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516796566995, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516872370445, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516872370445, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516872370445, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 101.3413 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516872370445, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516962071581, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516962071581, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516962071581, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 1114.7543 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451516962071581, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517034624560, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_Name @@ -9328,7 +9448,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1574451517034624567, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_RootOrder - value: 2 + value: 3 objectReference: {fileID: 0} - target: {fileID: 1574451517034624567, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.x @@ -9404,67 +9524,67 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1574451517038294151, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517038294151, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517038294151, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 709.3891 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517038294151, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517080850946, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517080850946, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517080850946, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 506.7065 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517080850946, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517258934524, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517258934524, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517258934524, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 709.3891 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517258934524, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517287618817, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517287618817, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517287618817, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 1520.1195 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517287618817, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517526691391, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_SizeDelta.x @@ -9472,115 +9592,115 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1574451517602680720, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517602680720, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517602680720, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 912.0717 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517602680720, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517626038754, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517626038754, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517626038754, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 1317.4369 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517626038754, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517695183498, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517695183498, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517695183498, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 1114.7543 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517695183498, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517745085721, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517745085721, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517745085721, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 1520.1195 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517745085721, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517816687805, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517816687805, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517816687805, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 101.3413 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451517816687805, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518099636616, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518099636616, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518099636616, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 304.0239 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518099636616, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518214997481, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518214997481, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518214997481, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.x - value: 912.0717 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518214997481, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_AnchoredPosition.y - value: -97.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1574451518253800653, guid: 52525b7ee4a02b947be72267c965e811, type: 3} propertyPath: m_SizeDelta.x @@ -9731,7 +9851,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 294094431} - m_RootOrder: 5 + 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} @@ -22834,6 +22954,45 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 +--- !u!1 &1705891618 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1705891619} + m_Layer: 5 + m_Name: AllBG + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1705891619 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1705891618} + 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: 179144105} + - {fileID: 73964228} + - {fileID: 2146083213} + m_Father: {fileID: 294094431} + 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: 0, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1725087456 GameObject: m_ObjectHideFlags: 0 @@ -27298,6 +27457,82 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 +--- !u!1 &2146083212 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2146083213} + - component: {fileID: 2146083215} + - component: {fileID: 2146083214} + m_Layer: 5 + m_Name: Image (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2146083213 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2146083212} + 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: 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: 2744, y: 0} + m_SizeDelta: {x: 1372, y: 2436} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2146083214 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2146083212} + 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 &2146083215 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2146083212} + m_CullTransparentMesh: 1 --- !u!1 &2146520291 GameObject: m_ObjectHideFlags: 0 diff --git a/TheStrongestSnail/Assets/Scenes/Scene_main.unity b/TheStrongestSnail/Assets/Scenes/Scene_main.unity index 2978978..f4404a4 100644 --- a/TheStrongestSnail/Assets/Scenes/Scene_main.unity +++ b/TheStrongestSnail/Assets/Scenes/Scene_main.unity @@ -513,7 +513,7 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 51619033} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + 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 @@ -2429,8 +2429,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 470, y: -149} - m_SizeDelta: {x: 160.3018, y: 195.5513} + m_AnchoredPosition: {x: 470, y: -148.99976} + m_SizeDelta: {x: 160.30176, y: 195.55127} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &331775599 MonoBehaviour: @@ -4386,7 +4386,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -331, y: -101} + m_AnchoredPosition: {x: -331, y: -101.000244} m_SizeDelta: {x: 338, y: 207} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &666738526 @@ -4591,7 +4591,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 5323, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: -370} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &712977344 CanvasRenderer: @@ -4855,7 +4855,7 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 737409301} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + 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 @@ -5228,8 +5228,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 182, y: -78} - m_SizeDelta: {x: 108.0508, y: 130.1923} + m_AnchoredPosition: {x: 182, y: -77.999756} + m_SizeDelta: {x: 108.05078, y: 130.19238} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &765428602 MonoBehaviour: @@ -6655,10 +6655,10 @@ RectTransform: m_Father: {fileID: 1535452030} m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 1372, y: 2436} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1115260677 CanvasRenderer: @@ -6989,10 +6989,10 @@ RectTransform: m_Father: {fileID: 1769459764} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 1} + 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: 0} + m_SizeDelta: {x: 5251.503, y: 2436} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1174110454 MonoBehaviour: diff --git a/TheStrongestSnail/Assets/Scenes/newtest.unity b/TheStrongestSnail/Assets/Scenes/newtest.unity index ca8dc8c..96babc7 100644 --- a/TheStrongestSnail/Assets/Scenes/newtest.unity +++ b/TheStrongestSnail/Assets/Scenes/newtest.unity @@ -215,7 +215,7 @@ RectTransform: m_LocalScale: {x: 0, y: 0, z: 0} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 684020978} + - {fileID: 653619216} m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -224,6 +224,128 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 0} +--- !u!1 &653619215 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 653619216} + - component: {fileID: 653619219} + - component: {fileID: 653619218} + - component: {fileID: 653619217} + m_Layer: 5 + m_Name: Button (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &653619216 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653619215} + 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: 897791182} + m_Father: {fileID: 435234966} + 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: -18.4957, y: 278.97742} + m_SizeDelta: {x: 770.3594, y: 587.9548} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &653619217 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653619215} + 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: 653619218} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &653619218 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653619215} + 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 &653619219 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653619215} + m_CullTransparentMesh: 1 --- !u!1 &654131029 GameObject: m_ObjectHideFlags: 0 @@ -318,7 +440,7 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &684020977 +--- !u!1 &897791181 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -326,104 +448,78 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 684020978} - - component: {fileID: 684020981} - - component: {fileID: 684020980} - - component: {fileID: 684020983} - - component: {fileID: 684020982} + - component: {fileID: 897791182} + - component: {fileID: 897791184} + - component: {fileID: 897791183} m_Layer: 5 - m_Name: Image + m_Name: Text (Legacy) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &684020978 +--- !u!224 &897791182 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 684020977} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 897791181} + 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: 435234966} + m_Father: {fileID: 653619216} 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_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 100, y: 100} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &684020980 +--- !u!114 &897791183 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 684020977} + m_GameObject: {fileID: 897791181} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + 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_Sprite: {fileID: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &684020981 + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Button +--- !u!222 &897791184 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 684020977} + m_GameObject: {fileID: 897791181} m_CullTransparentMesh: 1 ---- !u!114 &684020982 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 684020977} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cf7c464bd7bdfcc4db645246bf4529ec, type: 3} - m_Name: - m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} ---- !u!114 &684020983 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 684020977} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c02b3c0b40de2c84c8cd8d2edb52f70d, type: 3} - m_Name: - m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} --- !u!1 &1644448011 GameObject: m_ObjectHideFlags: 0 diff --git a/TheStrongestSnail/Assets/Scripts/Login/Global.cs b/TheStrongestSnail/Assets/Scripts/Login/Global.cs index 2ecf389..d675b6b 100644 --- a/TheStrongestSnail/Assets/Scripts/Login/Global.cs +++ b/TheStrongestSnail/Assets/Scripts/Login/Global.cs @@ -474,33 +474,33 @@ public class KnightBetData } //======525======================================================== -[Serializable] -public class KnightBetResult : Response -{ +//[Serializable] +//public class KnightBetResult : Response +//{ - public Data data; +// public Data data; - [Serializable] - public class Data - { - public int id; - public string gameNo; - public int gameSession; - public string startTime; - public string betTime; - public string countTime; - public string settleTime; - public int status; - public string horseNoAll; - public string horseNoKill; - public string horseNoRemain; - public float beansCoinAll; - public float beansCoinKill; - public float beansCoinRemain; - public float beansCoinFee; - public float beansCoinDivide; - } -} +// [Serializable] +// public class Data +// { +// public int id; +// public string gameNo; +// public int gameSession; +// public string startTime; +// public string betTime; +// public string countTime; +// public string settleTime; +// public int status; +// public string horseNoAll; +// public string horseNoKill; +// public string horseNoRemain; +// public float beansCoinAll; +// public float beansCoinKill; +// public float beansCoinRemain; +// public float beansCoinFee; +// public float beansCoinDivide; +// } +//} //======526======================================================== public class QueryKnightRecordBody { diff --git a/TheStrongestSnail/Assets/Scripts/RacingPanel/AllManeger.cs b/TheStrongestSnail/Assets/Scripts/RacingPanel/AllManeger.cs index cb89b5d..13a58d5 100644 --- a/TheStrongestSnail/Assets/Scripts/RacingPanel/AllManeger.cs +++ b/TheStrongestSnail/Assets/Scripts/RacingPanel/AllManeger.cs @@ -144,12 +144,13 @@ public class AllManeger : MonoBehaviour } - else if (knightRoomBetList522.Data.CarrySeconds >=50)//结算 + else if (knightRoomBetList522.Data.CarrySeconds >=55)//结算 { if (!is_jieshuan) { Fuck525(); is_jieshuan = true; + } @@ -209,6 +210,15 @@ public class AllManeger : MonoBehaviour { knightBetResult = await queryKnightBetResult525.queryKnightBetResult(id); GetSelfInfo(); + if (knightBetResult.data.outcome==1)//胜利 + { + + } + else if (knightBetResult.data.outcome == 2)//失败 + { + + } + } public async void GetSelfInfo() diff --git a/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs b/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs index 165fff6..abf2829 100644 --- a/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs +++ b/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs @@ -61,15 +61,15 @@ public class snailRider : MonoBehaviour float suiji = 0; if (is_victory) { - suiji = UnityEngine.Random.Range(-2f,-1f); + suiji = UnityEngine.Random.Range(-6f,-4f); } else { - suiji = UnityEngine.Random.Range(-1f, 0f); + suiji = UnityEngine.Random.Range(-2f, 0f); } mySequence.Append(transform.DOMoveX(startingPoint.transform.position.x, 0.01f)) - .Append(transform.DOMoveX(end.transform.position.x, 4f + suiji)).OnComplete(()=> { + .Append(transform.DOMoveX(end.transform.position.x, 10f + suiji)).OnComplete(()=> { animator.SetInteger("State", 0); Debug.Log("动画完成,切换为待机动画"); }) //切换为待机动画 diff --git a/TheStrongestSnail/Assets/Scripts/SnailKnight52/knightTest.cs b/TheStrongestSnail/Assets/Scripts/SnailKnight52/knightTest.cs index ace4070..c0618ec 100644 --- a/TheStrongestSnail/Assets/Scripts/SnailKnight52/knightTest.cs +++ b/TheStrongestSnail/Assets/Scripts/SnailKnight52/knightTest.cs @@ -19,17 +19,17 @@ public class knightTest : MonoBehaviour async void Start() { - UnionPage Page = await unionPage.queryUnionPage(1); + //UnionPage Page = await unionPage.queryUnionPage(1); //UnionDetalResponse Detail = await unionDetail.queryUnionDetail(1); - goodidpage = await goodIdPage41.queryUnionPage(); + //goodidpage = await goodIdPage41.queryUnionPage(); //Debug.Log("+++++++++++++++"+ goodidpage.Data.TotalCount); - //knight = await queryClosestKnight1.queryClosestKnight();//查询最近骑士房间 + knight = await queryClosestKnight1.queryClosestKnight();//查询最近骑士房间 //queryKnightRoomList.queryKnightRoomLis(knight.Data.GameKnightRoomResponseVoList[0].KnightId); //Debug.Log("=========================================="+knight.Data.GameKnightRoomResponseVoList[0].KnightId);//查询房间详情 ////KnightRoomBetList roomBetList = await queryKnightRoomList.queryKnightRoomLis(knight.Data.GameKnightRoomResponseVoList[0].KnightId);//查询房间下注 //await queryClosestKnightBet5.SnailKnightBet(knight.Data.GameKnightRoomResponseVoList[0].KnightId, 20, 3);//下注 ////await queryKnightKill.queryKnightKill(knight.Data.GameKnightRoomResponseVoList[0].KnightId);//查询击杀 - ////await queryKnightBetResult525.queryKnightBetResult(knight.Data.GameKnightRoomResponseVoList[0].KnightId);//查询结算 + await queryKnightBetResult525.queryKnightBetResult(knight.Data.GameKnightRoomResponseVoList[0].KnightId);//查询结算 //// 调用 queryKnightKill 方法,首次延迟 3 秒,之后每 3 秒调用一次 ////KnightRecord knightRecord = await queryKnightRecord.queryKnightBetResult(1);//526查询用户战斗记录 //await queryKnightRecord.queryKnightBetResult(1);//526查询用户战斗记录 diff --git a/TheStrongestSnail/Assets/Scripts/SnailKnight52/queryKnightBetResult525.cs b/TheStrongestSnail/Assets/Scripts/SnailKnight52/queryKnightBetResult525.cs index da4cc79..912d3aa 100644 --- a/TheStrongestSnail/Assets/Scripts/SnailKnight52/queryKnightBetResult525.cs +++ b/TheStrongestSnail/Assets/Scripts/SnailKnight52/queryKnightBetResult525.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using UnityEngine; -//5.2.4查询结算 +//5.2.5查询结算 public class queryKnightBetResult525 : MonoBehaviour { //返回的(解析后) @@ -13,7 +13,7 @@ public class queryKnightBetResult525 : MonoBehaviour - public async Task queryKnightBetResult(int KnightId) // 5.2.2//需传入KightId + public async Task queryKnightBetResult(int KnightId) // { // 准备请求的头部信息,包含授权令牌 Dictionary head525 = new Dictionary @@ -27,10 +27,10 @@ public class queryKnightBetResult525 : MonoBehaviour userId = Global.global.serverResponse.data.userId, knightId = KnightId }; - Debug.Log("524接收的=========================" + KnightId); + Debug.Log("525接收的=========================" + KnightId); // 异步发送请求 //string response525 = await web.SendRequest(web.URL + "/snail/gameKnight/queryUserBetResult", "POST", JsonUtility.ToJson(queryKnightRoomListBody), head525); - string response525 = await web.SendRequest(web.URL + "/snail/gameKnight/queryKill", "POST", JsonConvert.SerializeObject(queryKnightRoomListBody), head525); + string response525 = await web.SendRequest(web.URL + "/snail/gameKnight/queryUserBetResult", "POST", JsonConvert.SerializeObject(queryKnightRoomListBody), head525); // 调试输出接收到的响应 Debug.Log("5.2.5查询骑士结算:======== " + response525); @@ -41,7 +41,7 @@ public class queryKnightBetResult525 : MonoBehaviour knightBetResult = JsonConvert.DeserializeObject(response525); if (knightBetResult != null && knightBetResult.data != null)//==================================================访问之前先判空,未到或已过时间,data[]为空 { - Debug.Log(knightBetResult.data.beansCoinFee + "=525========"); + Debug.Log(knightBetResult.data.updateTime + "=525=8=======D"); } } catch (Exception ex) @@ -52,4 +52,47 @@ public class queryKnightBetResult525 : MonoBehaviour // 返回解析后的 对象 return knightBetResult; } -} \ No newline at end of file +} +//==========525==================================================== +[Serializable] +public class KnightBetResult : Response +{ + public KnightBetResultData data; + + [Serializable] + public class KnightBetResultData + { + public int id; + public string gameNo; + public int knightId; + public int userId; + public float bet; + public int horseNo; + public int outcome; + public float win; + public float beansCoin; + public float ichorCoin; + public string createTime; + public string updateTime; + } +} +//{ +// "code": 200, +// "message": "请求成功", +// "data": [ +// { +// "id": 2706972, +// "gameNo": "202412041130", +// "knightId": 54695, +// "userId": 112, +// "bet": 50, +// "horseNo": 1, +// "outcome": 2, +// "win": 1, +// "beansCoin": 0, +// "ichorCoin": 5, +// "createTime": null, +// "updateTime": "2024-12-04 11:31:49" +// } +// ] +//} \ No newline at end of file