I am just recently learning lua
func = {
lobby_load = function: 0x029a4950,
setting_unload = function: 0x029a4910,
setting_load = function: 0x026c5d20,
unload_all = function: 0x029b4940,
auth_load = function: 0x029a4a00,
auth_unload = function: 0x029a4990,
lobby_unload = function: 0x029a48d0
}
global_.loaded_proxy = {
1 = "lobby",
2 = "setting"
}
for key,value in pairs(global_.loaded_proxy) do
func[value .. "_unload"]()
end
but called only lobby_unload()
but should lobby_unload() and setting_unload()
why does the cycle not continue?