예제 #1
0
 private static void InitLuaConfigData()
 {
     LuaReader.Read <AnimClipData.AnimClipData>();
     LuaReader.Read <EffectConf.EffectData>(true);
     LuaAnimClipModel.SetCurrentModelName(m_model.name);
     LuaEffectConfModel.Init();
     LuaAnimClipModel.SetEffectChangeCallback(SetEffectData);
 }
예제 #2
0
 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);
     }
 }