Exemple #1
0
 public static void Reset()
 {
     LuaAnimClipModel.Reset();
     LuaEffectConfModel.Reset();
     ResetDrawHitData();
     if (m_model != null)
     {
         Object.DestroyImmediate(m_model);
         m_model = null;
     }
     if (m_rightWeapon != null)
     {
         Object.DestroyImmediate(m_rightWeapon);
         m_rightWeapon = null;
     }
     if (m_leftWeapon != null)
     {
         Object.DestroyImmediate(m_leftWeapon);
         m_leftWeapon = null;
     }
     m_modelAnimation       = null;
     m_rightWeaponAnimation = null;
     m_leftWeaponAnimation  = null;
     m_dicIDEffectObject.Clear();
     m_dicIDEffects.Clear();
     m_dicIDObjectNameDelay.Clear();
     m_dicIDEffectAnimation.Clear();
 }
Exemple #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);
     }
 }