Пример #1
0
        public ReignScores_ScorePlugin(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
        {
            this.desc = desc;
                        #if UNITY_EDITOR
            gameID = desc.Editor_ReignScores_GameID;
                        #elif UNITY_STANDALONE_WIN
            gameID = desc.Win32_ReignScores_GameID;
                        #elif UNITY_STANDALONE_OSX
            gameID = desc.OSX_ReignScores_GameID;
                        #elif UNITY_STANDALONE_LINUX
            gameID = desc.Linux_ReignScores_GameID;
                        #elif UNITY_WEBPLAYER
            gameID = desc.Web_ReignScores_GameID;
                        #elif UNITY_WP8
            gameID = desc.WP8_ReignScores_GameID;
                        #elif UNITY_METRO
            gameID = desc.WinRT_ReignScores_GameID;
                        #elif UNITY_BLACKBERRY
            gameID = desc.BB10_ReignScores_GameID;
                        #elif UNITY_IPHONE
            gameID = desc.iOS_ReignScores_GameID;
                        #elif UNITY_ANDROID
            gameID = desc.Android_ReignScores_GameID;
                        #endif

            ui = desc.ReignScores_UI;
            ui.Init(this);
            helper = new ReignScores_ServicesHelper(desc);

            if (callback != null)
            {
                callback(true, null);
            }
        }
        public GameCenter_ScorePlugin_iOS(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
        {
                        #if !IOS_DISABLE_APPLE_SCORES
            this.desc = desc;

            try
            {
                InitGameCenter();
            }
            catch (Exception e)
            {
                Debug.LogError(e.Message);
                if (callback != null)
                {
                    callback(false, e.Message);
                }
                return;
            }

            if (callback != null)
            {
                callback(true, null);
            }
                        #endif
        }
 /// <summary>
 /// Dumy constructor.
 /// </summary>
 /// <param name="desc">Score desc.</param>
 public Dumy_ScorePluginPlugin(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
 {
     IsAuthenticated = false;
     Username        = "******";
     if (callback != null)
     {
         callback(false, "Dumy Score object");
     }
 }
		public GooglePlay_ScorePlugin_Android (ScoreDesc desc, CreatedScoreAPICallbackMethod createdCallback)
		{
			this.desc = desc;
			this.createdCallback = createdCallback;
			try
			{
				native = new AndroidJavaClass("com.reignstudios.reignnative.GooglePlay_LeaderboardsAchievements");
				native.CallStatic("Init", desc.Android_GooglePlay_DisableUsernameRetrieval);
			}
			catch (Exception e)
			{
				Debug.LogError(e.Message);
				if (createdCallback != null) createdCallback(false, e.Message);
			}
		}
		public Amazon_GameCircle_ScorePlugin_Android(ScoreDesc desc, CreatedScoreAPICallbackMethod createdCallback)
		{
			this.desc = desc;
			try
			{
				native = new AndroidJavaClass("com.reignstudios.reignnativeamazon.Amazon_GameCircle_LeaderboardsAchievements");
				native.CallStatic("Init");
			}
			catch (Exception e)
			{
				Debug.LogError(e.Message);
				if (createdCallback != null) createdCallback(false, e.Message);
				return;
			}

			if (createdCallback != null) createdCallback(true, null);
		}
 public GooglePlay_ScorePlugin_Android(ScoreDesc desc, CreatedScoreAPICallbackMethod createdCallback)
 {
     this.desc            = desc;
     this.createdCallback = createdCallback;
     try
     {
         native = new AndroidJavaClass("com.reignstudios.reignnative.GooglePlay_LeaderboardsAchievements");
         native.CallStatic("Init", desc.Android_GooglePlay_DisableUsernameRetrieval);
     }
     catch (Exception e)
     {
         Debug.LogError(e.Message);
         if (createdCallback != null)
         {
             createdCallback(false, e.Message);
         }
     }
 }
        public Amazon_GameCircle_ScorePlugin_Android(ScoreDesc desc, CreatedScoreAPICallbackMethod createdCallback)
        {
            this.desc = desc;
            try
            {
                native = new AndroidJavaClass("com.reignstudios.reignnative.Amazon_GameCircle_LeaderboardsAchievements");
                native.CallStatic("Init");
            }
            catch (Exception e)
            {
                Debug.LogError(e.Message);
                if (createdCallback != null)
                {
                    createdCallback(false, e.Message);
                }
                return;
            }

            if (createdCallback != null)
            {
                createdCallback(true, null);
            }
        }
Пример #8
0
        // GET: ScoreDesc
        public ActionResult Index(string ItemNo)
        {
            if (Session["INSTNO"] == null || string.IsNullOrEmpty(Session["INSTNO"].ToString()))
            {
                //Log.Error(ex + ex.StackTrace);
                TempData["SessionExipred"] = "true";
                //TempData["error"] = ex + ex.StackTrace;
                //tran.Rollback();
                return(RedirectToAction("Index", "Login", null));
            }
            ScoreDescView view = new ScoreDescView();

            view.scoreDesc = string.Empty;
            try
            {
                MysqlDBA <ScoreDesc> mysqlDBA  = new MysqlDBA <ScoreDesc>(FunctionController.CONNSTR);
                ScoreDesc            queryCrit = new ScoreDesc();
                queryCrit.EvalYear = (DateTime.Now.Year - 1911).ToString();
                queryCrit.EvalType = "A";
                queryCrit.ItemNo   = ItemNo;
                List <ScoreDesc> scoreDescs = (List <ScoreDesc>)mysqlDBA.getDataList(queryCrit);
                if (scoreDescs.Count > 0)
                {
                    view.scoreDesc  = scoreDescs[0].Description;
                    view.scoreTitle = Utility.Utility.getScoreTitle(ItemNo);
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex + ex.StackTrace);
                TempData["action"] = "Function";
                TempData["error"]  = ex + ex.StackTrace;
                //tran.Rollback();
                return(RedirectToAction("Index", "SelfRate", null));
            }
            return(View(view));
        }
 public ReignScores_ServicesHelper(ScoreDesc desc)
 {
     reignScoresURL = desc.ReignScores_ServicesURL;
     gameAPIKey     = desc.ReignScores_GameKey;
     userAPIKey     = desc.ReignScores_UserKey;
 }
		public GameCenter_ScorePlugin_iOS (ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
		{
			#if !IOS_DISABLE_APPLE_SCORES
			this.desc = desc;

			try
			{
				InitGameCenter();
			}
			catch (Exception e)
			{
				Debug.LogError(e.Message);
				if (callback != null) callback(false, e.Message);
				return;
			}

			if (callback != null) callback(true, null);
			#endif
		}
 /// <summary>
 /// Used by the Reign plugin.
 /// </summary>
 /// <param name="desc">Score desc.</param>
 /// <returns>Returns Score plugin interface</returns>
 public static IScorePlugin New(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
 {
                 #if DISABLE_REIGN
     return(new Dumy_ScorePluginPlugin(desc, callback));
                 #elif UNITY_EDITOR
     if (desc.Editor_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.Editor_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported Editor_ScoreAPI: " + desc.Editor_ScoreAPI);
     }
                 #elif UNITY_WP8
     if (desc.WP8_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.WP8_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported WP8_ScoreAPI: " + desc.WP8_ScoreAPI);
     }
                 #elif UNITY_METRO
     if (desc.WinRT_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.WinRT_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported WinRT_ScoreAPI: " + desc.WinRT_ScoreAPI);
     }
                 #elif UNITY_ANDROID
     if (desc.Android_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.Android_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else if (desc.Android_ScoreAPI == ScoreAPIs.GooglePlay)
     {
         return(new GooglePlay_ScorePlugin_Android(desc, callback));
     }
     else if (desc.Android_ScoreAPI == ScoreAPIs.GameCircle)
     {
         return(new Amazon_GameCircle_ScorePlugin_Android(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported Android_ScoreAPI: " + desc.Android_ScoreAPI);
     }
                 #elif UNITY_IOS
     if (desc.iOS_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.iOS_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else if (desc.iOS_ScoreAPI == ScoreAPIs.GameCenter)
     {
         return(new GameCenter_ScorePlugin_iOS(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported iOS_ScoreAPI: " + desc.iOS_ScoreAPI);
     }
                 #elif UNITY_BLACKBERRY
     if (desc.BB10_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.BB10_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported BB10_ScoreAPI: " + desc.BB10_ScoreAPI);
     }
                 #elif UNITY_STANDALONE_WIN
     if (desc.Win32_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.Win32_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported Win32_ScoreAPI: " + desc.Win32_ScoreAPI);
     }
                 #elif UNITY_STANDALONE_OSX
     if (desc.OSX_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.OSX_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported OSX_ScoreAPI: " + desc.OSX_ScoreAPI);
     }
                 #elif UNITY_STANDALONE_LINUX
     if (desc.Linux_ScoreAPI == ScoreAPIs.None)
     {
         return(new Dumy_ScorePluginPlugin(desc, callback));
     }
     else if (desc.Linux_ScoreAPI == ScoreAPIs.ReignScores)
     {
         return(new ReignScores_ScorePlugin(desc, callback));
     }
     else
     {
         throw new Exception("Unsuported Linux_ScoreAPI: " + desc.Linux_ScoreAPI);
     }
                 #else
     return(new Dumy_ScorePluginPlugin(desc, callback));
                 #endif
 }
Пример #12
0
		/// <summary>
		/// Used by the Reign plugin.
		/// </summary>
		/// <param name="desc">Score desc.</param>
		/// <returns>Returns Score plugin interface</returns>
		public static IScorePlugin New(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
		{
			#if DISABLE_REIGN
			return new Dumy_ScorePluginPlugin(desc, callback);
			#elif UNITY_EDITOR
			if (desc.Editor_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.Editor_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported Editor_ScoreAPI: " + desc.Editor_ScoreAPI);
			#elif UNITY_WP8
			if (desc.WP8_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.WP8_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported WP8_ScoreAPI: " + desc.WP8_ScoreAPI);
			#elif UNITY_METRO
			if (desc.WinRT_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.WinRT_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported WinRT_ScoreAPI: " + desc.WinRT_ScoreAPI);
			#elif UNITY_ANDROID
			if (desc.Android_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.Android_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else if (desc.Android_ScoreAPI == ScoreAPIs.GooglePlay) return new GooglePlay_ScorePlugin_Android(desc, callback);
			else if (desc.Android_ScoreAPI == ScoreAPIs.GameCircle) return new Amazon_GameCircle_ScorePlugin_Android(desc, callback);
			else throw new Exception("Unsuported Android_ScoreAPI: " + desc.Android_ScoreAPI);
			#elif UNITY_IOS
			if (desc.iOS_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.iOS_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else if (desc.iOS_ScoreAPI == ScoreAPIs.GameCenter) return new GameCenter_ScorePlugin_iOS(desc, callback);
			else throw new Exception("Unsuported iOS_ScoreAPI: " + desc.iOS_ScoreAPI);
			#elif UNITY_BLACKBERRY
			if (desc.BB10_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.BB10_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported BB10_ScoreAPI: " + desc.BB10_ScoreAPI);
			#elif UNITY_STANDALONE_WIN
			if (desc.Win32_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.Win32_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported Win32_ScoreAPI: " + desc.Win32_ScoreAPI);
			#elif UNITY_STANDALONE_OSX
			if (desc.OSX_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.OSX_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported OSX_ScoreAPI: " + desc.OSX_ScoreAPI);
			#elif UNITY_STANDALONE_LINUX
			if (desc.Linux_ScoreAPI == ScoreAPIs.None) return new Dumy_ScorePluginPlugin(desc, callback);
			else if (desc.Linux_ScoreAPI == ScoreAPIs.ReignScores) return new ReignScores_ScorePlugin(desc, callback);
			else throw new Exception("Unsuported Linux_ScoreAPI: " + desc.Linux_ScoreAPI);
			#else
			return new Dumy_ScorePluginPlugin(desc, callback);
			#endif
		}
Пример #13
0
		/// <summary>
		/// Dumy constructor.
		/// </summary>
		/// <param name="desc">Score desc.</param>
		public Dumy_ScorePluginPlugin(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
		{
			IsAuthenticated = false;
			Username = "******";
			if (callback != null) callback(false, "Dumy Score object");
		}
		public ReignScores_ServicesHelper(ScoreDesc desc)
		{
			reignScoresURL = desc.ReignScores_ServicesURL;
			gameAPIKey = desc.ReignScores_GameKey;
			userAPIKey = desc.ReignScores_UserKey;
		}
		public ReignScores_ScorePlugin(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
		{
			this.desc = desc;
			#if UNITY_EDITOR
			gameID = desc.Editor_ReignScores_GameID;
			#elif UNITY_STANDALONE_WIN
			gameID = desc.Win32_ReignScores_GameID;
			#elif UNITY_STANDALONE_OSX
			gameID = desc.OSX_ReignScores_GameID;
			#elif UNITY_STANDALONE_LINUX
			gameID = desc.Linux_ReignScores_GameID;
			#elif UNITY_WEBPLAYER
			gameID = desc.Web_ReignScores_GameID;
			#elif UNITY_WEBGL
			gameID = desc.WebGL_ReignScores_GameID;
			#elif UNITY_WP8
			gameID = desc.WP8_ReignScores_GameID;
			#elif UNITY_METRO
			gameID = desc.WinRT_ReignScores_GameID;
			#elif UNITY_BLACKBERRY
			gameID = desc.BB10_ReignScores_GameID;
			#elif UNITY_TIZEN
			gameID = desc.Tizen_ReignScores_GameID;
			#elif UNITY_IPHONE
			gameID = desc.iOS_ReignScores_GameID;
			#elif UNITY_ANDROID
			gameID = desc.Android_ReignScores_GameID;
			#endif

			ui = desc.ReignScores_UI;
			ui.Init(this);
			helper = new ReignScores_ServicesHelper(desc);

			if (callback != null) callback(true, null);
		}
Пример #16
0
    // ======================================================
    // NOTE about users confused over Reign-Scores
    // Reign-Scores is an API target option, just as GooglePlay version GamceCircle is.
    // Reign-Scores is NOT required to use native services like GooglePlay, GameCenter ect.
    // Its a self-hosted option you can put on any ASP.NET server you own for platforms like WP8, BB10 ect.
    // ======================================================
    void Start()
    {
        // bind button events
        BackButton.Select();
        LogoutButton.onClick.AddListener(LogoutButton_Clicked);
        BackButton.onClick.AddListener(BackButton_Clicked);
        ReportScoreButton.onClick.AddListener(ReportScoreButton_Clicked);
        ReportAchievementButton.onClick.AddListener(ReportAchievementButton_Clicked);
        ShowLeaderboardsButton.onClick.AddListener(ShowLeaderboardsButton_Clicked);
        ShowAchievementsButton.onClick.AddListener(ShowAchievementsButton_Clicked);

        // make sure we don't init the same Score data twice
        if (created)
        {
            return;
        }
        created = true;

        // classic GUI stuff
        if (!UseUnityUI)
        {
            uiStyle = new GUIStyle()
            {
                alignment = TextAnchor.MiddleCenter,
                fontSize  = 32,
                normal    = new GUIStyleState()
                {
                    textColor = Color.white
                },
            };
        }

        // Leaderboards ---------------------------
        var leaderboards = new LeaderboardDesc[1];
        var leaderboard  = new LeaderboardDesc();

        leaderboards[0] = leaderboard;
        var reignScores_LeaderboardID = new System.Guid("f55e3800-eacd-4728-ae4f-31b00aaa63bf");

        leaderboard.SortOrder   = LeaderboardSortOrders.Ascending;
        leaderboard.ScoreFormat = LeaderbaordScoreFormats.Numerical;
        leaderboard.ScoreFormat_DecimalPlaces = 0;
                #if UNITY_IOS
        leaderboard.ScoreTimeFormat = LeaderboardScoreTimeFormats.Centiseconds;
                #else
        leaderboard.ScoreTimeFormat = LeaderboardScoreTimeFormats.Milliseconds;
                #endif

        // Global
        leaderboard.ID   = "Level1";         // Any unique ID value you want
        leaderboard.Desc = "Level1 Desc..."; // Any desc you want

        // Editor
        leaderboard.Editor_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value

        // WinRT
        leaderboard.WinRT_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value

        // WP8
        leaderboard.WP8_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value

        // BB10
        leaderboard.BB10_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value

        // iOS
        leaderboard.iOS_ReignScores_ID = reignScores_LeaderboardID; // Any unique value
        leaderboard.iOS_GameCenter_ID  = "";                        // Set to your GameCenter leaderboard ID

        // Android
        leaderboard.Android_ReignScores_ID = reignScores_LeaderboardID; // Any unique value
        leaderboard.Android_GooglePlay_ID  = "";                        // Set to your GooglePlay leaderboard ID (Not Name)
        leaderboard.Android_GameCircle_ID  = "";                        // Set to your GameCircle leaderboard ID (Not Name)

        // Win32
        leaderboard.Win32_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value

        // OSX
        leaderboard.OSX_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value

        // Linux
        leaderboard.Linux_ReignScores_ID = reignScores_LeaderboardID;        // Any unique value


        // Achievements ---------------------------
        var achievements = new AchievementDesc[1];
        var achievement  = new AchievementDesc();
        achievements[0] = achievement;
        var reignScores_AchievementID = new System.Guid("352ce53d-142f-4a10-a4fb-804ad38be879");

        // Global
        achievement.ID   = "Achievement1";         // Any unique ID value you want
        achievement.Name = "Achievement1";         // Any name you want
        achievement.Desc = "Achievement1 Desc..."; // Any desc you want

        // When you report an achievement you pass a PercentComplete value.
        // Example: This allows you to change that ratio to something like (0-1000) before the achievement is unlocked.
        achievement.PercentCompletedAtValue = 100;        // NOTE: For GooglePlay you must match this value in the developer dashboard under "How many steps are needed?" option.

        // Mark if you want Achievement to use PercentCompleted value or not.
        // Marking this true will make the "PercentComplete" value irrelevant.
        achievement.IsIncremental = true;

        // Editor
        achievement.Editor_ReignScores_ID = reignScores_AchievementID;        // Any unique value

        // WinRT
        achievement.WinRT_ReignScores_ID = reignScores_AchievementID;        // Any unique value

        // WP8
        achievement.WP8_ReignScores_ID = reignScores_AchievementID;        // Any unique value

        // BB10
        achievement.BB10_ReignScores_ID = reignScores_AchievementID;        // Any unique value

        // iOS
        achievement.iOS_ReignScores_ID = reignScores_AchievementID; // Any unique index value
        achievement.iOS_GameCenter_ID  = "";                        // Set to your GameCenter achievement ID

        // Android
        achievement.Android_ReignScores_ID = reignScores_AchievementID; // Any unique value
        achievement.Android_GooglePlay_ID  = "";                        // Set to your GooglePlay achievement ID (Not Name)
        achievement.Android_GameCircle_ID  = "";                        // Set to your GameCircle achievement ID (Not Name)

        // Win32
        achievement.Win32_ReignScores_ID = reignScores_AchievementID;        // Any unique value

        // OSX
        achievement.OSX_ReignScores_ID = reignScores_AchievementID;        // Any unique value

        // Linux
        achievement.Linux_ReignScores_ID = reignScores_AchievementID;        // Any unique value


        // Desc ---------------------------
        const string reignScores_gameID = "B2A24047-0487-41C4-B151-0F175BB54D0E";        // Get this ID from the Reign-Scores Console.
        var          desc = new ScoreDesc();
        if (UseUnityUI)
        {
            desc.ReignScores_UI = ReignScores_ModernRenderer.GetComponent <Reign.Plugin.ReignScores_UnityUI>() as IScores_UI;
        }
        else
        {
            desc.ReignScores_UI = ReignScores_ClassicRenderer.GetComponent <MonoBehaviour>() as IScores_UI;
        }
        desc.ReignScores_UI.ScoreFormatCallback += scoreFormatCallback;
        desc.ReignScores_ServicesURL             = "http://localhost:5537/Services/"; // Set to your server!
        desc.ReignScores_GameKey = "04E0676D-AAF8-4836-A584-DE0C1D618D84";            // Set to your servers game_api_key!
        desc.ReignScores_UserKey = "CE8E55E1-F383-4F05-9388-5C89F27B7FF2";            // Set to your servers user_api_key!
        desc.LeaderboardDescs    = leaderboards;
        desc.AchievementDescs    = achievements;

        // Editor
        desc.Editor_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.Editor_ReignScores_GameID = reignScores_gameID;

        // WinRT
        desc.WinRT_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.WinRT_ReignScores_GameID = reignScores_gameID;

        // WP8
        desc.WP8_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.WP8_ReignScores_GameID = reignScores_gameID;

        // BB10
        desc.BB10_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.BB10_ReignScores_GameID = reignScores_gameID;

        // iOS
        desc.iOS_ScoreAPI           = ScoreAPIs.GameCenter;
        desc.iOS_ReignScores_GameID = reignScores_gameID;

        // Android
                #if GOOGLEPLAY
        desc.Android_ScoreAPI = ScoreAPIs.GooglePlay;
        desc.Android_GooglePlay_DisableUsernameRetrieval = false;        // This lets you remove the android.permission.GET_ACCOUNTS requirement if enabled
                #elif AMAZON
        desc.Android_ScoreAPI = ScoreAPIs.GameCircle;
                #else
        desc.Android_ScoreAPI = ScoreAPIs.ReignScores;
                #endif
        desc.Android_ReignScores_GameID = reignScores_gameID;

        // Win32
        desc.Win32_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.Win32_ReignScores_GameID = reignScores_gameID;

        // OSX
        desc.OSX_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.OSX_ReignScores_GameID = reignScores_gameID;

        // Linux
        desc.Linux_ScoreAPI           = ScoreAPIs.ReignScores;
        desc.Linux_ReignScores_GameID = reignScores_gameID;

        // init
        ScoreManager.Init(desc, createdCallback);

        // <<< Reign-Scores manual methods >>>
        //ScoreManager.RequestScores(...);
        //ScoreManager.RequestAchievements(...);
        //ScoreManager.ManualLogin(...);
        //ScoreManager.ManualCreateUser(...);
    }