Hi all,
what do you guys think, what is more likely to do in the following example
cameraHelper
situation 1
local blackRectangle local cameraHelper = {} function cameraHelper:toBlack() blackRectangle = display.newRect(0, 0, \_width, \_height) end function cameraHelper:unBlack() blackRectangle:removeSelf() end return cameraHelper
situation 2
local cameraHelper = {} function cameraHelper:toBlack() self.blackRectangle = display.newRect(0, 0, \_width, \_height) end function cameraHelper:unBlack() self.blackRectangle:removeSelf() end return cameraHelper
Should I choose for situation 1 or 2?