daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Oct 18th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #region Leaderboards
  2. public static void AddScoreToLeaderboard(string leaderboardId, long score)
  3. {
  4.     if (Social.localUser.authenticated)
  5.     {
  6.         Social.ReportScore(score, leaderboardId, (bool success) =>
  7.         {
  8.             if (success)
  9.             {
  10.                 Debug.Log("Update Score Success");
  11.             }
  12.             else
  13.             {
  14.                 Debug.Log("Update Score Fail");
  15.             }
  16.         });
  17.     }
  18. }
  19.  
  20.  
  21. public static void ShowLeaderboardsUI()
  22. {
  23.     Social.ShowLeaderboardUI();
  24. }
  25. #endregion /Leaderboards
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top