diff --git a/meng_yao/Assets/Scenes/cultivation_gem_island_slices.unity b/meng_yao/Assets/Scenes/cultivation_gem_island_slices.unity index 18114135f..3a2c8f94f 100644 --- a/meng_yao/Assets/Scenes/cultivation_gem_island_slices.unity +++ b/meng_yao/Assets/Scenes/cultivation_gem_island_slices.unity @@ -767,7 +767,6 @@ Transform: - {fileID: 1621691473} - {fileID: 723548395} - {fileID: 998933732} - - {fileID: 232661052} - {fileID: 1394028151} - {fileID: 754841770} m_Father: {fileID: 787643888} @@ -1323,112 +1322,6 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!1 &232661051 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 232661052} - - component: {fileID: 232661054} - - component: {fileID: 232661055} - m_Layer: 0 - m_Name: island_3_2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &232661052 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 232661051} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -6.91, y: 0.08, z: 0.4} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 1 - m_Children: [] - m_Father: {fileID: 56346249} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!212 &232661054 -SpriteRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 232661051} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_StaticShadowCaster: 0 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 0 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_Sprite: {fileID: 21300000, guid: 582f4306732040544a18d819295c15d1, type: 3} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_FlipX: 0 - m_FlipY: 0 - m_DrawMode: 0 - m_Size: {x: 7.7, y: 6.47} - m_AdaptiveModeThreshold: 0.5 - m_SpriteTileMode: 0 - m_WasSpriteAssigned: 1 - m_MaskInteraction: 0 - m_SpriteSortPoint: 0 ---- !u!95 &232661055 -Animator: - serializedVersion: 5 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 232661051} - m_Enabled: 1 - m_Avatar: {fileID: 0} - m_Controller: {fileID: 9100000, guid: 1161d37800935df4c9a787106c9467d0, type: 2} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 0 - m_LinearVelocityBlending: 0 - m_StabilizeFeet: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 - m_KeepAnimatorStateOnDisable: 0 - m_WriteDefaultValuesOnDisable: 0 --- !u!1 &296360678 GameObject: m_ObjectHideFlags: 0 @@ -1635,11 +1528,6 @@ Transform: m_Father: {fileID: 1343167264} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &307640257 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - m_PrefabInstance: {fileID: 7825153275260973373} - m_PrefabAsset: {fileID: 0} --- !u!1 &310426478 GameObject: m_ObjectHideFlags: 0 @@ -3116,7 +3004,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 56346249} - m_RootOrder: 7 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!212 &754841771 SpriteRenderer: @@ -3755,11 +3643,6 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} m_PrefabInstance: {fileID: 794613307} m_PrefabAsset: {fileID: 0} ---- !u!4 &813303681 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - m_PrefabInstance: {fileID: 6925555825891069699} - m_PrefabAsset: {fileID: 0} --- !u!1 &814245188 GameObject: m_ObjectHideFlags: 0 @@ -4504,11 +4387,6 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!4 &1033325031 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - m_PrefabInstance: {fileID: 3484015117250117178} - m_PrefabAsset: {fileID: 0} --- !u!1 &1048058357 GameObject: m_ObjectHideFlags: 0 @@ -4706,11 +4584,6 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!4 &1074259787 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - m_PrefabInstance: {fileID: 6957142252390089033} - m_PrefabAsset: {fileID: 0} --- !u!1 &1113669196 GameObject: m_ObjectHideFlags: 0 @@ -5597,7 +5470,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 56346249} - m_RootOrder: 6 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!95 &1394028152 Animator: @@ -6592,7 +6465,6 @@ Transform: m_ConstrainProportionsScale: 1 m_Children: - {fileID: 1633375880} - - {fileID: 307640257} m_Father: {fileID: 1987825451} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -8724,9 +8596,6 @@ Transform: m_Children: - {fileID: 1597418305} - {fileID: 787643888} - - {fileID: 813303681} - - {fileID: 1033325031} - - {fileID: 1074259787} m_Father: {fileID: 0} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -8999,247 +8868,3 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!1001 &3484015117250117178 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 1987825451} - m_Modifications: - - target: {fileID: 3484015116219840476, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_Name - value: yunduo2 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840476, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_RootOrder - value: 3 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalPosition.x - value: -11.73 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalPosition.y - value: 7.38 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalPosition.z - value: -0.044981327 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3484015116219840477, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: fc233b06599a9514da8f9a0afe271bec, type: 3} ---- !u!1001 &6925555825891069699 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 1987825451} - m_Modifications: - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_RootOrder - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalPosition.x - value: -12.82 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalPosition.y - value: 7.49 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalPosition.z - value: -2 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702402, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702403, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_Name - value: yunduo1 - objectReference: {fileID: 0} - - target: {fileID: 6925555826155702403, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 326ad9e2ed4edba4a9ba6ed0a92a35d3, type: 3} ---- !u!1001 &6957142252390089033 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 1987825451} - m_Modifications: - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_RootOrder - value: 4 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalPosition.x - value: -13.35 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalPosition.y - value: -3.4 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalPosition.z - value: -0.044981327 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020482, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020483, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_Name - value: yunduo3 - objectReference: {fileID: 0} - - target: {fileID: 6957142253464020483, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 0e7c422872a495143ad87ec460d00a2c, type: 3} ---- !u!1001 &7825153275260973373 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 1597418305} - m_Modifications: - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_RootOrder - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalPosition.x - value: -2.37 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalPosition.y - value: 3.14 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937788, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937789, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_Name - value: fish_1 - objectReference: {fileID: 0} - - target: {fileID: 7825153275559937789, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 65b1f95d801f0ab4d80346661b2fa285, type: 3} diff --git a/meng_yao/Assets/communal/mount.cs b/meng_yao/Assets/communal/mount.cs index 3766d229b..849aff8df 100644 --- a/meng_yao/Assets/communal/mount.cs +++ b/meng_yao/Assets/communal/mount.cs @@ -143,6 +143,30 @@ public class AllVocherItem // public string UsedDateTime; public string CreateDateTime; } + + +[Serializable] + +public class AllGemVocItem //获取宝石矿所有代金卷数据 +{ + public string Id; + public float Num; + public float Type; + public string OwnerId; + public float StoreValue; + public float AlreadyGenerateValue; + public float GenerateValue; + public float RemainEndureTime; + public float EndureTime; + public string CreateDateTime; +} + +public class AllGemVocItemRes : Res //获取宝石矿的类 +{ + public AllGemVocItem[] List; +} + + [Serializable] public class Res//消息返回类 { diff --git a/meng_yao/Assets/script/Panel/AssestPanel.cs b/meng_yao/Assets/script/Panel/AssestPanel.cs index aca3de410..a9cf966bb 100644 --- a/meng_yao/Assets/script/Panel/AssestPanel.cs +++ b/meng_yao/Assets/script/Panel/AssestPanel.cs @@ -27,9 +27,11 @@ public class AssestPanel : MonoBehaviour public async void loding() { - Login login = new Login(); - login.Phone = "1"; - await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login)); + //Login login = new Login(); + //login.Phone = "1"; + //await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login)); + + } diff --git a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs index c2d65b8a2..64e9942f4 100644 --- a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs +++ b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs @@ -43,13 +43,15 @@ public class room : mount if (toolsNumber_text==null) { toolsNumber = 10; - haveNumber = 10; + haveNumber = 0; } - + ChangeTextPro(); + + loding(); - // Allminer(); + @@ -60,7 +62,7 @@ public class room : mount if (toolsNumber_text == null) return; jinsha.intance.OnType += addman; - jinsha.intance.OnType += addtools; + } @@ -70,8 +72,7 @@ public class room : mount if (toolsNumber_text == null) return; jinsha.intance.OnType -= addman; - jinsha.intance.OnType -= addtools; - + } @@ -86,7 +87,7 @@ public class room : mount if (toolsNumber_text == null) { GetRoom(); - PlayerManager.Instance.SetMoney(MoneyType.Stones, -10); + } @@ -109,13 +110,13 @@ public class room : mount private async void OnMouseDown() { - if (haveNumber<1||toolsNumber<1) + /* if (haveNumber<1||toolsNumber<1) { Promptmgr.Instance.PromptBubble("人数或工具不足", Color.black, Color.red); return; - } + }*/ - if (toolsNumber_text == null) + /*if (toolsNumber_text == null) { Debug.Log("扣钱检测"); if (PlayerManager.Instance.GetNumer(MoneyType.Stones) < 11) @@ -123,11 +124,11 @@ public class room : mount Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red); return; } - PlayerManager.Instance.SetMoney(MoneyType.Stones, -10); - } - + + }*/ + Generate(1); GetRoom(); - haveNumber--; + haveNumber++; toolsNumber--; UpdateShowCazhi(); ChangeTextPro(); @@ -173,7 +174,7 @@ public class room : mount Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red); return; } - PlayerManager.Instance.SetMoney(MoneyType.Coins, -10); + if ((startPos.childCount + haveNumber) > 9) @@ -196,171 +197,133 @@ public class room : mount } - void addtools(int type, int num) - { - if (type == this.type+1) - { - Debug.Log("扣钱检测"); - if (PlayerManager.Instance.GetNumer(MoneyType.Coins) < 11) - { - Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red); - return; - } - PlayerManager.Instance.SetMoney(MoneyType.Coins, -10); - - - if ((startPos.childCount + toolsNumber) > 9) - { - Promptmgr.Instance.PromptBubble("矿洞已满", Color.black, Color.red); - return; - } - - if (toolsNumber > 9) - { - Promptmgr.Instance.PromptBubble("工具已满", Color.black, Color.red); - return; - } - - - - toolsNumber += 1; - Promptmgr.Instance.PromptBubble("购买成功"); - UpdateShowCazhi(); - ChangeTextPro(); - - GetRoom(); - } - } private async void loding() { + Login login = new Login(); + login.Phone = "1"; + await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login)); + + + string sponse = await web.SendRequest(web.URL + "/MinerElf/GetList", "POST"); + Debug.Log(sponse); + + string response = await web.SendRequest(web.URL + "/MinerElfActive/GetListOfGem", "POST"); - Debug.Log(response); - AllVocherItemRes itemList = JsonUtility.FromJson(response); + //Debug.Log(response); + AllGemVocItemRes itemList = JsonUtility.FromJson(response); for (int i = 0; i < itemList.List.Length; i++) { if (itemList.List[i].Num == buy_type) { haveNumber += 1; + Debug.Log(this.gameObject.name+"矿工数量" + haveNumber); } } + ChangeTextPro(); - - } - - - - private async void Generate(int count) - { - - GenerateForFisherElf generateForFisherElf = new GenerateForFisherElf(); // 购买矿工 - generateForFisherElf.Num = buy_type; - generateForFisherElf.Count = count; - string response = await web.SendRequest(web.URL + "/Voucher/GenerateForMinerElf", "POST", JsonUtility.ToJson(generateForFisherElf)); - - Mining_Wizard_ID data = JsonUtility.FromJson(response); - - Use use = new Use(); - use.Id = data.Ids[0]; - - if (use.Id != null) + for (int i = 0; i < haveNumber; i++) { - Buy_succefful = true; + GetRoom(); + GameObject newMiner = GameObject.Instantiate(minerPrefab); + newMiner.transform.SetParent(startPos); + newMiner.transform.position = gold.position; + } - string jsonString = JsonUtility.ToJson(use); - string aa =await web.SendRequest(web.URL + "/Voucher/Use", "POST", jsonString); - Debug.Log(aa); + } - - - private async void Allminer() - { - - string response = await web.SendRequest(web.URL + "/MinerElf/GetList", "POST"); - - Debug.Log(response); - Response reslist = JsonUtility.FromJson(response); - - for (int i = 0; i < reslist.List.Length; i++) + private async void Generate(int count) { - if (reslist.List[i].Type == 1) + + GenerateForFisherElf generateForFisherElf = new GenerateForFisherElf(); // 购买矿工 + generateForFisherElf.Num = buy_type; + generateForFisherElf.Count = count; + string response = await web.SendRequest(web.URL + "/Voucher/GenerateForMinerElf", "POST", JsonUtility.ToJson(generateForFisherElf)); + + Mining_Wizard_ID data = JsonUtility.FromJson(response); + + Use use = new Use(); + use.Id = data.Ids[0]; + string jsonString = JsonUtility.ToJson(use); + Debug.Log(jsonString); + string aa = await web.SendRequest(web.URL + "/Voucher/Use", "POST", jsonString); + Debug.Log(aa); + } + + + + + + + + + //开拓房间 + void GetRoom() + { + if (this.BlackRoom == null) return; + Destroy(this.BlackRoom); + } + + void UpdateShowCazhi() + { + if (toolsNumber_text == null) { - itemlist.Add(reslist.List[i]); + return; + } + switch (toolsNumber) + { + case 0: + cazhi[0].SetActive(false); + cazhi[1].SetActive(false); + cazhi[2].SetActive(false); + cazhi[3].SetActive(false); + cazhi[4].SetActive(false); + break; + case 1: + cazhi[0].SetActive(true); + cazhi[1].SetActive(false); + cazhi[2].SetActive(false); + cazhi[3].SetActive(false); + cazhi[4].SetActive(false); + break; + case 2: + cazhi[0].SetActive(true); + cazhi[1].SetActive(true); + cazhi[2].SetActive(false); + cazhi[3].SetActive(false); + cazhi[4].SetActive(false); + break; + case 3: + cazhi[0].SetActive(true); + cazhi[1].SetActive(true); + cazhi[2].SetActive(true); + cazhi[3].SetActive(false); + cazhi[4].SetActive(false); + break; + case 4: + cazhi[0].SetActive(true); + cazhi[1].SetActive(true); + cazhi[2].SetActive(true); + cazhi[3].SetActive(true); + cazhi[4].SetActive(false); + break; + case 5: + cazhi[0].SetActive(true); + cazhi[1].SetActive(true); + cazhi[2].SetActive(true); + cazhi[3].SetActive(true); + cazhi[4].SetActive(true); + break; } } - } + } - //开拓房间 - void GetRoom() - { - if (BlackRoom == null) return; - Destroy(BlackRoom) ; - } - - void UpdateShowCazhi() - { - if (toolsNumber_text == null) - { - return; - } - switch (toolsNumber) - { - case 0: - cazhi[0].SetActive(false); - cazhi[1].SetActive(false); - cazhi[2].SetActive(false); - cazhi[3].SetActive(false); - cazhi[4].SetActive(false); - break; - case 1: - cazhi[0].SetActive(true); - cazhi[1].SetActive(false); - cazhi[2].SetActive(false); - cazhi[3].SetActive(false); - cazhi[4].SetActive(false); - break; - case 2: - cazhi[0].SetActive(true); - cazhi[1].SetActive(true); - cazhi[2].SetActive(false); - cazhi[3].SetActive(false); - cazhi[4].SetActive(false); - break; - case 3: - cazhi[0].SetActive(true); - cazhi[1].SetActive(true); - cazhi[2].SetActive(true); - cazhi[3].SetActive(false); - cazhi[4].SetActive(false); - break; - case 4: - cazhi[0].SetActive(true); - cazhi[1].SetActive(true); - cazhi[2].SetActive(true); - cazhi[3].SetActive(true); - cazhi[4].SetActive(false); - break; - case 5: - cazhi[0].SetActive(true); - cazhi[1].SetActive(true); - cazhi[2].SetActive(true); - cazhi[3].SetActive(true); - cazhi[4].SetActive(true); - break; - } - } - - - - -} - diff --git a/meng_yao/Assets/script/cultivation_gold_coin_Island/boy.cs b/meng_yao/Assets/script/cultivation_gold_coin_Island/boy.cs index c29cce9f0..a230b8ddf 100644 --- a/meng_yao/Assets/script/cultivation_gold_coin_Island/boy.cs +++ b/meng_yao/Assets/script/cultivation_gold_coin_Island/boy.cs @@ -16,13 +16,13 @@ public class boy : mount } private async void Start() { - //测试用 - /*Login login = new Login(); + // 测试用 + Login login = new Login(); login.Phone = "111"; - await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login));*/ + await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login)); + - UpShipTimer(); } diff --git a/meng_yao/Assets/script/cultivation_gold_coin_Island/landContorl.cs b/meng_yao/Assets/script/cultivation_gold_coin_Island/landContorl.cs index b8dbfab39..6dd472b56 100644 --- a/meng_yao/Assets/script/cultivation_gold_coin_Island/landContorl.cs +++ b/meng_yao/Assets/script/cultivation_gold_coin_Island/landContorl.cs @@ -103,6 +103,7 @@ public class landContorl : MonoBehaviour private void OnMouseDown() { + Debug.Log("点击岛屿"); if (fishMan != null) { Promptmgr.Instance.PromptBubble("已经有船了", Color.black, Color.red);