private static void InitLuaConfigData() { LuaReader.Read <AnimClipData.AnimClipData>(); LuaReader.Read <EffectConf.EffectData>(true); LuaAnimClipModel.SetCurrentModelName(m_model.name); LuaEffectConfModel.Init(); LuaAnimClipModel.SetEffectChangeCallback(SetEffectData); }
public static void ReloadEffectConf() { LuaEffectConfModel.Reset(); LuaReader.Read <EffectConf.EffectData>(true); LuaEffectConfModel.Init(); foreach (var idObjectPair in m_dicIDEffectObject) { uint id = idObjectPair.Key; GameObject effectNode = idObjectPair.Value; EffectConf.EffectData data = LuaEffectConfModel.GetEffectData(id); if (data.IsNullTable()) { continue; } SetEffectTransform(data, effectNode); } }