| //-------------------------------------------------------- | 
| //    [Author]:           YYL | 
| //    [  Date ]:           2025年6月30日 | 
| //-------------------------------------------------------- | 
|   | 
| using System.Collections.Generic; | 
| using System.IO; | 
| using System.Threading; | 
| using System; | 
| using UnityEngine; | 
| using LitJson; | 
|   | 
| public partial class FrameAnimationConfig : ConfigBase<string, FrameAnimationConfig> | 
| { | 
|   | 
|     public string name; | 
|     public int frameCnt; | 
|     public int speed; | 
|     public int frameType; | 
|     public int EmojiPackID; | 
|     public string folder; | 
|   | 
|     public override string LoadKey(string _key) | 
|     { | 
|         string key = GetKey(_key); | 
|         return key; | 
|     } | 
|   | 
|     public override void LoadConfig(string input) | 
|     { | 
|         try { | 
|         string[] tables = input.Split('\t'); | 
|         name = tables[0]; | 
|   | 
|             int.TryParse(tables[1],out frameCnt);  | 
|   | 
|             int.TryParse(tables[2],out speed);  | 
|   | 
|             int.TryParse(tables[3],out frameType);  | 
|   | 
|             int.TryParse(tables[4],out EmojiPackID);  | 
|   | 
|             folder = tables[5]; | 
|         } | 
|         catch (Exception exception) | 
|         { | 
|             Debug.LogError(exception); | 
|         } | 
|     } | 
| } |