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 00000000..38363681 Binary files /dev/null and b/meng_yao/Assets/Editor/__MACOSX/._Editor differ diff --git a/meng_yao/Assets/Editor/__MACOSX/Editor.meta b/meng_yao/Assets/Editor/__MACOSX/Editor.meta new file mode 100644 index 00000000..551202dd --- /dev/null +++ b/meng_yao/Assets/Editor/__MACOSX/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a8808b675b86fd64d9ad4d6e99d13c35 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Editor/__MACOSX/Editor/._font.meta b/meng_yao/Assets/Editor/__MACOSX/Editor/._font.meta new file mode 100644 index 00000000..5ec0b2b7 Binary files /dev/null and b/meng_yao/Assets/Editor/__MACOSX/Editor/._font.meta differ diff --git a/meng_yao/Assets/Prefabs/charatar/enemy/wood_Big.prefab b/meng_yao/Assets/Prefabs/charatar/enemy/wood_Big.prefab index df8ddca9..d84ce86e 100644 --- a/meng_yao/Assets/Prefabs/charatar/enemy/wood_Big.prefab +++ b/meng_yao/Assets/Prefabs/charatar/enemy/wood_Big.prefab @@ -296,8 +296,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 28012bb73bbdd3a4f881dda28759bfa4, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: waypoints: _waypoints: - {fileID: 0} @@ -325,13 +324,12 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: id: Name: camp: 1 - hp: 20 - maxHp: 20 + hp: 1 + maxHp: 1 dieIndex: 1 Hpfiil: {fileID: 1566038940701374259} HpfiilYello: {fileID: 605146830908541898} diff --git a/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab b/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab index 12f661bc..56ab4bba 100644 --- a/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab +++ b/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab @@ -296,8 +296,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 28012bb73bbdd3a4f881dda28759bfa4, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: waypoints: _waypoints: - {fileID: 0} @@ -325,13 +324,12 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: id: Name: camp: 1 - hp: 20 - maxHp: 20 + hp: 1 + maxHp: 1 dieIndex: 1 Hpfiil: {fileID: 1566038940701374259} HpfiilYello: {fileID: 605146830908541898} diff --git a/meng_yao/Assets/Prefabs/charatar/laohu.prefab b/meng_yao/Assets/Prefabs/charatar/laohu.prefab index 9495237f..ccc68458 100644 --- a/meng_yao/Assets/Prefabs/charatar/laohu.prefab +++ b/meng_yao/Assets/Prefabs/charatar/laohu.prefab @@ -463,9 +463,17 @@ MonoBehaviour: AttackStayTime: 2 Target: {fileID: 0} characterClick: {fileID: 8940501394638592702} + Angle: 30 + splitNum: 2 + SplitAttack: 10 + RunRange: 3 + haveAddDamage: 0 + AdddamageType: 1 + BoomRange: 1 isAttack: 1 flag: 0 timer: 0 + bulletLengthAdd: 0 --- !u!61 &7445357650989261112 BoxCollider2D: m_ObjectHideFlags: 0 @@ -506,7 +514,7 @@ GameObject: - component: {fileID: -3836672401185760439} - component: {fileID: 1608620729910401442} - component: {fileID: 7351378797470834992} - - component: {fileID: 1061754087244483355} + - component: {fileID: -8090661455022979364} m_Layer: 0 m_Name: laohu m_TagString: Player @@ -558,8 +566,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: id: M_H_001 Name: "\u706B\u840C\u5996-01" camp: 0 @@ -583,6 +590,7 @@ MonoBehaviour: CritRate: 0.03 CriticalHitRateBonus: 0.25 killNum: 0 + isMoFa: 0 gold: 10 MaxAttack: 5 MinAttack: 4 @@ -602,22 +610,25 @@ MonoBehaviour: normalIndex: 0 isHit: 0 myTags: 0 - mySkillUp: {fileID: 1061754087244483355} + mySkillUp: {fileID: -8090661455022979364} IsDead: 0 HaveDieTime: 0 enemyId: + bulletAttackType: 0 moveSpeed: 0 MengyaoSprite: {fileID: 21300000, guid: d3d3d16c3383ae1468c21c193ac1d2e8, type: 3} SkillSprites: - {fileID: 21300000, guid: fdd1af82c4a2e3b43adb1ef595ec34d0, type: 3} - {fileID: 21300000, guid: 4043457f6fd1cda4eb486839f31d2806, type: 3} harmNumber: 0 + isSlowed: 0 Defense: 0 DamageToPlayer: 0 HealthPerLevel: 0 DefensePerLevel: 0 elementType: 3 defenseType: 0 + index: 0 --- !u!61 &-3836672401185760439 BoxCollider2D: m_ObjectHideFlags: 0 @@ -710,7 +721,7 @@ SpriteRenderer: m_WasSpriteAssigned: 0 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!114 &1061754087244483355 +--- !u!114 &-8090661455022979364 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -719,11 +730,10 @@ MonoBehaviour: m_GameObject: {fileID: 8433650275485930554} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b8d04d25bab1a3541925d4cc205ad1d8, type: 3} + m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx" role: {fileID: 8433650274028726420} attack: {fileID: 7276635428522831207} attackRange: 0 @@ -738,3 +748,4 @@ MonoBehaviour: DamageOfland: 0 DamageOfBig: 0 DamageOfMin: 0 + DamageOfSlow: 0 diff --git a/meng_yao/Assets/Scenes/New/Scene_map_1.unity b/meng_yao/Assets/Scenes/New/Scene_map_1.unity index 885a496a..06a83b28 100644 --- a/meng_yao/Assets/Scenes/New/Scene_map_1.unity +++ b/meng_yao/Assets/Scenes/New/Scene_map_1.unity @@ -1456,8 +1456,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: d98d344c0c9573d45a72a1677d806d7d, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: expNumber: 0 expNumberText: {fileID: 385770246} maxExpNumber: 20 @@ -3595,8 +3594,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 36d8b1f23f0ec174594a18d38154925d, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: mengyaoNumber: 3 inPlaceNumber: 0 btnObj: {fileID: 1942153352} @@ -4374,6 +4372,7 @@ GameObject: - component: {fileID: 1337722729} - component: {fileID: 1337722730} - component: {fileID: 1337722731} + - component: {fileID: 1337722732} m_Layer: 0 m_Name: ReadJson m_TagString: Untagged @@ -4408,6 +4407,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ef2ffa387be5c84478c8cf2baec66c02, type: 3} m_Name: m_EditorClassIdentifier: + description: m_Asset: {fileID: 4900000, guid: 6a6cdf5342b444d4fbff4fccbb54f98a, type: 3} NameAsset: {fileID: 4900000, guid: e414de6ecc2f57d4ba107a5433dd54f5, type: 3} LevelAsset: {fileID: 4900000, guid: 89bbacca41b409b4dbf238a43bbb2e4b, type: 3} @@ -4425,8 +4425,23 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: f1617263e713d804995e0d3f3073e0cb, type: 3} m_Name: m_EditorClassIdentifier: + 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 @@ -5523,8 +5538,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 55658941a61a95a449a60aa939a8c641, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: BloodText: {fileID: 1288391609} MaxHp: 20 NowShowInfo: {fileID: 0} @@ -5895,8 +5909,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 97664c5246bb0d242997921b3560d036, type: 3} m_Name: m_EditorClassIdentifier: - retbutton: {fileID: 0} - ClosureObj: {fileID: 0} + description: SpawnLocations: - {fileID: 734893407} enemysList: [] diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs index 53fe36fa..d8cf9c69 100644 --- a/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs +++ b/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs @@ -1,14 +1,18 @@ +using System; using System.Collections; using System.Collections.Generic; using UnityEngine; - +[ExecuteInEditMode] public class SkillUp : Fun { [Header("ɫű")] public Role role; [Header("ű")]public Attack attack; + // public string skill_id_1 = null; + // public string skill_id_2 = null; + [HideInInspector][Header("Χӳ")] public float attackRange = 0f; [HideInInspector] public float AttackRange @@ -59,6 +63,7 @@ public class SkillUp : Fun } [HideInInspector][Header("ӵٶȼӳ")] public float speedOfBullets = 0f; [HideInInspector] + public float SpeedOfBullets { get => 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: