コード例 #1
0
 public void ManualCreateUser(string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     if (callback != null)
     {
         callback(false, "ManualCreateUser: Not supported with this API");
     }
 }
コード例 #2
0
 /// <summary>
 /// Dumy method.
 /// </summary>
 /// <param name="userID"></param>
 /// <param name="password"></param>
 /// <param name="callback"></param>
 /// <param name="services"></param>
 public void ManualLogin(string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     if (callback != null)
     {
         callback(false, "Dumy Score Obj");
     }
 }
コード例 #3
0
 public void ManualLogin(string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     if (callback != null)
     {
         callback(false, "Not supported on iOS");
     }
 }
コード例 #4
0
 /// <summary>
 /// Dumy method.
 /// </summary>
 /// <param name="callback"></param>
 /// <param name="services"></param>
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     if (callback != null)
     {
         callback(false, "Dumy Score Obj");
     }
 }
コード例 #5
0
 public void RequestLogin(AuthenticateCallbackMethod callback)
 {
     if (guiMode == ReignScores_ClassicGuiModes.None)
     {
         guiMode = ReignScores_ClassicGuiModes.Login;
         authenticateCallback = callback;
     }
 }
コード例 #6
0
 public void RequestLogin(AuthenticateCallbackMethod callback)
 {
     if (mode == ReignScores_UnityUIModes.None)
     {
         mode = ReignScores_UnityUIModes.Login;
         authenticateCallback = callback;
     }
 }
コード例 #7
0
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
                 #if !IOS_DISABLE_APPLE_SCORES
     authenticateCallback  = callback;
     waitingToAuthenticate = true;
     AuthenticateGameCenter();
                 #endif
 }
コード例 #8
0
        /// <summary>
        /// Use to manualy create a user.
        /// NOTE: Only supports ReignScores.
        /// </summary>
        /// <param name="userID">Username</param>
        /// <param name="password">User Password.</param>
        /// <param name="callback">The callback that fires when done.</param>
        public static void ManualCreateUser(string username, string password, AuthenticateCallbackMethod callback)
        {
            if (waitingForOperation)
            {
                Debug.LogError("Must wait for last Score operation to complete.");
                return;
            }

            waitingForOperation  = true;
            authenticateCallback = callback;
            plugin.ManualCreateUser(username, password, async_authenticateCallback, ReignServices.Singleton);
        }
コード例 #9
0
        /// <summary>
        /// Use to authenticate the user.
        /// </summary>
        /// <param name="callback">The callback that fires when done.</param>
        public static void Authenticate(AuthenticateCallbackMethod callback)
        {
            if (waitingForOperation)
            {
                Debug.LogError("Must wait for last Score operation to complete.");
                return;
            }

            waitingForOperation  = true;
            authenticateCallback = callback;
            plugin.Authenticate(async_authenticateCallback, ReignServices.Singleton);
        }
コード例 #10
0
		public void ManualCreateUser (string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			if (callback != null) callback(false, "Not supported on iOS");
		}
コード例 #11
0
		public void Authenticate (AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			#if !IOS_DISABLE_APPLE_SCORES
			authenticateCallback = callback;
			waitingToAuthenticate = true;
			AuthenticateGameCenter();
			#endif
		}
コード例 #12
0
		public void Authenticate (AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			authenticateCallback = callback;
			waitingToAuthenticate = true;
			AuthenticateGameCenter();
		}
コード例 #13
0
		public void Authenticate (AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			authenticateCallback = callback;
			native.CallStatic("Authenticate");
		}
コード例 #14
0
		public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			try
			{
				// check if player exists
				if (PlayerPrefs.HasKey("ReignScores_Username"))
				{
					ui.AutoLogin(callback);
					string username = PlayerPrefs.GetString("ReignScores_Username");
					string password = PlayerPrefs.GetString("ReignScores_Pass");
					helper.InvokeServiceMethod(ReignScores_ServiceTypes.Users, "Login", loginCallback, services, "game_id="+gameID, "username="******"password="******"ReignScores Authenticate error: " + e.Message;
				Debug.LogError(error);
				IsAuthenticated = false;
				if (callback != null) callback(false, error);
			}
		}
コード例 #15
0
 public void AutoLogin(AuthenticateCallbackMethod callback)
 {
     guiMode = ReignScores_ClassicGuiModes.None;
     authenticateCallback = callback;
 }
コード例 #16
0
 public void AutoLogin(AuthenticateCallbackMethod callback)
 {
     mode = ReignScores_UnityUIModes.None;
     authenticateCallback = callback;
 }
コード例 #17
0
		public void AutoLogin(AuthenticateCallbackMethod callback)
		{
			mode = ReignScores_UnityUIModes.None;
			authenticateCallback = callback;
		}
コード例 #18
0
		public void RequestLogin(AuthenticateCallbackMethod callback)
		{
			if (mode == ReignScores_UnityUIModes.None)
			{
				mode = ReignScores_UnityUIModes.Login;
				authenticateCallback = callback;
			}
		}
コード例 #19
0
		public void ManualCreateUser(string username, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			PlayerPrefs.SetString("ReignScores_Username", username);
			PlayerPrefs.SetString("ReignScores_Pass", password);
			helper.InvokeServiceMethod(ReignScores_ServiceTypes.Games, "CreateUser", createUserCallback, services, "game_id="+gameID, "username="******"password="+password);
		}
コード例 #20
0
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     authenticateCallback = callback;
     native.CallStatic("Authenticate");
 }
コード例 #21
0
		public void RequestLogin(AuthenticateCallbackMethod callback)
		{
			if (guiMode == ReignScores_ClassicGuiModes.None)
			{
				guiMode = ReignScores_ClassicGuiModes.Login;
				authenticateCallback = callback;
			}
		}
コード例 #22
0
		/// <summary>
		/// Use to authenticate the user.
		/// </summary>
		/// <param name="callback">The callback that fires when done.</param>
		public static void Authenticate(AuthenticateCallbackMethod callback)
		{
			if (waitingForOperation)
			{
				Debug.LogError("Must wait for last Score operation to complete.");
				return;
			}

			waitingForOperation = true;
			authenticateCallback = callback;
			plugin.Authenticate(async_authenticateCallback, ReignServices.Singleton);
		}
コード例 #23
0
		public void AutoLogin(AuthenticateCallbackMethod callback)
		{
			guiMode = ReignScores_ClassicGuiModes.None;
			authenticateCallback = callback;
		}
コード例 #24
0
		/// <summary>
		/// Use to manualy create a user.
		/// NOTE: Only supports ReignScores.
		/// </summary>
		/// <param name="userID">Username</param>
		/// <param name="password">User Password.</param>
		/// <param name="callback">The callback that fires when done.</param>
		public static void ManualCreateUser(string username, string password, AuthenticateCallbackMethod callback)
		{
			if (waitingForOperation)
			{
				Debug.LogError("Must wait for last Score operation to complete.");
				return;
			}

			waitingForOperation = true;
			authenticateCallback = callback;
			plugin.ManualCreateUser(username, password, async_authenticateCallback, ReignServices.Singleton);
		}
コード例 #25
0
		/// <summary>
		/// Dumy method.
		/// </summary>
		/// <param name="callback"></param>
		/// <param name="services"></param>
		public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			if (callback != null) callback(false, "Dumy Score Obj");
		}
コード例 #26
0
 public void ManualCreateUser(string username, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     PlayerPrefs.SetString("ReignScores_Username", username);
     PlayerPrefs.SetString("ReignScores_Pass", password);
     helper.InvokeServiceMethod(ReignScores_ServiceTypes.Games, "CreateUser", createUserCallback, services, "game_id=" + gameID, "username="******"password=" + password);
 }
コード例 #27
0
		/// <summary>
		/// Dumy method.
		/// </summary>
		/// <param name="userID"></param>
		/// <param name="password"></param>
		/// <param name="callback"></param>
		/// <param name="services"></param>
		public void ManualLogin(string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			if (callback != null) callback(false, "Dumy Score Obj");
		}
コード例 #28
0
		public void ManualLogin (string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			if (callback != null) callback(false, "ManualLogin: Not supported with this API");
		}
コード例 #29
0
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     authenticateCallback  = callback;
     waitingToAuthenticate = true;
     AuthenticateGameCenter();
 }