Advertisement
lavalevel

When they Click the GameCenter Icon

Dec 14th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1.     function showLeaderBoard()
  2.     --io.write ("\nPRESSED!!!\n")
  3.         if gameCentre then
  4.  
  5.             --io.write ("\nLoggedIn or ask to log in\n")
  6.                 if gameCentre:isLoggedIn() then
  7.                     gameCentre:showLeaderboards( "\ncom.lavalevel.quickgame.allgame\n" )
  8.                 else
  9.                     -- gameCentre:init()
  10.                     --gameCentre = GGGameCentre:new(listener )
  11.                     gameCentre:showLeaderboards( "\ncom.lavalevel.quickgame.allgame\n" )
  12.  
  13.                 end
  14.             sound:Play(76)
  15.  
  16.         end
  17.  
  18.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement