As written I get a warning in line 4, it expected string but got nil. I know that I can just remove the “= nil” and everything will work. Not sure if this can be fixed, feel free to tell me my code sucks if I shouldn’t be doing that. I like to pre-initialize everything AND I don’t like to see warnings.
local scene = nil
function myClass:rmScene()
if scene then
storyboard.removeScene(scene)
end
end
[import]uid: 167207 topic_id: 31883 reply_id: 331883[/import]