From 01846ef241fd8a361953e60bc71bf4f0ab43f1bd Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Wed, 8 Jan 2025 11:59:29 +0800 Subject: [PATCH 1/4] jez --- meng_yao/Assets/Config/mangyaotast.json | 16 + meng_yao/Assets/Prefabs/charatar/jez.prefab | 10 +- .../Prefabs/ui/scene_main/card_jez.prefab | 687 ++++++++++++++++++ .../ui/scene_main/card_jez.prefab.meta | 7 + .../Assets/Scenes/New/Scene_map_1gl.unity | 3 + 5 files changed, 718 insertions(+), 5 deletions(-) create mode 100644 meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab create mode 100644 meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab.meta diff --git a/meng_yao/Assets/Config/mangyaotast.json b/meng_yao/Assets/Config/mangyaotast.json index db071b0b..9f6ed472 100644 --- a/meng_yao/Assets/Config/mangyaotast.json +++ b/meng_yao/Assets/Config/mangyaotast.json @@ -174,5 +174,21 @@ "AttackCD": "2.5", "CritRate": "0.05", "CriticalHitRateBonus": "0" + }, +{ + "Id": "M_J_004", + "Name": "金萌妖-04", + "Quality": "2", + "Elements": "0", + "Info": "射出一个会返回的“回旋镖”,攻击移动中触碰到的所有敌人。", + "SkillId": "3001", + "AttackType": "2", + "AttackActionType": "2", + "MaxAttack": "12", + "MinAttack": "10", + "AttackRange": "5", + "AttackCD": "2.5", + "CritRate": "0.08", + "CriticalHitRateBonus": "0" } ] \ No newline at end of file diff --git a/meng_yao/Assets/Prefabs/charatar/jez.prefab b/meng_yao/Assets/Prefabs/charatar/jez.prefab index 910aff37..218a0872 100644 --- a/meng_yao/Assets/Prefabs/charatar/jez.prefab +++ b/meng_yao/Assets/Prefabs/charatar/jez.prefab @@ -223,8 +223,8 @@ Transform: 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_LocalPosition: {x: 0, y: 0.7, z: 0} + m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8433650275485930555} @@ -366,7 +366,7 @@ MonoBehaviour: damageTyp: 2 attackCooldown: 1 bulltes: [] - animator: {fileID: 0} + animator: {fileID: 3097922873946836253} fireAnis: [] BulletStartPos: {fileID: 2562350995381512747} AttackSpeed: 1 @@ -472,8 +472,8 @@ MonoBehaviour: m_EditorClassIdentifier: retbutton: {fileID: 0} ClosureObj: {fileID: 0} - id: M_M_001 - Name: "\u6728\u840C\u5996-01" + id: M_J_004 + Name: "\u91D1\u840C\u5996-04" camp: 0 hp: 100 maxHp: 100 diff --git a/meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab b/meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab new file mode 100644 index 00000000..2ae5d069 --- /dev/null +++ b/meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab @@ -0,0 +1,687 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &4405472214899975644 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 671171724868939146} + - component: {fileID: 1337899852504724184} + - component: {fileID: 5157915909928442228} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &671171724868939146 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4405472214899975644} + 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: 5508436328356301500} + 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: -67.7, y: 195} + m_SizeDelta: {x: 40, y: 40} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &1337899852504724184 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4405472214899975644} + m_CullTransparentMesh: 1 +--- !u!114 &5157915909928442228 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4405472214899975644} + 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: d7e26ca505e81024daeaa6f8c2d39db3, 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 &5508436327076020825 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436327076020838} + - component: {fileID: 5508436327076020836} + - component: {fileID: 5508436327076020839} + m_Layer: 5 + m_Name: gaoliang + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5508436327076020838 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327076020825} + 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: 5508436327438263540} + 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 &5508436327076020836 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327076020825} + m_CullTransparentMesh: 1 +--- !u!114 &5508436327076020839 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327076020825} + 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 &5508436327155225751 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436327155225748} + - component: {fileID: 5508436327155225746} + - component: {fileID: 5508436327155225749} + 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 &5508436327155225748 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327155225751} + 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: 5508436328356301500} + 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 &5508436327155225746 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327155225751} + m_CullTransparentMesh: 1 +--- !u!114 &5508436327155225749 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327155225751} + 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: "\u91D1\u86FE" +--- !u!1 &5508436327438263543 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436327438263540} + - component: {fileID: 5508436327438263539} + - component: {fileID: 5508436327438263538} + - component: {fileID: 5508436327438263541} + - component: {fileID: 5508436327438263536} + m_Layer: 5 + m_Name: card_jez + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5508436327438263540 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327438263543} + 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: 5508436328304430210} + - {fileID: 5508436327076020838} + - {fileID: 5508436328771375861} + 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 &5508436327438263539 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327438263543} + m_CullTransparentMesh: 1 +--- !u!114 &5508436327438263538 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327438263543} + 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: 0 + m_TargetGraphic: {fileID: 0} + toggleTransition: 1 + graphic: {fileID: 5508436327076020839} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 0 +--- !u!114 &5508436327438263541 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327438263543} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c80ec7342ba0b09448680eb2ed376380, type: 3} + m_Name: + m_EditorClassIdentifier: + cardIconImage: {fileID: 5508436328917121101} + cardicon: {fileID: 21300000, guid: d8b1c79bf0dd941448fff97989471fce, type: 3} + targetTag: tower + mengyaoPrefab: {fileID: 8433650275485930554, guid: 6b6027f8de5772a40a1a016917855070, type: 3} + mask: {fileID: 5508436328771375860} + mY: {fileID: 0} +--- !u!114 &5508436327438263536 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436327438263543} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c64989b3a75e1d44e8692a17ba9c22ea, type: 3} + m_Name: + m_EditorClassIdentifier: + mengyaoid: M_J_004 + shuxing: 0 +--- !u!1 &5508436328304430213 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436328304430210} + - component: {fileID: 5508436328304430209} + - component: {fileID: 5508436328304430208} + - component: {fileID: 5508436328304430211} + m_Layer: 5 + m_Name: info + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5508436328304430210 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328304430213} + 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: 5508436328917121100} + - {fileID: 5508436328356301500} + m_Father: {fileID: 5508436327438263540} + 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 &5508436328304430209 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328304430213} + m_CullTransparentMesh: 1 +--- !u!114 &5508436328304430208 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328304430213} + 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 &5508436328304430211 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328304430213} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ShowMaskGraphic: 1 +--- !u!1 &5508436328356301503 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436328356301500} + - component: {fileID: 5508436328356301498} + - component: {fileID: 5508436328356301501} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5508436328356301500 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328356301503} + 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: 5508436327155225748} + - {fileID: 671171724868939146} + m_Father: {fileID: 5508436328304430210} + 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 &5508436328356301498 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328356301503} + m_CullTransparentMesh: 1 +--- !u!114 &5508436328356301501 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328356301503} + 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 &5508436328771375860 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436328771375861} + - component: {fileID: 5508436328771375859} + - component: {fileID: 5508436328771375858} + m_Layer: 5 + m_Name: mash + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5508436328771375861 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328771375860} + 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: 5508436327438263540} + 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 &5508436328771375859 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328771375860} + m_CullTransparentMesh: 1 +--- !u!114 &5508436328771375858 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328771375860} + 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 &5508436328917121103 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5508436328917121100} + - component: {fileID: 5508436328917121098} + - component: {fileID: 5508436328917121101} + m_Layer: 5 + m_Name: icon + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5508436328917121100 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328917121103} + 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: 5508436328304430210} + 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: -8, y: 59.6} + m_SizeDelta: {x: 555.6077, y: 493.7528} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &5508436328917121098 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328917121103} + m_CullTransparentMesh: 1 +--- !u!114 &5508436328917121101 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5508436328917121103} + 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: d8b1c79bf0dd941448fff97989471fce, 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 diff --git a/meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab.meta b/meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab.meta new file mode 100644 index 00000000..f02f285d --- /dev/null +++ b/meng_yao/Assets/Prefabs/ui/scene_main/card_jez.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b11fe0bf453623a4c847b716ebbed379 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Scenes/New/Scene_map_1gl.unity b/meng_yao/Assets/Scenes/New/Scene_map_1gl.unity index d4292a49..957816f7 100644 --- a/meng_yao/Assets/Scenes/New/Scene_map_1gl.unity +++ b/meng_yao/Assets/Scenes/New/Scene_map_1gl.unity @@ -5976,6 +5976,9 @@ MonoBehaviour: - id: M_T_001 prefab: {fileID: 8433650275485930554, guid: c06add8b28931e4448ca9673388595af, type: 3} cardprefab: {fileID: 5508436327438263543, guid: 93fef5acddd00004b9ba1f30ccd46c96, type: 3} + - id: M_J_004 + prefab: {fileID: 8433650275485930554, guid: 6b6027f8de5772a40a1a016917855070, type: 3} + cardprefab: {fileID: 5508436327438263543, guid: b11fe0bf453623a4c847b716ebbed379, type: 3} --- !u!114 &1910338487 MonoBehaviour: m_ObjectHideFlags: 0 From b2a0554da806add30ab37a7f7c7b148e85d1a572 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Wed, 8 Jan 2025 13:21:28 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/Config/MengYao_Skill_Date.txt | 47 ++++++++ .../Assets/Config/MengYao_Skill_Date.txt.meta | 7 ++ meng_yao/Assets/Editor.meta | 8 ++ meng_yao/Assets/Editor/Editor.meta | 8 ++ meng_yao/Assets/Editor/Editor/BaseEditor.cs | 22 ++++ .../Editor/BaseEditor.cs.meta} | 2 +- meng_yao/Assets/Editor/Editor/font.meta | 8 ++ .../Editor/Editor/font/TMPFontGenerator.cs | 70 ++++++++++++ .../Editor/font/TMPFontGenerator.cs.meta} | 2 +- meng_yao/Assets/Editor/__MACOSX.meta | 8 ++ meng_yao/Assets/Editor/__MACOSX/._Editor | Bin 0 -> 178 bytes meng_yao/Assets/Editor/__MACOSX/Editor.meta | 8 ++ .../Assets/Editor/__MACOSX/Editor/._font.meta | Bin 0 -> 178 bytes .../Prefabs/charatar/enemy/wood_Big.prefab | 10 +- .../Prefabs/charatar/enemy/wood_min.prefab | 10 +- meng_yao/Assets/Prefabs/charatar/laohu.prefab | 27 +++-- meng_yao/Assets/Scenes/New/Scene_map_1.unity | 29 +++-- .../Assets/script/A_Fight/SkillUp/SkillUp.cs | 105 +++++++++++------- .../script/A_Fight/SkillUp/cs_SkillUp.cs | 61 ---------- .../script/A_Fight/SkillUp/hhl_SkillUp.cs | 65 ----------- .../A_Fight/SkillUp/hhl_SkillUp.cs.meta | 11 -- .../script/A_Fight/SkillUp/jbf_SkillUp.cs | 63 ----------- .../script/A_Fight/SkillUp/laohuSkillUp.cs | 75 ------------- .../script/A_Fight/SkillUp/mkl_SkillUp.cs | 58 ---------- .../A_Fight/SkillUp/mkl_SkillUp.cs.meta | 11 -- .../script/A_Fight/SkillUp/mmg_SkillUp.cs | 59 ---------- .../A_Fight/SkillUp/mmg_SkillUp.cs.meta | 11 -- .../script/A_Fight/SkillUp/qieSkillUp.cs | 59 ---------- .../script/A_Fight/SkillUp/qieSkillUp.cs.meta | 11 -- .../script/A_Fight/SkillUp/ssm_SkillUp.cs | 88 --------------- .../A_Fight/SkillUp/ssm_SkillUp.cs.meta | 11 -- .../script/A_Fight/SkillUp/ssy_SkillUp.cs | 60 ---------- .../A_Fight/SkillUp/ssy_SkillUp.cs.meta | 11 -- .../script/A_Fight/SkillUp/txm_SkillUp.cs | 63 ----------- .../A_Fight/SkillUp/txm_SkillUp.cs.meta | 11 -- .../script/A_Fight/json/Mengyao_Skill_Date.cs | 39 +++++++ .../Mengyao_Skill_Date.cs.meta} | 5 +- 37 files changed, 343 insertions(+), 800 deletions(-) create mode 100644 meng_yao/Assets/Config/MengYao_Skill_Date.txt create mode 100644 meng_yao/Assets/Config/MengYao_Skill_Date.txt.meta create mode 100644 meng_yao/Assets/Editor.meta create mode 100644 meng_yao/Assets/Editor/Editor.meta create mode 100644 meng_yao/Assets/Editor/Editor/BaseEditor.cs rename meng_yao/Assets/{script/A_Fight/SkillUp/jbf_SkillUp.cs.meta => Editor/Editor/BaseEditor.cs.meta} (83%) create mode 100644 meng_yao/Assets/Editor/Editor/font.meta create mode 100644 meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs rename meng_yao/Assets/{script/A_Fight/SkillUp/cs_SkillUp.cs.meta => Editor/Editor/font/TMPFontGenerator.cs.meta} (83%) create mode 100644 meng_yao/Assets/Editor/__MACOSX.meta create mode 100644 meng_yao/Assets/Editor/__MACOSX/._Editor create mode 100644 meng_yao/Assets/Editor/__MACOSX/Editor.meta create mode 100644 meng_yao/Assets/Editor/__MACOSX/Editor/._font.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs.meta delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs delete mode 100644 meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs.meta create mode 100644 meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs rename meng_yao/Assets/script/A_Fight/{SkillUp/laohuSkillUp.cs.meta => json/Mengyao_Skill_Date.cs.meta} (56%) diff --git a/meng_yao/Assets/Config/MengYao_Skill_Date.txt b/meng_yao/Assets/Config/MengYao_Skill_Date.txt new file mode 100644 index 00000000..e8ce669b --- /dev/null +++ b/meng_yao/Assets/Config/MengYao_Skill_Date.txt @@ -0,0 +1,47 @@ +{ + "M_H_001": { + "M_H_001_S_1": { + "1": { + "Range":2 + }, + "2": { + "DamageBuff": 0.15 + }, + "3": { + "SkillList": ["skill_0"], + "Range": -1 + }, + "4": { + "DamageBuff": 0.35 + }, + "5": { + "AttackCooldown": -0.5, + "AttackContinues":-0.5 + } + }, + "M_H_001_S_2": { + "1": { + "SkillList": [ + "skill_1" + ], + "DamageBuff": -0.5 + }, + "2": { + "DamageBuff": 0.15 + }, + "3": { + "SkillList": [ + "skill_2" + ], + "AttackCooldown": 0.05 + }, + "4": { + "DamageBuff": 0.35 + }, + "5": { + "AttackCooldown": 0.3, + "AttackContinues": 0.5 + } + } + } +} \ No newline at end of file diff --git a/meng_yao/Assets/Config/MengYao_Skill_Date.txt.meta b/meng_yao/Assets/Config/MengYao_Skill_Date.txt.meta new file mode 100644 index 00000000..675fac44 --- /dev/null +++ b/meng_yao/Assets/Config/MengYao_Skill_Date.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 580cfe3a34ab71847870fa8a367f7e93 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Editor.meta b/meng_yao/Assets/Editor.meta new file mode 100644 index 00000000..7ba4e4a5 --- /dev/null +++ b/meng_yao/Assets/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1103e900f5bb65c488bf44cc7e57e727 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Editor/Editor.meta b/meng_yao/Assets/Editor/Editor.meta new file mode 100644 index 00000000..ab62b9a6 --- /dev/null +++ b/meng_yao/Assets/Editor/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1c5eadd36a678d24bb89ca26fdc281f3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Editor/Editor/BaseEditor.cs b/meng_yao/Assets/Editor/Editor/BaseEditor.cs new file mode 100644 index 00000000..765fa78f --- /dev/null +++ b/meng_yao/Assets/Editor/Editor/BaseEditor.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEditor; +using UnityEngine; + +[CustomEditor(typeof(Base), true)] +public class BaseEditor : Editor +{ + + public override void OnInspectorGUI() + { + // 获取目标对象 + Base layoutPor = (Base)target; + + // 显示静态描述内容 + // EditorGUILayout.LabelField("Description", EditorStyles.boldLabel); + EditorGUILayout.HelpBox(layoutPor.description, MessageType.Info); + + // 绘制默认属性 + DrawDefaultInspector(); + } +} \ No newline at end of file diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs.meta b/meng_yao/Assets/Editor/Editor/BaseEditor.cs.meta similarity index 83% rename from meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs.meta rename to meng_yao/Assets/Editor/Editor/BaseEditor.cs.meta index 92912cfb..50072e81 100644 --- a/meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs.meta +++ b/meng_yao/Assets/Editor/Editor/BaseEditor.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 01f8800bc22567f4890b6a945671d07b +guid: a8989a58477334fc88970308aa31745a MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/meng_yao/Assets/Editor/Editor/font.meta b/meng_yao/Assets/Editor/Editor/font.meta new file mode 100644 index 00000000..fab462bb --- /dev/null +++ b/meng_yao/Assets/Editor/Editor/font.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5af7f82681e0249cb929c96cabbc342b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs b/meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs new file mode 100644 index 00000000..2da90a86 --- /dev/null +++ b/meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs @@ -0,0 +1,70 @@ +using System.Text; +using TMPro; +using UnityEditor; +using UnityEngine; + +public class TMPChineseFontGenerator : MonoBehaviour +{ + [MenuItem("Tools/渲染字体")] + public static void GenerateTMPFontWithChinese() + { + // 字体文件路径(替换为实际路径) + string fontPath = "Assets/Font/Songti.ttc"; + string outputPath = "Assets/Font/GeneratedChineseFont.asset"; + + // 加载字体文件 + Font font = AssetDatabase.LoadAssetAtPath(fontPath); + if (font == null) + { + Debug.LogError($"Font not found at path: {fontPath}"); + return; + } + + // 创建字体资产 + TMP_FontAsset fontAsset = TMP_FontAsset.CreateFontAsset(font); + + // 获取常用汉字字符集 + string chineseRange = GetChineseCharacters(); + + // 添加汉字字符到字体资产 + AddCharactersToFontAsset(fontAsset, chineseRange); + + // 保存字体资产 + AssetDatabase.CreateAsset(fontAsset, outputPath); + AssetDatabase.SaveAssets(); + + Debug.Log($"包含中文字符的字体资产在: {outputPath}"); + } + + // 获取常用汉字字符集 + private static string GetChineseCharacters() + { + int start = 0x4e00; // 汉字起始点 + int end = 0x9fff; // 汉字结束点 + + StringBuilder characters = new StringBuilder(); + for (int i = start; i <= end; i++) + { + characters.Append((char)i); + } + return characters.ToString(); + } + + // 添加字符到字体资产 + private static void AddCharactersToFontAsset(TMP_FontAsset fontAsset, string characters) + { + // 遍历每个字符并尝试添加 + foreach (char c in characters) + { + if (!fontAsset.HasCharacter(c)) + { + fontAsset.characterLookupTable.TryGetValue(c, out TMP_Character tmpCharacter); + + if (tmpCharacter == null) + { + Debug.Log($"Character '{c}' 无法添加。确保字体支持此字符。"); + } + } + } + } +} \ No newline at end of file diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs.meta b/meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs.meta similarity index 83% rename from meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs.meta rename to meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs.meta index 030d2481..a8c929d0 100644 --- a/meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs.meta +++ b/meng_yao/Assets/Editor/Editor/font/TMPFontGenerator.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 95b03e0e868ee84449f3fbfa7423a3a5 +guid: 58bd507c3732f498fb421fd0e5878d9c MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/meng_yao/Assets/Editor/__MACOSX.meta b/meng_yao/Assets/Editor/__MACOSX.meta new file mode 100644 index 00000000..cabb40d3 --- /dev/null +++ b/meng_yao/Assets/Editor/__MACOSX.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8be33d5cadce7e44ea28b89be20d74ab +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Editor/__MACOSX/._Editor b/meng_yao/Assets/Editor/__MACOSX/._Editor new file mode 100644 index 0000000000000000000000000000000000000000..383636810168a2f3b61d8aa4697c769f7407cdbd GIT binary patch literal 178 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDI}aRU&8_?v*32;dkJ5(HHS(lG;wrO>o7 xBE&_L^K$Vqox1Ojhs@R)|o50+1L3ClDI}aRU&8_?v*32;dkJ5(HHS(lG;wrO>o7 zBE&_L^K speedOfBullets; @@ -83,36 +88,66 @@ public class SkillUp : Fun // 洢ܼӳЧ private Dictionary> skillUpgrades = new Dictionary>(); - public virtual void Start() + private void Awake() { - // ʼܼӳ - InitializeSkillUpgrades(); + description = "ºҫʹ÷xxxxxxxx"; } - // ʼܼӳ - private void InitializeSkillUpgrades() + public void Up(string mengyao_id,string skill_id,string level) { - // 1ļӳЧ - skillUpgrades["Skill_1"] = new Dictionary - { - { 1, Skill_1_1 }, - { 2, Skill_1_2 }, - { 3, Skill_1_3 }, - { 4, Skill_1_4 }, - { 5, Skill_1_5 } - }; - // 2ļӳЧ - skillUpgrades["Skill_2"] = new Dictionary + Debug.LogError(GlobalObj.GetComponent().parsedData.Count); + SkillLevelData info = GlobalObj.GetComponent().parsedData[mengyao_id][skill_id][level]; + //Χӳ + AttackRange += info.Range; + Debug.Log("Χ+"+ info.Range +"||"+ attackRange.ToString()+"================================="); + //ȴӳ + AttackCooldown += info.AttackCooldown; + //ʱӳ + AttackDuration += info.AttackContinues; + //ӵӳ + NumberOfBullets += info.numberOfBullets; + //ӵٶȼӳ + SpeedOfBullets += info.speedOfBullets; + + //˺ӳ + DamageUp += info.DamageBuff; + + //ʱʼӳ + CriticalRate += info.CriticalRate; + //˺ʼӳ + CriticalDamage += info.CriticalDamage; + + //Կ˺ӳ + DamageOfSky += info.DamageOfSky; + //Ե˺ӳ + DamageOfland += info.DamageOfland; + //Դ͵˼ӳ + DamageOfBig += info.DamageOfBig; + //С͵˼ӳ + DamageOfMin += info.DamageOfMin; + //Լٵ˼ӳ + DamageOfSlow += info.DamageOfSlow; + attack.SetAttackRange(); + + if (info.SkillList != null) { - { 1, Skill_2_1 }, - { 2, Skill_2_2 }, - { 3, Skill_2_3 }, - { 4, Skill_2_4 }, - { 5, Skill_2_5 } - }; + foreach (string SkillId in info.SkillList) + { + if (SkillId == "skill_0") + { + // һѣ Buff1룬20%ʣ + Action decelerationBuff = CreateDecelerationBuff(1f, 0.2f); + + // Buff ӵҵ storageBuff б + role.AddBuff(role.storageBuff, decelerationBuff); + //Debug.LogError("ʹü1-3"); + } + } + } } + /// /// ʹü /// @@ -126,26 +161,16 @@ public class SkillUp : Fun if (skillUpgrades.ContainsKey(skillKey) && skillUpgrades[skillKey].ContainsKey(level)) { // ӦܵȼЧ - skillUpgrades[skillKey][level].Invoke(); + //[skillKey][level].Invoke(); + + Debug.LogError("ʼʹ"+role.id + "_S_" + index.ToString()); + Debug.LogError("role.id" + role.id +"index" + index.ToString()+"level"+ level.ToString()); + Up(role.id, role.id + "_S_" + index.ToString(), level.ToString()); + Debug.LogError("ʹ"+role.id + "_S_" + index.ToString()); } else { Debug.LogWarning("ûܻ߼ܵȼЧ"); } } - - public virtual void Skill_1_1() { } - public virtual void Skill_1_2() { DamageUp *= 1.15f; Debug.LogError("ʹü1-2"); } - public virtual void Skill_1_3() { } - public virtual void Skill_1_4() { DamageUp *= 1.35f; Debug.LogError("ʹü1-4"); } - public virtual void Skill_1_5() { } - - public virtual void Skill_2_1() { } - public virtual void Skill_2_2() { DamageUp *= 1.15f; Debug.LogError("ʹü2-2"); } - public virtual void Skill_2_3() { } - public virtual void Skill_2_4() { DamageUp *= 1.35f; Debug.LogError("ʹü2-4"); } - public virtual void Skill_2_5() { } -} - - - +} \ No newline at end of file diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs deleted file mode 100644 index 0ca7764b..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/cs_SkillUp.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class cs_SkillUp : SkillUp -{ - - - /// - ///Կеĵ˶30%˺ - /// - public override void Skill_1_1() - { - base.DamageOfSky+=0.3f; - } - /// - /// CD25%ɢǶ25%̼1 - /// - public override void Skill_1_3() - { - base.attack.Angle *= (1 + 0.25f);//ɢǶ - AttackCooldown -= 0.25f; - base.AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// ӵٶ25%̼1" - /// - public override void Skill_1_5() - { - base.speedOfBullets+=0.25f; - base.AttackRange = -1; - attack.SetAttackRange(); - } - - - /// - /// Եɶ30%˺ - /// - public override void Skill_2_1() - { - base.DamageOfland += 0.3f; - } - /// - /// CD15%ɢǶȸ - /// - public override void Skill_2_3() - { - AttackCooldown -= 0.15f; - base.attack.Angle *= (1 + 0.25f);//ɢǶ - Debug.Log("ɢǶ"); - } - /// - /// ԼĿɶ20%˺CD5% - /// - public override void Skill_2_5() - { - base.DamageOfSlow += 0.2f; - base.AttackCooldown += 0.05f; - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs deleted file mode 100644 index 452b5bc9..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEngine; - -public class hhl_SkillUp : SkillUp -{ - - - /// - ///CD25% - /// - public override void Skill_1_1() - { - base.AttackCooldown -= 0.25f; - } - /// - /// ٶ15%CD5% - /// - public override void Skill_1_3() - { - base.speedOfBullets += 0.15f; - base.AttackCooldown += 0.05f; - } - /// - /// ٶ30%CD5%" - /// - public override void Skill_1_5() - { - base.speedOfBullets+=0.3f; - base.AttackCooldown += 0.05f; - } - - - /// - /// ˺Χ1 - /// - public override void Skill_2_1() - { - attack.BoomRange += 0.5f; - } - /// - /// Դ͵˶30%˺̼1 - /// - public override void Skill_2_3() - { - DamageOfBig += 0.3f; - AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// ˺ĵ˻ԭѣ1룬̼1 - /// - public override void Skill_2_5() - { - base.AttackRange = -1; - attack.SetAttackRange(); - // һѣ Buff1룬20%ʣ - Action decelerationBuff = CreateDecelerationBuff(1f, 1f); - - // Buff ӵҵ storageBuff б - role.AddBuff(role.storageBuff, decelerationBuff); - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs.meta deleted file mode 100644 index b0d9acb2..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/hhl_SkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7daf04d628022bd4aaac8e5b33e8d9b9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs deleted file mode 100644 index 0d21e571..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/jbf_SkillUp.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEngine; - -public class jbf_SkillUp : SkillUp -{ - - /// - ///ijӳ1 - /// - public override void Skill_1_1() - { - Debug.Log("jijijijijijijijijijijijijijijijijijij111111"); - attack.bulletLengthAdd += 2; - - } - /// - /// 1ѵתٶȼ10% - /// - public override void Skill_1_3() - { - Debug.Log("jijijijijijijijijijijijijijijijijijij"); - attack.BulletNumber += 1; - attack.roleBulletSpeedAdd -= 0.1f; - } - /// - /// ÿι30%ħ˺,תٶȼ10% - /// - public override void Skill_1_5() - { - attack.haveAddDamage = true; - attack.AdddamageType = DamageType.magicDamage; - base.attack.roleBulletSpeedAdd -= 0.1f; - - } - - - /// - /// תٶ25% - /// - public override void Skill_2_1() - { - base.attack.roleBulletSpeedAdd += 0.25f; - } - /// - /// 1ѵ,תٶȼ10% - /// - public override void Skill_2_3() - { - Debug.Log("jijijijijijijijijijijijijijijijijijij"); - attack.BulletNumber += 1; - base.attack.roleBulletSpeedAdd -= 0.1f; - } - /// - /// תٶ40% - /// - public override void Skill_2_5() - { - base.attack.roleBulletSpeedAdd += 0.4f; - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs deleted file mode 100644 index 44b1aa9f..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEngine; -using static Google.Protobuf.Reflection.ExtensionRangeOptions.Types; - -public class laohuSkillUp :SkillUp -{ - /// - /// 2λ - /// - public override void Skill_1_1() - { - base.AttackRange = 2; - attack.SetAttackRange(); - Debug.LogError("ʹü1-1"); - } - /// - /// ˺ĵ20%ԭѣ1롣̼1 - /// - public override void Skill_1_3() - { - base.AttackRange = -1; - attack.SetAttackRange(); - // һѣ Buff1룬20%ʣ - Action decelerationBuff = CreateDecelerationBuff(1f, 0.2f); - - // Buff ӵҵ storageBuff б - role.AddBuff(role.storageBuff,decelerationBuff); - Debug.LogError("ʹü1-3"); - } - /// - /// ȴʱ50%,ʱ50% - /// - public override void Skill_1_5() - { - base.AttackCooldown += -0.5f; - base.AttackDuration += -0.5f; - - Debug.LogError("ʹü1-5"); - } - - - /// - /// ĻɢΪ3ÿ˺50% - /// - public override void Skill_2_1() - { - base.NumberOfBullets += 2; - base.DamageUp += -0.5f; - Debug.LogError("ʹü2-1"); - } - /// - /// ͵20%ƶٶ,CD5% - /// - public override void Skill_2_3() - { - base.AttackCooldown += 0.05f; - //buff - Action decelerationBuff = CreateSlowDownBuff(0.2f, 3f); - // Buff ӵҵ storageBuff б - role.AddBuff(role.storageBuff, decelerationBuff); - Debug.LogError("ʹü2-3"); - } - /// - /// ȴʱ30%,ʱ50% - /// - public override void Skill_2_5() - { - base.AttackCooldown += 0.3f; - base.AttackDuration += 0.5f; - Debug.LogError("ʹü2-5"); - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs deleted file mode 100644 index 35f7c344..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class mkl_SkillUp : SkillUp -{ - /// - ///ӵٶ30% - /// - public override void Skill_1_1() - { - base.SpeedOfBullets = 0.3f; - - } - /// - /// С͵40%˺CD5% - /// - public override void Skill_1_3() - { - base.DamageOfMin += 0.4f; - AttackCooldown += 0.05f; - } - /// - /// ÿι20% ̼1" - /// - public override void Skill_1_5() - { - base.CriticalRate += 0.2f; - base.AttackRange = -1; - attack.SetAttackRange(); - } - - - /// - /// CD25% - /// - public override void Skill_2_1() - { - base.AttackCooldown += -0.25f; - } - /// - /// С͵25%˺̼1 - /// - public override void Skill_2_3() - { - base.DamageOfMin += 0.25f; - base.AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// ÿι20%ʣCD5% - /// - public override void Skill_2_5() - { - base.CriticalRate += 0.2f; - base.AttackCooldown += 0.05f; - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs.meta deleted file mode 100644 index 6a8d444d..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/mkl_SkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cf06a056a8f837740a4fca76de3a5ed5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs deleted file mode 100644 index da9305cb..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class mmg_SkillUp : SkillUp -{ - /// - ///CD25% - /// - public override void Skill_1_1() - { - base.AttackCooldown -= 0.25f; - - } - /// - /// 2λãCD5% - /// - public override void Skill_1_3() - { - - AttackCooldown += 0.05f; - base.AttackRange = 2; - attack.SetAttackRange(); - } - /// - /// ӵ20%ٶȣCD5% - /// - public override void Skill_1_5() - { - AttackCooldown += 0.05f; - base.attack.roleBulletSpeedAdd += 0.2f; - } - - - /// - /// ÿ2ӵιΧ - /// - public override void Skill_2_1() - { - base.attack.BulletNumber += 2; - base.attack.Angle += 20; - } - /// - /// С͵25%˺CD5% - /// - public override void Skill_2_3() - { - base.DamageOfMin += 0.25f; - AttackCooldown += 0.05f; - } - /// - /// С͵40%˺CD5% - /// - public override void Skill_2_5() - { - base.DamageOfMin += 0.4f; - base.AttackCooldown += 0.05f; - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs.meta deleted file mode 100644 index 8366e1f9..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/mmg_SkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4343d5a9d3f9c4246bb691da4aaa144d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs deleted file mode 100644 index 78603d61..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class qieSkillUp : SkillUp -{ - /// - /// CD25% - /// - public override void Skill_1_1() - { - base.AttackCooldown += -0.25f; - } - /// - /// ӵ20%ٶȡ̼1 - /// - public override void Skill_1_3() - { - base.SpeedOfBullets += 0.2f; - base.AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// Դڼٵĵɶ30%˺ CD5% - /// - public override void Skill_1_5() - { - base.AttackCooldown += 0.05f; - base.DamageUp += 0.3f; - } - - - /// - /// Կе25%˺ - /// - public override void Skill_2_1() - { - base.DamageOfSky += 0.25f; - } - /// - /// С͵25%˺̼1 - /// - public override void Skill_2_3() - { - //base.AttackCooldown += 0.75f; - DamageOfMin += 0.25f; - base.AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// ÿι20%ʣCD5% - /// - public override void Skill_2_5() - { - Debug.Log("_2_5"); - base.CriticalRate += 0.2f; - base.AttackCooldown += 0.05f; - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs.meta deleted file mode 100644 index de3eb492..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/qieSkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0f2e2ca90067ba742b2ebdc8e467e4bd -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs deleted file mode 100644 index 4928de16..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEngine; - -public class ssm_SkillUp : SkillUp -{ - /// - /// 1λ - /// - /// - private float poisonDuration = 10;//жʱ - private float poisonInterval = 2;//ж - private float poisonDamage = 10;//ж˺ - Action decelerationBuff; - public override void Start() - { - base.Start(); - - decelerationBuff = CreatePoisonBuff(poisonDuration,poisonInterval,poisonDamage,role); - - // Buff ӵҵ storageBuff б - role.AddBuff(role.storageBuff, decelerationBuff); - - } - - - - public override void Skill_1_1() - { - base.AttackRange = 1; - attack.SetAttackRange(); - } - /// - /// CD10% - /// - public override void Skill_1_3() - { - - base.AttackCooldown += 0.1f; - } - /// - /// ÿ3CD5% - /// - public override void Skill_1_5() - { - attack.BulletNumber = 3; - - } - - - /// - /// жܵ˺20% - /// - public override void Skill_2_1() - { - poisonDamage *= 1.2f; - SetPoisonBuff(); - } - /// - /// жҩЧʱ30% CD5% - /// - public override void Skill_2_3() - { - base.AttackCooldown += 0.05f; - poisonInterval *= 0.7f; - SetPoisonBuff(); - - } - /// - /// жܵ˺50%,CD5% - /// - public override void Skill_2_5() - { - - base.AttackCooldown += 0.05f; - poisonDamage *= 1.5f; - SetPoisonBuff(); - } - - private void SetPoisonBuff()//buff - { - role.RemoveBuff(role.storageBuff, decelerationBuff); - decelerationBuff = CreatePoisonBuff(poisonDuration, poisonInterval, poisonDamage, role); - role.AddBuff(role.storageBuff, decelerationBuff); - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs.meta deleted file mode 100644 index 00f7d751..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/ssm_SkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: be1afb412b17ae74a9039a00d02170c6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs deleted file mode 100644 index b6c76bd3..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class ssy_SkillUp : SkillUp -{ - /// - /// ӵе˺ѿΪ3Сӵ - /// - public override void Skill_1_1() - { - base.attack.splitNum = 3; - } - /// - /// ÿСӵ˺30%CD5% - /// - public override void Skill_1_3() - { - attack.SplitAttack *= (1 + 0.3f); - base.AttackCooldown += 0.05f; - } - /// - /// ÿ2ӵCD5% - /// - public override void Skill_1_5() - { - attack.BulletNumber = 2; - base.AttackCooldown += 0.05f; - - } - - - /// - /// С͵25%˺ - /// - public override void Skill_2_1() - { - base.DamageOfMin += 0.25f; - } - /// - /// CD25%̼1 - /// - public override void Skill_2_3() - { - base.AttackCooldown -= 0.25f; - - base.AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// С͵25%˺̼1 - /// - public override void Skill_2_5() - { - Debug.Log("_2_5"); - base.DamageOfMin += 0.25f; - base.AttackRange = -1; - attack.SetAttackRange(); - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs.meta deleted file mode 100644 index dc49a6dc..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/ssy_SkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: db9f9a8d581a5d84cabe3e2a10ee6b88 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs deleted file mode 100644 index 057901a9..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class txm_SkillUp : SkillUp -{ - /// - ///ʯеĵ3ٶȼ50% - /// - public override void Skill_1_1() - { - // һѣ Buff1룬20%ʣ - Action decelerationBuff = CreateSlowDownBuff(0.5f, 3f); - // Buff ӵҵ storageBuff б - role.AddBuff(role.storageBuff, decelerationBuff); - } - /// - /// ʯĽ˷Χ1,̼1 - /// - public override void Skill_1_3() - { - attack.BoomRange += 1; - base.AttackRange = -1; - attack.SetAttackRange(); - } - /// - /// ʯеĵ2ѣ״̬޷ƶ,̼1 - /// - public override void Skill_1_5() - { - base.AttackRange = -1; - Action decelerationBuff=CreateDecelerationBuff(2f,1f); - role.AddBuff(role.storageBuff, decelerationBuff); - } - - - /// - /// ʯٶ20% - /// - public override void Skill_2_1() - { - attack.roleBulletSpeedAdd += 0.2f; - } - /// - /// Χ2,CD5% - /// - public override void Skill_2_3() - { - base.AttackRange = 2; - base.AttackCooldown += 0.05f; - attack.SetAttackRange(); - - } - /// - /// ʯĽ˷Χ1,CD5% - /// - public override void Skill_2_5() - { - attack.BoomRange += 1; - base.AttackCooldown += 0.05f; - } -} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs.meta deleted file mode 100644 index 5e7cfccc..00000000 --- a/meng_yao/Assets/script/A_Fight/SkillUp/txm_SkillUp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 86e8e9ff089f20948a58bb7c69953871 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs b/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs new file mode 100644 index 00000000..0590d9ce --- /dev/null +++ b/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs @@ -0,0 +1,39 @@ +using LitJson; +using Newtonsoft.Json; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Mengyao_Skill_Date : JsonReadBase +{ + public string _Json = "{\r\n \"M_H_001\": {\r\n \"M_H_001_S_1\": {\r\n \"1\": {\r\n \"Range\":2\r\n },\r\n \"2\": {\r\n \"DamageBuff\": 0.15\r\n },\r\n \"3\": {\r\n \"SkillList\": [\"skill_0\"],\r\n \"Range\": -1\r\n },\r\n \"4\": {\r\n \"DamageBuff\": 0.35\r\n },\r\n \"5\": {\r\n \"AttackCooldown\": -0.5,\r\n \"AttackContinues\":-0.5\r\n }\r\n },\r\n \"M_H_001_S_2\": {\r\n \"1\": {\r\n \"SkillList\": [\r\n \"skill_1\"\r\n ],\r\n \"DamageBuff\": -0.5\r\n },\r\n \"2\": {\r\n \"DamageBuff\": 0.15\r\n },\r\n \"3\": {\r\n \"SkillList\": [\r\n \"skill_2\"\r\n ],\r\n \"AttackCooldown\": 0.05\r\n },\r\n \"4\": {\r\n \"DamageBuff\": 0.35\r\n },\r\n \"5\": {\r\n \"AttackCooldown\": 0.3,\r\n \"AttackContinues\": 0.5\r\n }\r\n }\r\n }\r\n}"; + public Dictionary>> parsedData; + void Awake() + { + print(_Json); + // JSON + parsedData = JsonConvert.DeserializeObject>>>(_Json); + } +} + + +[System.Serializable] +public class SkillLevelData +{ + public float DamageBuff = 0; // ˺ӳ + public float Range = 0; // Χӳ + public List SkillList = null;//Ч + public float AttackCooldown = 0; //ȴ + public float AttackContinues = 0; // + public int numberOfBullets = 0;//ӵӳ + public int speedOfBullets = 0;//ӵٶȼӳ + + public float CriticalRate = 0;//ʱʼӳ + public float CriticalDamage = 0;//˺ʼӳ + + public float DamageOfSky = 0f;//Կ˺ӳ + public float DamageOfland = 0f;//Ե˺ӳ + public float DamageOfBig = 0f;//Դ͵˼ӳ + public float DamageOfMin = 0f;//С͵˼ӳ + public float DamageOfSlow = 0f;//Լٵ˼ӳ +} diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs.meta b/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs.meta similarity index 56% rename from meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs.meta rename to meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs.meta index 30a02fc3..5a4d38a5 100644 --- a/meng_yao/Assets/script/A_Fight/SkillUp/laohuSkillUp.cs.meta +++ b/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs.meta @@ -1,9 +1,10 @@ fileFormatVersion: 2 -guid: b8d04d25bab1a3541925d4cc205ad1d8 +guid: 39d4d2c40e6ce1e45bb8069dc25b05e8 MonoImporter: externalObjects: {} serializedVersion: 2 - defaultReferences: [] + defaultReferences: + - _Json: {fileID: 4900000, guid: 580cfe3a34ab71847870fa8a367f7e93, type: 3} executionOrder: 0 icon: {instanceID: 0} userData: From 0d03241a5aac50eff2e763e0e1a4de8948ed207a Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Wed, 8 Jan 2025 13:31:18 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=8A=80=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/script/A_Fight/SkillUp/SkillUp.cs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs index d8cf9c69..9227a356 100644 --- a/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs +++ b/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs @@ -155,22 +155,6 @@ public class SkillUp : Fun /// ȼ public void UseSkill(int index, int level) { - string skillKey = $"Skill_{index}"; - - // жǷ - if (skillUpgrades.ContainsKey(skillKey) && skillUpgrades[skillKey].ContainsKey(level)) - { - // ӦܵȼЧ - //[skillKey][level].Invoke(); - - Debug.LogError("ʼʹ"+role.id + "_S_" + index.ToString()); - Debug.LogError("role.id" + role.id +"index" + index.ToString()+"level"+ level.ToString()); - Up(role.id, role.id + "_S_" + index.ToString(), level.ToString()); - Debug.LogError("ʹ"+role.id + "_S_" + index.ToString()); - } - else - { - Debug.LogWarning("ûܻ߼ܵȼЧ"); - } + Up(role.id, role.id + "_S_" + index.ToString(), level.ToString()); } } \ No newline at end of file From 597a4ca9cd2a15cf2bb3e15f0bed039994a71f68 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Wed, 8 Jan 2025 13:40:33 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=8A=80=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/Scenes/New/Scene_map_1.unity | 15 --------------- .../script/A_Fight/json/Mengyao_Skill_Date.cs | 12 +++++++++--- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/meng_yao/Assets/Scenes/New/Scene_map_1.unity b/meng_yao/Assets/Scenes/New/Scene_map_1.unity index 0bc7f41f..4cac5ab7 100644 --- a/meng_yao/Assets/Scenes/New/Scene_map_1.unity +++ b/meng_yao/Assets/Scenes/New/Scene_map_1.unity @@ -4372,7 +4372,6 @@ GameObject: - component: {fileID: 1337722729} - component: {fileID: 1337722730} - component: {fileID: 1337722731} - - component: {fileID: 1337722732} m_Layer: 0 m_Name: ReadJson m_TagString: Untagged @@ -4428,20 +4427,6 @@ MonoBehaviour: description: MapLevelJson: {fileID: 4900000, guid: b534002cbb7fddf4bb68f34fb1357ff3, type: 3} count: 0 ---- !u!114 &1337722732 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1337722728} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 39d4d2c40e6ce1e45bb8069dc25b05e8, type: 3} - m_Name: - m_EditorClassIdentifier: - description: - _Json: {fileID: 0} --- !u!1 &1342038372 GameObject: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs b/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs index 0590d9ce..2a983ce5 100644 --- a/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs +++ b/meng_yao/Assets/script/A_Fight/json/Mengyao_Skill_Date.cs @@ -6,13 +6,19 @@ using UnityEngine; public class Mengyao_Skill_Date : JsonReadBase { - public string _Json = "{\r\n \"M_H_001\": {\r\n \"M_H_001_S_1\": {\r\n \"1\": {\r\n \"Range\":2\r\n },\r\n \"2\": {\r\n \"DamageBuff\": 0.15\r\n },\r\n \"3\": {\r\n \"SkillList\": [\"skill_0\"],\r\n \"Range\": -1\r\n },\r\n \"4\": {\r\n \"DamageBuff\": 0.35\r\n },\r\n \"5\": {\r\n \"AttackCooldown\": -0.5,\r\n \"AttackContinues\":-0.5\r\n }\r\n },\r\n \"M_H_001_S_2\": {\r\n \"1\": {\r\n \"SkillList\": [\r\n \"skill_1\"\r\n ],\r\n \"DamageBuff\": -0.5\r\n },\r\n \"2\": {\r\n \"DamageBuff\": 0.15\r\n },\r\n \"3\": {\r\n \"SkillList\": [\r\n \"skill_2\"\r\n ],\r\n \"AttackCooldown\": 0.05\r\n },\r\n \"4\": {\r\n \"DamageBuff\": 0.35\r\n },\r\n \"5\": {\r\n \"AttackCooldown\": 0.3,\r\n \"AttackContinues\": 0.5\r\n }\r\n }\r\n }\r\n}"; + public TextAsset _Json; public Dictionary>> parsedData; void Awake() { - print(_Json); + // JSON - parsedData = JsonConvert.DeserializeObject>>>(_Json); + //parsedData = JsonConvert.DeserializeObject>>>(_Json.text.Trim()); + } + + void Start() + { + // JSON + parsedData = JsonConvert.DeserializeObject>>>(_Json.text.Trim()); } }