This commit is contained in:
shurongsen 2024-11-05 01:59:52 +08:00
parent d5d56a89f9
commit 357f6d9be6
6 changed files with 153 additions and 538 deletions

View File

@ -767,7 +767,6 @@ Transform:
- {fileID: 1621691473} - {fileID: 1621691473}
- {fileID: 723548395} - {fileID: 723548395}
- {fileID: 998933732} - {fileID: 998933732}
- {fileID: 232661052}
- {fileID: 1394028151} - {fileID: 1394028151}
- {fileID: 754841770} - {fileID: 754841770}
m_Father: {fileID: 787643888} m_Father: {fileID: 787643888}
@ -1323,112 +1322,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 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 --- !u!1 &296360678
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1635,11 +1528,6 @@ Transform:
m_Father: {fileID: 1343167264} m_Father: {fileID: 1343167264}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 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 --- !u!1 &310426478
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -3116,7 +3004,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 56346249} m_Father: {fileID: 56346249}
m_RootOrder: 7 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &754841771 --- !u!212 &754841771
SpriteRenderer: SpriteRenderer:
@ -3755,11 +3643,6 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} m_CorrespondingSourceObject: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
m_PrefabInstance: {fileID: 794613307} m_PrefabInstance: {fileID: 794613307}
m_PrefabAsset: {fileID: 0} 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 --- !u!1 &814245188
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -4504,11 +4387,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 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 --- !u!1 &1048058357
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -4706,11 +4584,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 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 --- !u!1 &1113669196
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -5597,7 +5470,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 56346249} m_Father: {fileID: 56346249}
m_RootOrder: 6 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!95 &1394028152 --- !u!95 &1394028152
Animator: Animator:
@ -6592,7 +6465,6 @@ Transform:
m_ConstrainProportionsScale: 1 m_ConstrainProportionsScale: 1
m_Children: m_Children:
- {fileID: 1633375880} - {fileID: 1633375880}
- {fileID: 307640257}
m_Father: {fileID: 1987825451} m_Father: {fileID: 1987825451}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -8724,9 +8596,6 @@ Transform:
m_Children: m_Children:
- {fileID: 1597418305} - {fileID: 1597418305}
- {fileID: 787643888} - {fileID: 787643888}
- {fileID: 813303681}
- {fileID: 1033325031}
- {fileID: 1074259787}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -8999,247 +8868,3 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 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}

View File

@ -143,6 +143,30 @@ public class AllVocherItem //
public string UsedDateTime; public string UsedDateTime;
public string CreateDateTime; 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] [Serializable]
public class Res//ÏûÏ¢·µ»ØÀà public class Res//ÏûÏ¢·µ»ØÀà
{ {

View File

@ -27,9 +27,11 @@ public class AssestPanel : MonoBehaviour
public async void loding() public async void loding()
{ {
Login login = new Login(); //Login login = new Login();
login.Phone = "1"; //login.Phone = "1";
await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login)); //await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login));
} }

View File

@ -43,13 +43,15 @@ public class room : mount
if (toolsNumber_text==null) if (toolsNumber_text==null)
{ {
toolsNumber = 10; toolsNumber = 10;
haveNumber = 10; haveNumber = 0;
} }
ChangeTextPro(); ChangeTextPro();
loding(); loding();
// Allminer();
@ -60,7 +62,7 @@ public class room : mount
if (toolsNumber_text == null) return; if (toolsNumber_text == null) return;
jinsha.intance.OnType += addman; jinsha.intance.OnType += addman;
jinsha.intance.OnType += addtools;
} }
@ -70,7 +72,6 @@ public class room : mount
if (toolsNumber_text == null) return; if (toolsNumber_text == null) return;
jinsha.intance.OnType -= addman; jinsha.intance.OnType -= addman;
jinsha.intance.OnType -= addtools;
} }
@ -86,7 +87,7 @@ public class room : mount
if (toolsNumber_text == null) if (toolsNumber_text == null)
{ {
GetRoom(); GetRoom();
PlayerManager.Instance.SetMoney(MoneyType.Stones, -10);
} }
@ -109,13 +110,13 @@ public class room : mount
private async void OnMouseDown() private async void OnMouseDown()
{ {
if (haveNumber<1||toolsNumber<1) /* if (haveNumber<1||toolsNumber<1)
{ {
Promptmgr.Instance.PromptBubble("人数或工具不足", Color.black, Color.red); Promptmgr.Instance.PromptBubble("人数或工具不足", Color.black, Color.red);
return; return;
} }*/
if (toolsNumber_text == null) /*if (toolsNumber_text == null)
{ {
Debug.Log("扣钱检测"); Debug.Log("扣钱检测");
if (PlayerManager.Instance.GetNumer(MoneyType.Stones) < 11) if (PlayerManager.Instance.GetNumer(MoneyType.Stones) < 11)
@ -123,11 +124,11 @@ public class room : mount
Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red); Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red);
return; return;
} }
PlayerManager.Instance.SetMoney(MoneyType.Stones, -10);
}
}*/
Generate(1);
GetRoom(); GetRoom();
haveNumber--; haveNumber++;
toolsNumber--; toolsNumber--;
UpdateShowCazhi(); UpdateShowCazhi();
ChangeTextPro(); ChangeTextPro();
@ -173,7 +174,7 @@ public class room : mount
Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red); Promptmgr.Instance.PromptBubble("购买卷不足", Color.black, Color.red);
return; return;
} }
PlayerManager.Instance.SetMoney(MoneyType.Coins, -10);
if ((startPos.childCount + haveNumber) > 9) if ((startPos.childCount + haveNumber) > 9)
@ -196,59 +197,42 @@ 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() 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"); string response = await web.SendRequest(web.URL + "/MinerElfActive/GetListOfGem", "POST");
Debug.Log(response); //Debug.Log(response);
AllVocherItemRes itemList = JsonUtility.FromJson<AllVocherItemRes>(response); AllGemVocItemRes itemList = JsonUtility.FromJson<AllGemVocItemRes>(response);
for (int i = 0; i < itemList.List.Length; i++) for (int i = 0; i < itemList.List.Length; i++)
{ {
if (itemList.List[i].Num == buy_type) if (itemList.List[i].Num == buy_type)
{ {
haveNumber += 1; haveNumber += 1;
Debug.Log(this.gameObject.name+"¿ó¹¤ÊýÁ¿" + haveNumber);
} }
} }
ChangeTextPro();
for (int i = 0; i < haveNumber; i++)
{
GetRoom();
GameObject newMiner = GameObject.Instantiate(minerPrefab);
newMiner.transform.SetParent(startPos);
newMiner.transform.position = gold.position;
} }
}
private async void Generate(int count) private async void Generate(int count)
@ -263,45 +247,24 @@ public class room : mount
Use use = new Use(); Use use = new Use();
use.Id = data.Ids[0]; use.Id = data.Ids[0];
if (use.Id != null)
{
Buy_succefful = true;
}
string jsonString = JsonUtility.ToJson(use); string jsonString = JsonUtility.ToJson(use);
string aa =await web.SendRequest(web.URL + "/Voucher/Use", "POST", jsonString); Debug.Log(jsonString);
string aa = await web.SendRequest(web.URL + "/Voucher/Use", "POST", jsonString);
Debug.Log(aa); 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>(response);
for (int i = 0; i < reslist.List.Length; i++)
{
if (reslist.List[i].Type == 1)
{
itemlist.Add(reslist.List[i]);
}
}
}
//开拓房间 //开拓房间
void GetRoom() void GetRoom()
{ {
if (BlackRoom == null) return; if (this.BlackRoom == null) return;
Destroy(BlackRoom) ; Destroy(this.BlackRoom);
} }
void UpdateShowCazhi() void UpdateShowCazhi()
@ -358,9 +321,9 @@ public class room : mount
} }
}
}

View File

@ -16,10 +16,10 @@ public class boy : mount
} }
private async void Start() private async void Start()
{ {
//测试用 // 测试用
/*Login login = new Login(); Login login = new Login();
login.Phone = "111"; 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));

View File

@ -103,6 +103,7 @@ public class landContorl : MonoBehaviour
private void OnMouseDown() private void OnMouseDown()
{ {
Debug.Log("点击岛屿");
if (fishMan != null) if (fishMan != null)
{ {
Promptmgr.Instance.PromptBubble("已经有船了", Color.black, Color.red); Promptmgr.Instance.PromptBubble("已经有船了", Color.black, Color.red);