Unsafe Singletons
Opened this issue · 0 comments
needsnaming commented
The singleton pattern used for the level manager class is not a true singleton.
There are better AS3 singleton patterns that give you safety and true singleton behavior.
Every time new LevelManager() is called, the existing instance will be overwritten.
Please update to a more accurate representation of the design pattern.
Thanks.
some examples:
http://stackoverflow.com/questions/13318290/as3-singleton-implementations
http://blog.pixelbreaker.com/actionscript-3-0/as30-better-singletons