This commit is contained in:
liuliang 2024-12-20 15:59:37 +08:00
commit 7ac2f8714f
32 changed files with 1834 additions and 362 deletions

View File

@ -0,0 +1,517 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &681042887138380540
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6145025051653687837}
- component: {fileID: 2211402838936384874}
m_Layer: 0
m_Name: attackRange
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6145025051653687837
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 681042887138380540}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.6822745, y: 1.6822745, z: 1.6822745}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8433650275485930555}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &2211402838936384874
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 681042887138380540}
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: dcb3a731cfcc70c4ab418922d45ec4a4, type: 3}
m_Color: {r: 0, g: 0.9413085, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &5542306764898442777
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2780405381636526920}
- component: {fileID: 4442126797615120306}
- component: {fileID: 8274433498955506092}
m_Layer: 0
m_Name: click
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2780405381636526920
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5542306764898442777}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8433650275485930555}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!61 &4442126797615120306
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5542306764898442777}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: -0.01983285, y: 0.17137805}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0, y: 0}
oldSize: {x: 0, y: 0}
newSize: {x: 0, y: 0}
adaptiveTilingThreshold: 0
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1.5878613, y: 2.0147488}
m_EdgeRadius: 0
--- !u!114 &8274433498955506092
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5542306764898442777}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f0429a615fb2d494b952183f92320d8f, type: 3}
m_Name:
m_EditorClassIdentifier:
role: {fileID: 8433650274028726420}
panelPrefab: {fileID: 8782491854383104488, guid: 61ffa7d22a51b1e48a3495af66e30de0, type: 3}
attackRange: {fileID: 681042887138380540}
isShowPanel: 0
instantiatedPanel: {fileID: 0}
--- !u!1 &6070656209494785206
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2562350995381512747}
m_Layer: 0
m_Name: StartPos
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2562350995381512747
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6070656209494785206}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.694, y: -0.275, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8433650275485930555}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &8433650274046349753
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8433650274046349754}
- component: {fileID: 8433650274046349755}
- component: {fileID: 860192343968067931}
- component: {fileID: 7808422078869408113}
m_Layer: 0
m_Name: Circle
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8433650274046349754
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274046349753}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.4, z: 0}
m_LocalScale: {x: 0.14, y: 0.14, z: 0.16}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8433650275485930555}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &8433650274046349755
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274046349753}
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: e608c111073dc374cb330b867a26e8bb, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 21.605274, y: 19.199999}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &860192343968067931
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274046349753}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7d7d3146a1294f044892ae91ba6c7cd6, type: 3}
m_Name:
m_EditorClassIdentifier:
attack: {fileID: 7276635428522831207}
--- !u!95 &7808422078869408113
Animator:
serializedVersion: 5
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274046349753}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 996aab3995a94be45915ba7e538786cb, 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 &8433650274814453344
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8433650274814453345}
- component: {fileID: 7276635428522831207}
- component: {fileID: 1338343970434073545}
m_Layer: 0
m_Name: attack
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8433650274814453345
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274814453344}
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: 8433650275485930555}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7276635428522831207
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274814453344}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 90e9cd2fc0a74084fbf1a89015db94a9, type: 3}
m_Name:
m_EditorClassIdentifier:
bulletPrefab: {fileID: 6998733212867311352, guid: 95e4d74ef33230c4380bb2d0780887b2, type: 3}
role: {fileID: 8433650274028726420}
attackScope: 3
damageTyp: 2
attackCooldown: 1
bulltes: []
animator: {fileID: 7808422078869408113}
fireAni: {fileID: 0}
BulletStartPos: {fileID: 2562350995381512747}
direction: {x: 0, y: 0}
--- !u!58 &1338343970434073545
CircleCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274814453344}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Radius: 3
--- !u!1 &8433650275485930554
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8433650275485930555}
- component: {fileID: 1143474233500709369}
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
m_Layer: 0
m_Name: mkl
m_TagString: Player
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8433650275485930555
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650275485930554}
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:
- {fileID: 8433650274814453345}
- {fileID: 6145025051653687837}
- {fileID: 8433650274046349754}
- {fileID: 2780405381636526920}
- {fileID: 2562350995381512747}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!210 &1143474233500709369
SortingGroup:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 3
--- !u!114 &8433650274028726420
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
id: 0
camp: 0
hp: 100
dieIndex: -1
Hpfiil: {fileID: 0}
HpfiilYello: {fileID: 0}
HpTextPrefab: {fileID: 0}
_Canvas: {fileID: 0}
spriteRenderers: {fileID: 0}
HurtDirectin: 0
gold: 10
physicalArmor: 10
magicArmor: 5
Navigation: {fileID: 0}
AnimationTree: []
animationHighlight: 0
spriteRenderer: {fileID: 8433650274046349755}
image: {fileID: 0}
isAnimationPlay: 0
mycollider: {fileID: 1338343970434073545}
attackClass: {fileID: 7276635428522831207}
CurrentIndex: 0
hitIndex: 2
normalIndex: 0
isHit: 0
enemyId:
moveSpeed: 0
harmNumber: 0
--- !u!61 &-3836672401185760439
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0.061288178, y: 0.35420084}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0, y: 0}
oldSize: {x: 0, y: 0}
newSize: {x: 0, y: 0}
adaptiveTilingThreshold: 0
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1.071966, y: 1.4082837}
m_EdgeRadius: 0
--- !u!114 &1608620729910401442
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7efd77bf3b16c2d44a0a50c7471c1d45, type: 3}
m_Name:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4f81cc16b1203d549b927ed7da53fdbf
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -232,7 +232,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u5154\u5154\u732B"
m_Text: "\u6728\u6728"
--- !u!1 &1813927994723406207
GameObject:
m_ObjectHideFlags: 0
@ -269,8 +269,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: -6.1781, y: 0}
m_SizeDelta: {x: 251.6439, y: 233.1494}
m_AnchoredPosition: {x: -0.0000019073, y: 22}
m_SizeDelta: {x: 479.7614, y: 444.5015}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1869030320709755012
CanvasRenderer:
@ -300,9 +300,9 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 7a9ea5910ce547648b91fb17f66423b0, type: 3}
m_Sprite: {fileID: 21300000, guid: 5e3fd295650deeb4fa3395de2d789b8a, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
@ -504,10 +504,10 @@ RectTransform:
m_Father: {fileID: 8646173537342263721}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 628.68, y: -174.5}
m_SizeDelta: {x: 264, y: 349}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &514399549474802177
CanvasRenderer:
@ -717,10 +717,10 @@ RectTransform:
m_Father: {fileID: 8646173537342263721}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 132, y: -174.5}
m_SizeDelta: {x: 264, y: 349}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1106133910927903845
CanvasRenderer:
@ -945,10 +945,10 @@ RectTransform:
m_Father: {fileID: 8646173537342263721}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 380.34, y: -174.5}
m_SizeDelta: {x: 264, y: 349}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6130671505914922423
CanvasRenderer:
@ -1172,7 +1172,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 18, y: 5}
m_AnchoredPosition: {x: -3, y: 94}
m_SizeDelta: {x: 234, y: 81.366}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8299253543054218396
@ -4763,10 +4763,10 @@ RectTransform:
m_Father: {fileID: 8646173537015180660}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 132, y: -174.5}
m_SizeDelta: {x: 264, y: 349}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8646173537325353418
CanvasRenderer:

View File

@ -0,0 +1,609 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6655435211825999802
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435211825999803}
- component: {fileID: 6655435211825999801}
- component: {fileID: 6655435211825999800}
m_Layer: 5
m_Name: gaoliang
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435211825999803
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435211825999802}
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: 6655435212987556049}
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: -1, y: 4}
m_SizeDelta: {x: 224, y: 294}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435211825999801
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435211825999802}
m_CullTransparentMesh: 1
--- !u!114 &6655435211825999800
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435211825999802}
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: 91b573803363f634dbcbc7ff258bb113, type: 3}
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!1 &6655435212172408551
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435212172408548}
- component: {fileID: 6655435212172408554}
- component: {fileID: 6655435212172408549}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435212172408548
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212172408551}
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: 6655435213216105600}
m_Father: {fileID: 6655435212774856918}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: -1, y: 37.425293}
m_SizeDelta: {x: 234, y: 81.366}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435212172408554
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212172408551}
m_CullTransparentMesh: 1
--- !u!114 &6655435212172408549
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212172408551}
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: 5a2005fb30b78cc4ab9f29e443f545a0, type: 3}
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!1 &6655435212345104648
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435212345104649}
- component: {fileID: 6655435212345104655}
- component: {fileID: 6655435212345104654}
m_Layer: 5
m_Name: mash
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435212345104649
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212345104648}
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: 6655435212987556049}
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: 0, y: 0}
m_SizeDelta: {x: 220, y: 290}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435212345104655
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212345104648}
m_CullTransparentMesh: 1
--- !u!114 &6655435212345104654
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212345104648}
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: 0, g: 0, b: 0, a: 0.7058824}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: dab6101c2a5349c43a399e3101cb2617, type: 3}
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!1 &6655435212774856913
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435212774856918}
- component: {fileID: 6655435212774856917}
- component: {fileID: 6655435212774856916}
- component: {fileID: 6655435212774856919}
m_Layer: 5
m_Name: info
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435212774856918
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212774856913}
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: 6655435213110775789}
- {fileID: 6655435212172408548}
m_Father: {fileID: 6655435212987556049}
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: 220, y: 290}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435212774856917
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212774856913}
m_CullTransparentMesh: 1
--- !u!114 &6655435212774856916
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212774856913}
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: 7d3f6c1dbe0fc184896b677f0b6ad28f, type: 3}
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!114 &6655435212774856919
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212774856913}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ShowMaskGraphic: 1
--- !u!1 &6655435212987556048
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435212987556049}
- component: {fileID: 6655435212987556052}
- component: {fileID: 6655435212987556054}
- component: {fileID: 6655435212987556053}
- component: {fileID: 6655435211444829444}
m_Layer: 5
m_Name: card_mkl
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435212987556049
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212987556048}
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: 6655435212774856918}
- {fileID: 6655435211825999803}
- {fileID: 6655435212345104649}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435212987556052
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212987556048}
m_CullTransparentMesh: 1
--- !u!114 &6655435212987556054
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212987556048}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, 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: 2
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: 0}
toggleTransition: 1
graphic: {fileID: 6655435211825999800}
m_Group: {fileID: 0}
onValueChanged:
m_PersistentCalls:
m_Calls: []
m_IsOn: 0
--- !u!114 &6655435212987556053
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212987556048}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c80ec7342ba0b09448680eb2ed376380, type: 3}
m_Name:
m_EditorClassIdentifier:
cardIconImage: {fileID: 6655435213110775794}
cardicon: {fileID: 21300000, guid: 5e3fd295650deeb4fa3395de2d789b8a, type: 3}
targetTag: tower
mengyaoPrefab: {fileID: 8433650275485930554, guid: 4f81cc16b1203d549b927ed7da53fdbf, type: 3}
mask: {fileID: 6655435212345104648}
mY: {fileID: 0}
--- !u!114 &6655435211444829444
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435212987556048}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c64989b3a75e1d44e8692a17ba9c22ea, type: 3}
m_Name:
m_EditorClassIdentifier:
mengyaoid: 1
--- !u!1 &6655435213110775788
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435213110775789}
- component: {fileID: 6655435213110775795}
- component: {fileID: 6655435213110775794}
m_Layer: 5
m_Name: icon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435213110775789
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435213110775788}
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: 6655435212774856918}
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: -1, y: 50.13}
m_SizeDelta: {x: 421.2176, y: 390.2604}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435213110775795
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435213110775788}
m_CullTransparentMesh: 1
--- !u!114 &6655435213110775794
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435213110775788}
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: 5e3fd295650deeb4fa3395de2d789b8a, type: 3}
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!1 &6655435213216105603
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6655435213216105600}
- component: {fileID: 6655435213216105606}
- component: {fileID: 6655435213216105601}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6655435213216105600
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435213216105603}
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: 6655435212172408548}
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: 15.4549}
m_SizeDelta: {x: 234, y: 50.4553}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6655435213216105606
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435213216105603}
m_CullTransparentMesh: 1
--- !u!114 &6655435213216105601
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6655435213216105603}
m_Enabled: 1
m_EditorHideFlags: 0
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_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u6728\u6728"

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 383e65ed01369d345a73d626ab713888
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -450,7 +450,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c64989b3a75e1d44e8692a17ba9c22ea, type: 3}
m_Name:
m_EditorClassIdentifier:
mengyaoid: 1
mengyaoid: 4
--- !u!1 &6655435213110775788
GameObject:
m_ObjectHideFlags: 0

View File

@ -0,0 +1,162 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1101 &-8642984534639134148
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: Attack
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -272132857674612170}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0
m_TransitionOffset: 0
m_ExitTime: 0.80263156
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1102 &-4949520650912093657
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Konglong_Stand
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: -8642984534639134148}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 8d1d876fb425bdc4f96fa0e13ba566a5, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1101 &-777722934861273811
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions: []
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -4949520650912093657}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0
m_TransitionOffset: 0
m_ExitTime: 1
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1102 &-272132857674612170
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Konglong_Attack
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: -777722934861273811}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 5a058bceaa362ea4b928864f4c44ce36, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Circle
serializedVersion: 5
m_AnimatorParameters:
- m_Name: Attack
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 9100000}
- m_Name: State
m_Type: 3
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 9100000}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 3282930797366753914}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1107 &3282930797366753914
AnimatorStateMachine:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -4949520650912093657}
m_Position: {x: 300, y: 10, z: 0}
- serializedVersion: 1
m_State: {fileID: -272132857674612170}
m_Position: {x: 330, y: 140, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -4949520650912093657}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 996aab3995a94be45915ba7e538786cb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,53 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: KongLong_Attack
serializedVersion: 7
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings: []
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 1
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5a058bceaa362ea4b928864f4c44ce36
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,179 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Konglong_Stand
serializedVersion: 7
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves:
- curve:
- time: 0
value: {fileID: 21300000, guid: 5e3fd295650deeb4fa3395de2d789b8a, type: 3}
- time: 0.033333335
value: {fileID: 21300000, guid: c2e64e66679056149aa4adab50183d98, type: 3}
- time: 0.06666667
value: {fileID: 21300000, guid: e76be29f547c76e45b569a15cc54c2ec, type: 3}
- time: 0.1
value: {fileID: 21300000, guid: 42d18d4125a0e5c40978ddc59b474211, type: 3}
- time: 0.13333334
value: {fileID: 21300000, guid: 646c98a5757ff6445b3b3b102508c1e7, type: 3}
- time: 0.16666667
value: {fileID: 21300000, guid: 504218b272dbc784eb1b60d2fdb90ff3, type: 3}
- time: 0.2
value: {fileID: 21300000, guid: 84706861830b830458ff4d7ff71a17af, type: 3}
- time: 0.23333333
value: {fileID: 21300000, guid: 8fccd054f5171ff4eb038ed2fae4861f, type: 3}
- time: 0.26666668
value: {fileID: 21300000, guid: 335624956cf20f24fbb101068c922f3f, type: 3}
- time: 0.3
value: {fileID: 21300000, guid: 4257cc5a7c095834280c579925674052, type: 3}
- time: 0.33333334
value: {fileID: 21300000, guid: d5f11ce763f7d1d40bb4a5993af7e596, type: 3}
- time: 0.36666667
value: {fileID: 21300000, guid: a3ae5dafcad0ec447a65b0fb2c8179e9, type: 3}
- time: 0.4
value: {fileID: 21300000, guid: 4e0617bfc460d4d4da84c2d26fdd8e9e, type: 3}
- time: 0.43333334
value: {fileID: 21300000, guid: fc1496264f7ae1e499ce08daa44bb22b, type: 3}
- time: 0.46666667
value: {fileID: 21300000, guid: de1d54da464bb5b4494cf3b95b294bc4, type: 3}
- time: 0.5
value: {fileID: 21300000, guid: 784c33b68ecd5ae439142471159d4875, type: 3}
- time: 0.53333336
value: {fileID: 21300000, guid: b25edfae22050ff4e98066053659f072, type: 3}
- time: 0.56666666
value: {fileID: 21300000, guid: da47a478a3a1b774ab9f934a86d517b4, type: 3}
- time: 0.6
value: {fileID: 21300000, guid: 532f88d055dd86444993cbc6dfd14f66, type: 3}
- time: 0.6333333
value: {fileID: 21300000, guid: fecb435f800594648b3439af0e99fa69, type: 3}
- time: 0.6666667
value: {fileID: 21300000, guid: 15ccf2d93db751a48befee95d6858bc3, type: 3}
- time: 0.7
value: {fileID: 21300000, guid: 89f59f9a3f26c6141acf3915f95c1539, type: 3}
- time: 0.73333335
value: {fileID: 21300000, guid: 9218af0da0a3f6848a2f99edc053ba47, type: 3}
- time: 0.76666665
value: {fileID: 21300000, guid: d6c0412fd6c22674f8631081496de101, type: 3}
- time: 0.8
value: {fileID: 21300000, guid: 5d34225fed336af4fa4e348342a2c3e8, type: 3}
- time: 0.8333333
value: {fileID: 21300000, guid: f2fada5982456d942a4ee8fc4cbb1a75, type: 3}
- time: 0.8666667
value: {fileID: 21300000, guid: 5dc4b372536d829488f1d27876e21af2, type: 3}
- time: 0.9
value: {fileID: 21300000, guid: 017966988d8ba2f4a88cdbaf30636adf, type: 3}
- time: 0.93333334
value: {fileID: 21300000, guid: 8afa042c476e1b94491ac9161f6ae270, type: 3}
- time: 0.96666664
value: {fileID: 21300000, guid: d2ac3e1cad51bf945bf6966669510451, type: 3}
- time: 1
value: {fileID: 21300000, guid: 459fddc5e2b7c244299343d43d94dfe2, type: 3}
- time: 1.0333333
value: {fileID: 21300000, guid: c1b84f04d8c0ff749a983608db3192ea, type: 3}
- time: 1.0666667
value: {fileID: 21300000, guid: c790de8f50d51da4e97e3b07e83491e6, type: 3}
- time: 1.1
value: {fileID: 21300000, guid: 37569328250142548866ab5cc04638e4, type: 3}
- time: 1.1333333
value: {fileID: 21300000, guid: 6596c32ce3368bc49a04f72363273cea, type: 3}
- time: 1.1666666
value: {fileID: 21300000, guid: 08e09b630f9195e478d453b01f876c01, type: 3}
- time: 1.2
value: {fileID: 21300000, guid: 54094efc56a837d4c9a3e3f622a812cb, type: 3}
- time: 1.2333333
value: {fileID: 21300000, guid: 1dae8e5add7dc194194f2f1875d2dd57, type: 3}
attribute: m_Sprite
path:
classID: 212
script: {fileID: 0}
m_SampleRate: 30
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 0
script: {fileID: 0}
typeID: 212
customType: 23
isPPtrCurve: 1
pptrCurveMapping:
- {fileID: 21300000, guid: 5e3fd295650deeb4fa3395de2d789b8a, type: 3}
- {fileID: 21300000, guid: c2e64e66679056149aa4adab50183d98, type: 3}
- {fileID: 21300000, guid: e76be29f547c76e45b569a15cc54c2ec, type: 3}
- {fileID: 21300000, guid: 42d18d4125a0e5c40978ddc59b474211, type: 3}
- {fileID: 21300000, guid: 646c98a5757ff6445b3b3b102508c1e7, type: 3}
- {fileID: 21300000, guid: 504218b272dbc784eb1b60d2fdb90ff3, type: 3}
- {fileID: 21300000, guid: 84706861830b830458ff4d7ff71a17af, type: 3}
- {fileID: 21300000, guid: 8fccd054f5171ff4eb038ed2fae4861f, type: 3}
- {fileID: 21300000, guid: 335624956cf20f24fbb101068c922f3f, type: 3}
- {fileID: 21300000, guid: 4257cc5a7c095834280c579925674052, type: 3}
- {fileID: 21300000, guid: d5f11ce763f7d1d40bb4a5993af7e596, type: 3}
- {fileID: 21300000, guid: a3ae5dafcad0ec447a65b0fb2c8179e9, type: 3}
- {fileID: 21300000, guid: 4e0617bfc460d4d4da84c2d26fdd8e9e, type: 3}
- {fileID: 21300000, guid: fc1496264f7ae1e499ce08daa44bb22b, type: 3}
- {fileID: 21300000, guid: de1d54da464bb5b4494cf3b95b294bc4, type: 3}
- {fileID: 21300000, guid: 784c33b68ecd5ae439142471159d4875, type: 3}
- {fileID: 21300000, guid: b25edfae22050ff4e98066053659f072, type: 3}
- {fileID: 21300000, guid: da47a478a3a1b774ab9f934a86d517b4, type: 3}
- {fileID: 21300000, guid: 532f88d055dd86444993cbc6dfd14f66, type: 3}
- {fileID: 21300000, guid: fecb435f800594648b3439af0e99fa69, type: 3}
- {fileID: 21300000, guid: 15ccf2d93db751a48befee95d6858bc3, type: 3}
- {fileID: 21300000, guid: 89f59f9a3f26c6141acf3915f95c1539, type: 3}
- {fileID: 21300000, guid: 9218af0da0a3f6848a2f99edc053ba47, type: 3}
- {fileID: 21300000, guid: d6c0412fd6c22674f8631081496de101, type: 3}
- {fileID: 21300000, guid: 5d34225fed336af4fa4e348342a2c3e8, type: 3}
- {fileID: 21300000, guid: f2fada5982456d942a4ee8fc4cbb1a75, type: 3}
- {fileID: 21300000, guid: 5dc4b372536d829488f1d27876e21af2, type: 3}
- {fileID: 21300000, guid: 017966988d8ba2f4a88cdbaf30636adf, type: 3}
- {fileID: 21300000, guid: 8afa042c476e1b94491ac9161f6ae270, type: 3}
- {fileID: 21300000, guid: d2ac3e1cad51bf945bf6966669510451, type: 3}
- {fileID: 21300000, guid: 459fddc5e2b7c244299343d43d94dfe2, type: 3}
- {fileID: 21300000, guid: c1b84f04d8c0ff749a983608db3192ea, type: 3}
- {fileID: 21300000, guid: c790de8f50d51da4e97e3b07e83491e6, type: 3}
- {fileID: 21300000, guid: 37569328250142548866ab5cc04638e4, type: 3}
- {fileID: 21300000, guid: 6596c32ce3368bc49a04f72363273cea, type: 3}
- {fileID: 21300000, guid: 08e09b630f9195e478d453b01f876c01, type: 3}
- {fileID: 21300000, guid: 54094efc56a837d4c9a3e3f622a812cb, type: 3}
- {fileID: 21300000, guid: 1dae8e5add7dc194194f2f1875d2dd57, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 1.2666667
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8d1d876fb425bdc4f96fa0e13ba566a5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -3533,7 +3533,7 @@ MonoBehaviour:
IconTipObj: {fileID: 0}
mengyaoCardDataList:
- cardID: 1
cardPrefab: {fileID: 6655435212987556048, guid: c1e6f19a3129057498825317871b15b2, type: 3}
cardPrefab: {fileID: 6655435212987556048, guid: 383e65ed01369d345a73d626ab713888, type: 3}
- cardID: 2
cardPrefab: {fileID: 5508436327438263543, guid: 12644a2c53bfc72489ad76e8f81628f5, type: 3}
- cardID: 3
@ -5321,6 +5321,8 @@ MonoBehaviour:
ClosureObj: {fileID: 0}
BloodText: {fileID: 1288391609}
MaxHp: 20
NowShowInfo: {fileID: 0}
NowAttackRange: {fileID: 0}
KIllNumberText: {fileID: 1595305660}
maxEnemynumber: 20
allNumer: 0

View File

@ -2803,12 +2803,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 1667584252}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 1064200443}
--- !u!224 &41060958
RectTransform:
@ -6991,6 +6992,8 @@ MonoBehaviour:
restTimer: 5
goldNumerTextPro: {fileID: 41438746}
shipNumberTextPro: {fileID: 1051730575}
shipNumber: 0
MaxShipNumber: 10
HightLight: {fileID: 714123673}
OnBtnAni: {fileID: 1853036457}
FishPrice: 0
@ -20224,6 +20227,8 @@ MonoBehaviour:
restTimer: 5
goldNumerTextPro: {fileID: 501903610}
shipNumberTextPro: {fileID: 802076963}
shipNumber: 0
MaxShipNumber: 10
HightLight: {fileID: 2063448002}
OnBtnAni: {fileID: 1286256236}
FishPrice: 0
@ -29410,12 +29415,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 685753470}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 445895484}
--- !u!1 &391577163
GameObject:
@ -37868,6 +37874,8 @@ MonoBehaviour:
restTimer: 5
goldNumerTextPro: {fileID: 1971643584}
shipNumberTextPro: {fileID: 1400604628}
shipNumber: 0
MaxShipNumber: 10
HightLight: {fileID: 255713201}
OnBtnAni: {fileID: 1323905748}
FishPrice: 0
@ -39675,12 +39683,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 1560771129}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 908759326}
--- !u!1 &539340267
GameObject:
@ -59011,6 +59020,8 @@ MonoBehaviour:
restTimer: 5
goldNumerTextPro: {fileID: 638845945}
shipNumberTextPro: {fileID: 950474328}
shipNumber: 0
MaxShipNumber: 10
HightLight: {fileID: 982346844}
OnBtnAni: {fileID: 469679720}
FishPrice: 0
@ -69147,6 +69158,8 @@ MonoBehaviour:
restTimer: 5
goldNumerTextPro: {fileID: 564324688}
shipNumberTextPro: {fileID: 2124790069}
shipNumber: 0
MaxShipNumber: 10
HightLight: {fileID: 481560950}
OnBtnAni: {fileID: 1487684922}
FishPrice: 0
@ -72224,12 +72237,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 837165144}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 446693762}
--- !u!1001 &1019117822
PrefabInstance:
@ -81308,12 +81322,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 48448553}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 301290350}
--- !u!1 &1147023703
GameObject:
@ -96907,12 +96922,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 2032179119}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 1366135259}
--- !u!1 &1373848349
GameObject:
@ -103434,12 +103450,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 162567087}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 171398332}
--- !u!1 &1476861035
GameObject:
@ -113650,6 +113667,8 @@ MonoBehaviour:
restTimer: 5
goldNumerTextPro: {fileID: 1070786116}
shipNumberTextPro: {fileID: 1704927611}
shipNumber: 0
MaxShipNumber: 10
HightLight: {fileID: 359145894}
OnBtnAni: {fileID: 1456988456}
FishPrice: 0
@ -120391,12 +120410,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 1464106938}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 267200067}
--- !u!1 &1677461936
GameObject:
@ -128011,12 +128031,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 29173225}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 459442176}
--- !u!1 &1800614347
GameObject:
@ -137936,12 +137957,13 @@ MonoBehaviour:
fishingNeedTimer: 30
restTimer: 5
shipNumberTextPro: {fileID: 948930767}
shipNumber: 0
MaxShipNumber: 10
effectPrefab: {fileID: 0}
OnBtnAni: {fileID: 0}
FishPrice: 0
map: {fileID: 0}
ids: []
number: 0
musk: {fileID: 2136287637}
--- !u!1 &1921657892
GameObject:

View File

@ -48,8 +48,22 @@ public class CharacterClick : MonoBehaviour
{
if (instantiatedPanel == null)
{
if (UIContorl.instance.NowShowInfo!=null)
{
Destroy(UIContorl.instance.NowShowInfo._closePanel);
HideAttackRange(UIContorl.instance.NowAttackRange);
}
instantiatedPanel = GameObject.Instantiate(panelPrefab, GameObject.Find("Canvas").transform);
ShowAttackRange();
UIContorl.instance.NowShowInfo = instantiatedPanel.GetComponent<charainfoPanel>();
UIContorl.instance.NowAttackRange = attackRange;
ShowAttackRange(UIContorl.instance.NowAttackRange);
instantiatedPanel.GetComponent<charainfoPanel>().closeBtn.onClick.AddListener(() => {
Destroy(instantiatedPanel.GetComponent<charainfoPanel>()._closePanel);
HideAttackRange(UIContorl.instance.NowAttackRange);
});
RectTransform panelRect = instantiatedPanel.GetComponent<RectTransform>();
// 确保生成的面板不会挡住父物体
panelRect.SetAsLastSibling(); // 将面板放到 Canvas 层级的最上层
@ -64,13 +78,14 @@ public class CharacterClick : MonoBehaviour
panelRect.GetComponent<charainfoPanel>().UpDateShow("1", MyCharacter.Name, MyCharacter.Info, MyCharacter.MaxAttack + "~" + MyCharacter.MinAttack, MyCharacter.AttackRange, MyCharacter.AttackCD);
}
}
else
{
HideAttackRange();
//HideAttackRange();
}
}
public void ShowAttackRange()
public void ShowAttackRange(GameObject attackRange)
{
if (attackRange!=null)
{
@ -82,7 +97,7 @@ public class CharacterClick : MonoBehaviour
}
public void HideAttackRange()
public void HideAttackRange(GameObject attackRange)
{
if (attackRange != null )
{

View File

@ -8,6 +8,8 @@ public class UIContorl : Base
public static UIContorl instance;
public Text BloodText;
[Header("最大血量")]public int MaxHp;
[Header("现在显示的信息面板")] public charainfoPanel NowShowInfo;
[Header("现在显示的攻击范围面板")] public GameObject NowAttackRange;
private int hp;
public int Hp
{

View File

@ -77,7 +77,7 @@ public class cardContorl : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndD
// 拖拽结束
public void OnEndDrag(PointerEventData eventData)
{
mY.GetComponentInChildren<CharacterClick>().HideAttackRange();
mY.GetComponentInChildren<CharacterClick>().HideAttackRange(mY.GetComponentInChildren<CharacterClick>().attackRange);
if (mY.GetComponent<cardPlace>().isInTrigger)
{
mY.transform.position = mY.GetComponent<cardPlace>().tower.transform.position;

View File

@ -31,10 +31,10 @@ public class charainfoPanel : Base
//await PanelminTobig(_panel);
PanelminTobig(_panel);
closeBtn.onClick.AddListener(() => {
//closeBtn.onClick.AddListener(() => {
Destroy(_closePanel);
});
// Destroy(_closePanel);
//});
}
public virtual void PanelminTobig(GameObject _panel)

View File

@ -44,7 +44,18 @@ public class BaoshiRoomcontroller : MonoBehaviour
[Header("显示精灵数量")]
public Text shipNumberTextPro;
public int shipNumber;
public int MaxShipNumber=10;
public int ShipNumber
{
get=> shipNumber;
set
{
shipNumber=value;
shipNumberTextPro.text = shipNumber.ToString()+"/"+MaxShipNumber.ToString();
}
}
[Header("点击的特效")]
public GameObject effectPrefab;//特效
@ -61,14 +72,14 @@ public class BaoshiRoomcontroller : MonoBehaviour
public List<string> ids = new List<string>();
public int number;
public GameObject musk;
// Start is called before the first frame update
private void Awake()
{
listItem = new List<VoucherItem>();
UpdateShipNumberTextPro(listItem.Count.ToString());
// UpdateShipNumberTextPro(listItem.Count.ToString());
}
private void Start()
{
@ -132,11 +143,6 @@ public class BaoshiRoomcontroller : MonoBehaviour
{
add_fish();
}
else
{
Promptmgr.Instance.PromptBubble("激活失败");
}
}
public void add_fish(string timerStr = null)//生成船只
@ -145,7 +151,7 @@ public class BaoshiRoomcontroller : MonoBehaviour
if (timerStr != null)
{
musk.gameObject.SetActive(false);
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
fishMan.transform.position = endPos.position;
fishManShipContorl = fishMan.GetComponent<minerControl>();
@ -157,30 +163,13 @@ public class BaoshiRoomcontroller : MonoBehaviour
return;
}
musk.gameObject.SetActive(false);
number++;
UpdateShipNumberTextPro(number + "/10");
//number++;
//UpdateShipNumberTextPro(number + "/10");
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
fishMan.transform.position = startPos.position;
fishManShipContorl = fishMan.GetComponent<minerControl>();
fishManShipContorl.init(this.paths, this.pathsNeedTimer, this.fishingNeedTimer, this.restTimer, this.startPos, this.endPos);
}
//更新精灵数量显示
public void UpdateShipNumberTextPro(string str)
{
if (shipNumberTextPro.text == str)
{
return;
}
shipNumberTextPro.text = str;
}
//使用代金卷
async void UseShip()
{
@ -202,7 +191,6 @@ public class BaoshiRoomcontroller : MonoBehaviour
public async Task<bool> ActivationRoom()
{
return await miner_jiekou.instance.MiningActivate(this.RoomId);
}
}

View File

@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class Scene_baoshidao : MonoBehaviour
@ -27,16 +28,21 @@ public class Scene_baoshidao : MonoBehaviour
{
baoshidao_contorl go = lands[index].GetComponent<baoshidao_contorl>();
go.RoomId = info.Id;
go.daoyuName.text = info.Name;
go.ActivateValue = info.Price;
go.goldNumerTextPro.text = info.Price.ToString("f0");
go.RoomId = info.id;
go.daoyuName.text = info.name;
go.ActivateValue = info.price;
go.goldNumerTextPro.text = info.price.ToString("f0");
go.MaxShipNumber = info.activate_limit;
go.ShipNumber = info.activate_count;
if (info.activate_count > 0)
{
for (int temp = info.activate_count; temp > 0; temp--)
{
go.OnClick();
go.add_fish("1");
await Task.Delay(100);
}
}

View File

@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class Scene_baoshikuang : MonoBehaviour
@ -26,17 +27,20 @@ public class Scene_baoshikuang : MonoBehaviour
int index = 0;
foreach (MinngConfigData info in infos)
{
BaoshiRoomcontroller roomController = lands[index].GetComponent<BaoshiRoomcontroller>();
BaoshiRoomcontroller go = lands[index].GetComponent<BaoshiRoomcontroller>();
// 更新 RoomId
roomController.RoomId = info.Id;
go.RoomId = info.id;
//info.activate_count
//info.activate_limit
go.MaxShipNumber = info.activate_limit;
go.ShipNumber = info.activate_count;
// 如果 ActivateCount 大于 0则调用 OnClick 方法
if (info.activate_count > 0)
{
for (int temp = 0; temp < info.activate_count; temp++) // 使用更常见的循环方式
for (int temp = 0; temp < info.activate_count; temp++)
{
roomController.OnClick();
go.add_fish("1");
await Task.Delay(100);
}
}

View File

@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class Scene_jinbikuang : MonoBehaviour
@ -26,14 +27,19 @@ public class Scene_jinbikuang : MonoBehaviour
foreach (MinngConfigData info in infos)
{
roomcontroller go = lands[index].GetComponent<roomcontroller>();
go.RoomId = info.Id;
go.ActivateValue = info.Price;
go.RoomId = info.id;
go.ActivateValue = info.price;
go.MaxShipNumber = info.activate_limit;
go.ShipNumber = info.activate_count;
if (info.activate_count > 0)
{
for (int temp = info.activate_count; temp > 0; temp--)
{
go.add_fish();
go.add_fish("1");
await Task.Delay(100);
}
}

View File

@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class scene_jingshadao : MonoBehaviour
@ -26,23 +27,23 @@ public class scene_jingshadao : MonoBehaviour
foreach (MinngConfigData info in infos)
{
jishadao_contorl go = lands[index].GetComponent<jishadao_contorl>();
go.RoomId = info.Id;
go.daoyuName.text = info.Name;
go.RoomId = info.id;
go.daoyuName.text = info.name;
go.ActivateValue = info.Price;
go.goldNumerTextPro.text = info.Price.ToString("f0");
go.shipNumberTextPro.text =info.activate_count.ToString() + "/" + info.ActivateLimit;
go.ActivateValue = info.price;
go.goldNumerTextPro.text = info.price.ToString("f0");
go.MaxShipNumber = info.activate_limit;
go.ShipNumber = info.activate_count;
Debug.LogError("!!!!!!!!!!info.ActivateCount" + info.activate_count);
if (info.activate_count > 0)
{
Debug.LogError("22222222info.ActivateCount"+ info.activate_count);
for (int temp = 0; temp < info.activate_count; temp++)
{
go.OnClick();
go.add_fish("1");
await Task.Delay(100);
}
}
index++;
}
}

View File

@ -18,7 +18,7 @@ public class scene_Main_Init : MonoBehaviour
index= PlayerPrefs.GetInt("SceneStatus");
if(index==-1)
{
Debug.LogError("index==0");
Debug.LogWarning("index==0");
return;
}

View File

@ -50,7 +50,18 @@ public class baoshidao_contorl : MonoBehaviour
public Text goldNumerTextPro;
[Header("显示船只数量")]
public Text shipNumberTextPro;
public int shipNumber;
public int MaxShipNumber = 10;
public int ShipNumber
{
get => shipNumber;
set
{
shipNumber = value;
shipNumberTextPro.text = shipNumber.ToString() + "/" + MaxShipNumber.ToString();
}
}
[Header("点击的高亮图层")]
public GameObject HightLight;//高亮图层
@ -89,53 +100,6 @@ public class baoshidao_contorl : MonoBehaviour
goldNumerTextPro.text = ActivateValue.ToString();
}
async void addman(int type, int number)
{
if (type == this.type)
{
GenerateForFisherElf generateForFisherElf = new GenerateForFisherElf(); // 购买渔夫
generateForFisherElf.Num = Num;
generateForFisherElf.Count = 1;
string userponse = await web.SendRequest(web.URL + "/Voucher/GenerateForFisherElf", "POST", JsonUtility.ToJson(generateForFisherElf));
ids itemList = JsonUtility.FromJson<ids>(userponse);
Debug.Log(itemList.Ids[0]);
if (itemList.ErrorCode == 0) // 如果购买成功
{
Promptmgr.Instance.PromptBubble("购买成功", Color.black, Color.blue);
/* foreach (string item in itemList.Ids)
{
Use use = new Use(); // 使用渔夫
use.Id = item;
string rect = await web.SendRequest(web.URL + "/Voucher/Use", "POST", JsonUtility.ToJson(use));
Res res = JsonUtility.FromJson<ids>(userponse);
if (res.ErrorCode == 0)
{
Promptmgr.Instance.PromptBubble("购买成功", Color.black, Color.blue);
//增加船只数量
//ChangeShipNumber(1);
}
else
{
Promptmgr.Instance.PromptBubble(res.ErrorMessage, Color.black, Color.red);
}
}*/
}
else// 如果购买失败
{
Res res = JsonUtility.FromJson<ids>(userponse);
Promptmgr.Instance.PromptBubble(res.ErrorMessage, Color.black, Color.red);
}
}
}
public async void OnClick()
{
@ -150,10 +114,7 @@ public class baoshidao_contorl : MonoBehaviour
ScaleAni(OnBtnAni);
add_fish();
}
else
{
Promptmgr.Instance.PromptBubble("激活失败");
}

View File

@ -57,8 +57,7 @@ public class jskPanel : mount
{
lands[0].GetComponent<roomcontroller>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -200);
}
}
@ -70,9 +69,7 @@ public class jskPanel : mount
if (!Generate1 && (PlayerManager.Instance.Coins - 400) > 0)
{
lands[1].GetComponent<roomcontroller>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -400);
lands[1].GetComponent<roomcontroller>().BuyActivation();
}
}
@ -83,9 +80,8 @@ public class jskPanel : mount
{
if (!Generate1 && (PlayerManager.Instance.Coins - 600) > 0)
{
lands[2].GetComponent<roomcontroller>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -600);
lands[2].GetComponent<roomcontroller>().BuyActivation();
}
}
@ -96,9 +92,7 @@ public class jskPanel : mount
{
if (!Generate1 && (PlayerManager.Instance.Coins - 600) > 0)
{
lands[3].GetComponent<roomcontroller>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -600);
lands[3].GetComponent<roomcontroller>().BuyActivation();
}
}
@ -109,9 +103,7 @@ public class jskPanel : mount
{
if (!Generate1 && (PlayerManager.Instance.Coins - 600) > 0)
{
lands[4].GetComponent<roomcontroller>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -600);
lands[4].GetComponent<roomcontroller>().BuyActivation();
}
}

View File

@ -1,10 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Diagnostics;
using UnityEngine;
using DG.Tweening;
using Debug = UnityEngine.Debug;
public enum minerState
public enum minerState
{
stand,
move,
@ -64,7 +66,19 @@ public class minerControl : MonoBehaviour
this.restTimer = restTimer;
this.startPos = startPos;
this.endPos = endPos;
MoveToFishingPos();
if (Vector3.Distance(this.transform.position, startPos.position) <= 0.01f)
{
//Debug.LogWarning("11111111111111");
MoveToFishingPos();
}
else
{
// Debug.LogWarning("22222222222222222");
dig();
}
}
public void SetState(minerState newState)

View File

@ -49,6 +49,18 @@ public class roomcontroller : MonoBehaviour
[Header("显示精灵数量")]
public Text shipNumberTextPro;
public int shipNumber;
public int MaxShipNumber = 10;
public int ShipNumber
{
get => shipNumber;
set
{
shipNumber = value;
shipNumberTextPro.text = shipNumber.ToString() + "/" + MaxShipNumber.ToString();
}
}
[Header("点击的特效")]
@ -66,143 +78,69 @@ public class roomcontroller : MonoBehaviour
public List<string> ids = new List<string>();
public int number;
//public int number;
public GameObject musk;
// Start is called before the first frame update
private void Awake()
{
listItem = new List<VoucherItem>();
UpdateShipNumberTextPro(listItem.Count.ToString());
}
private void Start()
{
FishPrice = 10;
}
async void addman(int type, int number)
{
if (type == this.type)
{
GenerateForFisherElf generateForFisherElf = new GenerateForFisherElf(); // 购买渔夫
generateForFisherElf.Num = Num;
generateForFisherElf.Count = 1;
string userponse = await web.SendRequest(web.URL + "/Voucher/GenerateForFisherElf", "POST", JsonUtility.ToJson(generateForFisherElf));
ids itemList = JsonUtility.FromJson<ids>(userponse);
Debug.Log(itemList.Ids[0]);
if (itemList.ErrorCode == 0) // 如果购买成功
{
Promptmgr.Instance.PromptBubble("购买成功", Color.black, Color.blue);
/* foreach (string item in itemList.Ids)
{
Use use = new Use(); // 使用渔夫
use.Id = item;
string rect = await web.SendRequest(web.URL + "/Voucher/Use", "POST", JsonUtility.ToJson(use));
Res res = JsonUtility.FromJson<ids>(userponse);
if (res.ErrorCode == 0)
{
Promptmgr.Instance.PromptBubble("购买成功", Color.black, Color.blue);
//增加船只数量
//ChangeShipNumber(1);
}
else
{
Promptmgr.Instance.PromptBubble(res.ErrorMessage, Color.black, Color.red);
}
}*/
}
else// 如果购买失败
{
Res res = JsonUtility.FromJson<ids>(userponse);
Promptmgr.Instance.PromptBubble(res.ErrorMessage, Color.black, Color.red);
}
}
}
public async void OnClick()
{
if (!canClick)
{
return;
}
if (!canClick)
{
return;
}
// Debug.Log("OnClick");
if (fishMan == null)
{
Promptmgr.Instance.PromptBubble("还没有买", Color.black, Color.red);
return;
}
Promptmgr.Instance.PromptBubble("激活成功");
add_fish();
if (fishMan == null)
{
//Promptmgr.Instance.PromptBubble("还没有买", Color.black, Color.red);
return;
}
}
public async void add_fish(string timerStr = null)//生成船只
/// <summary>
/// 购买激活
/// </summary>
public async void BuyActivation()
{
if (await ActivationRoom())
{
Promptmgr.Instance.PromptBubble("激活成功");
add_fish();
}
else
{
Promptmgr.Instance.PromptBubble("激活失败");
this.ShipNumber += 1;
}
}
public void StartAddfish(string timerStr = null)
public async void add_fish(string timerStr = null)//生成船只
{
if (timerStr != null)
{
musk.gameObject.SetActive(false);
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
fishMan.transform.position = endPos.position;
fishManShipContorl = fishMan.GetComponent<minerControl>();
fishManShipContorl.init(this.paths, this.pathsNeedTimer, this.fishingNeedTimer, this.restTimer, this.startPos, this.endPos);
Debug.Log("更新船时间");
return;
}
musk.gameObject.SetActive(false);
number++;
UpdateShipNumberTextPro(number + "/10");
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
fishMan.transform.position = startPos.position;
fishManShipContorl = fishMan.GetComponent<minerControl>();
fishManShipContorl.init(this.paths, this.pathsNeedTimer, this.fishingNeedTimer, this.restTimer, this.startPos, this.endPos);
}
//更新精灵数量显示
public void UpdateShipNumberTextPro(string str)
{
if (shipNumberTextPro.text == str)
{
return;
}
shipNumberTextPro.text = str;
}
public async Task<bool> ActivationRoom()
{
return await miner_jiekou.instance.MiningActivate(this.RoomId);

View File

@ -54,9 +54,9 @@ public class jishadao_buy :mount
if (!Generate1 && (PlayerManager.Instance.Coins - 200) > 0)
{
lands[0].GetComponent<jishadao_contorl>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -200);
lands[0].GetComponent<jishadao_contorl>().BuyActivation();
}
}
@ -68,9 +68,9 @@ public class jishadao_buy :mount
if (!Generate1 && (PlayerManager.Instance.Coins - 400) > 0)
{
lands[1].GetComponent<jishadao_contorl>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -400);
lands[1].GetComponent<jishadao_contorl>().BuyActivation();
}
}
@ -81,8 +81,7 @@ public class jishadao_buy :mount
{
if (!Generate1 && (PlayerManager.Instance.Coins - 600) > 0)
{
lands[2].GetComponent<jishadao_contorl>().add_fish();
PlayerManager.Instance.SetMoney(MoneyType.Coins, -600);
lands[2].GetComponent<jishadao_contorl>().BuyActivation();
}
}

View File

@ -49,6 +49,18 @@ public class jishadao_contorl : MonoBehaviour
public Text goldNumerTextPro;
[Header("显示船只数量")]
public Text shipNumberTextPro;
public int shipNumber;
public int MaxShipNumber = 10;
public int ShipNumber
{
get => shipNumber;
set
{
shipNumber = value;
shipNumberTextPro.text = shipNumber.ToString() + "/" + MaxShipNumber.ToString();
}
}
[Header("点击的高亮图层")]
@ -70,71 +82,17 @@ public class jishadao_contorl : MonoBehaviour
private void Awake()
{
listItem = new List<VoucherItem>();
UpdateShipNumberTextPro(listItem.Count.ToString());
//UpdateShipNumberTextPro(listItem.Count.ToString());
}
private void Start()
{
FishPrice = 10;
HightLight.SetActive(false);
}
private void Update()
{
goldNumerTextPro.text = ActivateValue.ToString();
}
async void addman(int type, int number)
{
if (type == this.type)
{
GenerateForFisherElf generateForFisherElf = new GenerateForFisherElf(); // 购买渔夫
generateForFisherElf.Num = Num;
generateForFisherElf.Count = 1;
string userponse = await web.SendRequest(web.URL + "/Voucher/GenerateForFisherElf", "POST", JsonUtility.ToJson(generateForFisherElf));
ids itemList = JsonUtility.FromJson<ids>(userponse);
Debug.Log(itemList.Ids[0]);
if (itemList.ErrorCode == 0) // 如果购买成功
{
Promptmgr.Instance.PromptBubble("购买成功", Color.black, Color.blue);
/* foreach (string item in itemList.Ids)
{
Use use = new Use(); // 使用渔夫
use.Id = item;
string rect = await web.SendRequest(web.URL + "/Voucher/Use", "POST", JsonUtility.ToJson(use));
Res res = JsonUtility.FromJson<ids>(userponse);
if (res.ErrorCode == 0)
{
Promptmgr.Instance.PromptBubble("购买成功", Color.black, Color.blue);
//增加船只数量
//ChangeShipNumber(1);
}
else
{
Promptmgr.Instance.PromptBubble(res.ErrorMessage, Color.black, Color.red);
}
}*/
}
else// 如果购买失败
{
Res res = JsonUtility.FromJson<ids>(userponse);
Promptmgr.Instance.PromptBubble(res.ErrorMessage, Color.black, Color.red);
}
}
}
public async void OnClick()
{
@ -143,40 +101,58 @@ public class jishadao_contorl : MonoBehaviour
return;
}
ScaleAni(OnBtnAni);
if (fishMan == null)
{
Promptmgr.Instance.PromptBubble("还没有买船了", Color.black, Color.red);
// Promptmgr.Instance.PromptBubble("还没有买船了", Color.black, Color.red);
return;
}
add_fish();
}
public async void add_fish(string timerStr = null)//生成船只
/// <summary>
/// 购买激活
/// </summary>
public async void BuyActivation()
{
if (await ActivationRoom())
{
ScaleAni(OnBtnAni);
StartAddFish(timerStr);
}
else
{
Promptmgr.Instance.PromptBubble("激活失败");
add_fish();
this.ShipNumber+=1;
}
}
void StartAddFish(string timerStr = null)
public async void add_fish(string timerStr = null)//生成船只
{
if (fishMan != null)
{
// Promptmgr.Instance.PromptBubble("已经有船了", Color.black, Color.red);
Debug.Log("更新船");
return;
}
if (timerStr != null)
{
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
fishMan.transform.position = endPos.position;
fishManShipContorl = fishMan.GetComponent<SpriteAniationpro>();
Debug.Log("更新船时间");
fish();
return;
}
fishMan = GameObject.Instantiate(fishManPrefab, this.transform);
fishMan.transform.position = startPos.position;
fishManShipContorl = fishMan.GetComponent<SpriteAniationpro>();
MoveToFishingPos(); if (fishMan != null)
{
Promptmgr.Instance.PromptBubble("已经有船了", Color.black, Color.red);
Debug.Log("更新船");
@ -190,7 +166,7 @@ public class jishadao_contorl : MonoBehaviour
fishMan.transform.position = endPos.position;
fishManShipContorl = fishMan.GetComponent<SpriteAniationpro>();
Debug.Log("更新船时间");
// Debug.Log("更新船时间");
fish();
return;
@ -299,20 +275,6 @@ public class jishadao_contorl : MonoBehaviour
}
}
//更新船只数量显示
public void UpdateShipNumberTextPro(string str)
{
if (shipNumberTextPro.text == str)
{
return;
}
shipNumberTextPro.text = str;
}
public async Task<bool> ActivationRoom()
{
return await miner_jiekou.instance.MiningActivate(this.RoomId);

View File

@ -41,6 +41,8 @@ public class miningActivate : MonoBehaviour
isSucceed = false;
}
Promptmgr.Instance.PromptBubble(miningActivateResponse.message);
return isSucceed;
}
}

View File

@ -38,13 +38,13 @@ public class MiningConfigResponse:myResponse
public class MinngConfigData
{
public int Id { get; set; }
public int Type { get; set; }
public string Name { get; set; }
public int Level { get; set; }
public float Price { get; set; }
public float Yield { get; set; }
public int YieldCycle { get; set; }
public int ActivateLimit { get; set; }
public int id { get; set; }
public int type { get; set; }
public string name { get; set; }
public int level { get; set; }
public float price { get; set; }
public float yield { get; set; }
public int yield_cycle { get; set; }
public int activate_limit { get; set; }
public int activate_count { get; set; }
}