Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. /**
  2. * The Menu instance.
  3. */
  4. private static var instance:Menu;
  5.  
  6. /**
  7. * Singleton accessor.
  8. */
  9. public static function getInstance():Menu
  10. {
  11. return instance;
  12. }
  13.  
  14. /**
  15. * Creates a new Menu and sets the singleton pointer.
  16. */
  17. public function Menu()
  18. {
  19. instance = this;
  20. }
Add Comment
Please, Sign In to add comment