Hi everyone,
I have an issue on how can I pass functions as a parameter in Lua, below is my requirements:
inside main.lua:
function refreshCoins() end
showVungleAd(refreshCoins) – this call a function inside ads.lua
Inside ads.lua
function showVungleAd(action)
vungleAds.show( “incentivized” ) – This is a call from third party plugin to deal with vungle ads
end
local function vungleAdListener( event ) end
now my question is here, how can I call my parametrized function inside the vungleAdListener?