Example #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 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);
		}