| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年8月6日 |
| | | // [ Date ]: Friday, September 12, 2025 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | using UnityEngine; |
| | | using LitJson; |
| | | |
| | | public partial class DamageNumConfig : ConfigBase<string, DamageNumConfig> |
| | | public partial class DamageNumConfig : ConfigBase<int, DamageNumConfig> |
| | | { |
| | | static DamageNumConfig() |
| | | { |
| | |
| | | visit = true; |
| | | } |
| | | |
| | | public string id; |
| | | public int TypeID; |
| | | public int prefix; |
| | | public int plus; |
| | | public int minus; |
| | | public int[] nums; |
| | | |
| | | public override string LoadKey(string _key) |
| | | public override int LoadKey(string _key) |
| | | { |
| | | string key = GetKey(_key); |
| | | int key = GetKey(_key); |
| | | return key; |
| | | } |
| | | |
| | |
| | | { |
| | | try { |
| | | string[] tables = input.Split('\t'); |
| | | id = tables[0]; |
| | | int.TryParse(tables[0],out TypeID); |
| | | |
| | | int.TryParse(tables[1],out prefix); |
| | | |