public void ManualCreateUser(string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     if (callback != null)
     {
         callback(false, "ManualCreateUser: Not supported with this API");
     }
 }
Exemplo n.º 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");
     }
 }
Exemplo n.º 3
0
 public void ManualLogin(string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     if (callback != null)
     {
         callback(false, "Not supported on iOS");
     }
 }
Exemplo n.º 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");
     }
 }
Exemplo n.º 5
0
 public void RequestLogin(AuthenticateCallbackMethod callback)
 {
     if (guiMode == ReignScores_ClassicGuiModes.None)
     {
         guiMode = ReignScores_ClassicGuiModes.Login;
         authenticateCallback = callback;
     }
 }
Exemplo n.º 6
0
 public void RequestLogin(AuthenticateCallbackMethod callback)
 {
     if (mode == ReignScores_UnityUIModes.None)
     {
         mode = ReignScores_UnityUIModes.Login;
         authenticateCallback = callback;
     }
 }
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
                 #if !IOS_DISABLE_APPLE_SCORES
     authenticateCallback  = callback;
     waitingToAuthenticate = true;
     AuthenticateGameCenter();
                 #endif
 }
        /// <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);
        }
        /// <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);
        }
		public void ManualCreateUser (string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			if (callback != null) callback(false, "Not supported on iOS");
		}
		public void Authenticate (AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			#if !IOS_DISABLE_APPLE_SCORES
			authenticateCallback = callback;
			waitingToAuthenticate = true;
			AuthenticateGameCenter();
			#endif
		}
		public void Authenticate (AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			authenticateCallback = callback;
			waitingToAuthenticate = true;
			AuthenticateGameCenter();
		}
		public void Authenticate (AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			authenticateCallback = callback;
			native.CallStatic("Authenticate");
		}
		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);
			}
		}
Exemplo n.º 15
0
 public void AutoLogin(AuthenticateCallbackMethod callback)
 {
     guiMode = ReignScores_ClassicGuiModes.None;
     authenticateCallback = callback;
 }
Exemplo n.º 16
0
 public void AutoLogin(AuthenticateCallbackMethod callback)
 {
     mode = ReignScores_UnityUIModes.None;
     authenticateCallback = callback;
 }
		public void AutoLogin(AuthenticateCallbackMethod callback)
		{
			mode = ReignScores_UnityUIModes.None;
			authenticateCallback = callback;
		}
		public void RequestLogin(AuthenticateCallbackMethod callback)
		{
			if (mode == ReignScores_UnityUIModes.None)
			{
				mode = ReignScores_UnityUIModes.Login;
				authenticateCallback = callback;
			}
		}
		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);
		}
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     authenticateCallback = callback;
     native.CallStatic("Authenticate");
 }
		public void RequestLogin(AuthenticateCallbackMethod callback)
		{
			if (guiMode == ReignScores_ClassicGuiModes.None)
			{
				guiMode = ReignScores_ClassicGuiModes.Login;
				authenticateCallback = callback;
			}
		}
Exemplo n.º 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);
		}
		public void AutoLogin(AuthenticateCallbackMethod callback)
		{
			guiMode = ReignScores_ClassicGuiModes.None;
			authenticateCallback = callback;
		}
Exemplo n.º 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);
		}
Exemplo n.º 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");
		}
 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);
 }
Exemplo n.º 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");
		}
		public void ManualLogin (string userID, string password, AuthenticateCallbackMethod callback, MonoBehaviour services)
		{
			if (callback != null) callback(false, "ManualLogin: Not supported with this API");
		}
Exemplo n.º 29
0
 public void Authenticate(AuthenticateCallbackMethod callback, MonoBehaviour services)
 {
     authenticateCallback  = callback;
     waitingToAuthenticate = true;
     AuthenticateGameCenter();
 }