Hi
I can pass a parameter to an overlay Ok. Question can and how do pass a parameter back to the parent when the overlay hides?
I call the parent resumeGame when hiding the overlay and this works fine. The function resumeGame runs ok also. The question is do I pass a parameter with this method or is it done another way?
function scene:hide( event )
local sceneGroup = self.view
local phase = event.phase
local parent = event.parent --reference to the parent scene object
if ( phase == “will” ) then
– Call the “resumeGame()” function in the parent scene
parent:resumeGame()
end
end
function scene:resumeGame()
--code to resume game
end