Hi,
I was about to find a way to have a singleton object accessible across all my classes, which each is in it’s on lua file, that I stumbled upon this article:
http://www.coronalabs.com/blog/2012/08/07/managing-state-between-scenes/
And it was fine and all but this sentenced puzzled me:
“Since all scenes must require( “storyboard” ), then they all share a common object.” What does it mean?
Does this mean that “require” is making a singleton out of a lua file? So if I load several audio files in c’tor of a lua class and “require” it several times, will it just load those audio files just once?
Thanks.