Пример #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();
 }