//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: Friday, June 27, 2025
|
//--------------------------------------------------------
|
|
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 string fxName;
|
public int job;
|
public int audio;
|
public int stopImmediate;
|
public int setParent;
|
public string nodeName;
|
public int notShow;
|
|
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];
|
|
fxName = tables[2];
|
|
int.TryParse(tables[3],out job);
|
|
int.TryParse(tables[4],out audio);
|
|
int.TryParse(tables[5],out stopImmediate);
|
|
int.TryParse(tables[6],out setParent);
|
|
nodeName = tables[7];
|
|
int.TryParse(tables[8],out notShow);
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|