public void UnLoadPacket(string packName) { if (!m_DonePacks.ContainsKey(packName)) { Debug.LogWarning(string.Format("资源包 {0} 不存在,不能卸载", packName)); return; } PacketRouting pkr = m_DonePacks[packName]; pkr.UnLoad(); m_DonePacks.Remove(packName); }
static int UnLoad(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); PacketRouting obj = (PacketRouting)ToLua.CheckObject(L, 1, typeof(PacketRouting)); obj.UnLoad(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }