|  |  | 
 |  |  | //-------------------------------------------------------- | 
 |  |  | //    [Author]:           YYL | 
 |  |  | //    [  Date ]:           2025年7月22日 | 
 |  |  | //-------------------------------------------------------- | 
 |  |  |  | 
 |  |  | using System.Collections.Generic; | 
 |  |  | using System.IO; | 
 |  |  | using System.Threading; | 
 |  |  | using System; | 
 |  |  | using UnityEngine; | 
 |  |  | using LitJson; | 
 |  |  |  | 
 |  |  | public partial class EffectConfig : ConfigBase<int, EffectConfig> | 
 |  |  | { | 
 |  |  |  | 
 |  |  |     public int id; | 
 |  |  |    public string packageName; | 
 |  |  |    public int isSpine; | 
 |  |  |    public string fxName; | 
 |  |  |    public int audio; | 
 |  |  |    public string nodeName; | 
 |  |  |    public int notShow; | 
 |  |  |    public int autoDestroy; | 
 |  |  |    public float destroyDelay; | 
 |  |  |  | 
 |  |  |     public override int LoadKey(string _key) | 
 |  |  |     { | 
 |  |  |         int key = GetKey(_key); | 
 |  |  |         return key; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public override void LoadConfig(string input) | 
 |  |  |     { | 
 |  |  |         try { | 
 |  |  |         string[] tables = input.Split('\t'); | 
 |  |  |         int.TryParse(tables[0],out id);  | 
 |  |  |  | 
 |  |  |          packageName = tables[1]; | 
 |  |  |  | 
 |  |  |          int.TryParse(tables[2],out isSpine);  | 
 |  |  |  | 
 |  |  |          fxName = tables[3]; | 
 |  |  |  | 
 |  |  |          int.TryParse(tables[4],out audio);  | 
 |  |  |  | 
 |  |  |          nodeName = tables[5]; | 
 |  |  |  | 
 |  |  |          int.TryParse(tables[6],out notShow);  | 
 |  |  |  | 
 |  |  |          int.TryParse(tables[7],out autoDestroy);  | 
 |  |  |  | 
 |  |  |          float.TryParse(tables[8],out destroyDelay);  | 
 |  |  |         } | 
 |  |  |         catch (Exception exception) | 
 |  |  |         { | 
 |  |  |             Debug.LogError(exception); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | //--------------------------------------------------------
 | 
 |  |  | //    [Author]:           YYL
 | 
 |  |  | //    [  Date ]:           2025年7月26日
 | 
 |  |  | //--------------------------------------------------------
 | 
 |  |  | 
 | 
 |  |  | using System.Collections.Generic;
 | 
 |  |  | using System;
 | 
 |  |  | using UnityEngine;
 | 
 |  |  | using LitJson;
 | 
 |  |  | 
 | 
 |  |  | public partial class EffectConfig : ConfigBase<int, EffectConfig>
 | 
 |  |  | {
 | 
 |  |  | 
 | 
 |  |  |     public int id;
 | 
 |  |  |    public string packageName;
 | 
 |  |  |    public int isSpine;
 | 
 |  |  |    public string fxName;
 | 
 |  |  |    public int audio;
 | 
 |  |  |    public string nodeName;
 | 
 |  |  |    public int notShow;
 | 
 |  |  |    public int autoDestroy;
 | 
 |  |  |    public float destroyDelay;
 | 
 |  |  | 
 | 
 |  |  |     public override int LoadKey(string _key)
 | 
 |  |  |     {
 | 
 |  |  |         int key = GetKey(_key);
 | 
 |  |  |         return key;
 | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  |     public override void LoadConfig(string input)
 | 
 |  |  |     {
 | 
 |  |  |         try {
 | 
 |  |  |         string[] tables = input.Split('\t');
 | 
 |  |  |         int.TryParse(tables[0],out id);  | 
 |  |  | 
 | 
 |  |  |          packageName = tables[1];
 | 
 |  |  | 
 | 
 |  |  |          int.TryParse(tables[2],out isSpine);  | 
 |  |  | 
 | 
 |  |  |          fxName = tables[3];
 | 
 |  |  | 
 | 
 |  |  |          int.TryParse(tables[4],out audio);  | 
 |  |  | 
 | 
 |  |  |          nodeName = tables[5];
 | 
 |  |  | 
 | 
 |  |  |          int.TryParse(tables[6],out notShow);  | 
 |  |  | 
 | 
 |  |  |          int.TryParse(tables[7],out autoDestroy);  | 
 |  |  | 
 | 
 |  |  |          float.TryParse(tables[8],out destroyDelay);  | 
 |  |  |         }
 | 
 |  |  |         catch (Exception exception)
 | 
 |  |  |         {
 | 
 |  |  |             Debug.LogError(exception);
 | 
 |  |  |         }
 | 
 |  |  |     }
 | 
 |  |  | }
 |