예제 #1
0
 public bool ReloadLua()
 {
     if (m_PlayerConfig != null && m_PlayerConfig.Files != null && m_PlayerConfig.Files.HasLuaFile)
     {
         if (m_LuaConfig != null)
         {
             m_LuaConfig.Dispose();
             m_LuaConfig = new LuaCnsConfig();
             if (!m_LuaConfig.LoadFromFile(m_PlayerConfig.Files.lua))
             {
                 return(false);
             }
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 private void Clear()
 {
     m_AirConfig    = null;
     m_PlayerConfig = null;
     m_CNSConfig    = null;
     m_CmdConfig    = null;
     if (m_LuaConfig != null)
     {
         m_LuaConfig.Dispose();
         m_LuaConfig = null;
     }
 }