Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The Menu instance.
- */
- private static var instance:Menu;
- /**
- * Singleton accessor.
- */
- public static function getInstance():Menu
- {
- return instance;
- }
- /**
- * Creates a new Menu and sets the singleton pointer.
- */
- public function Menu()
- {
- instance = this;
- }
Add Comment
Please, Sign In to add comment