public UserLoginAvailabilityChecker(
     BoolCallbackDelegate callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     this.callback = callback;
 }
Пример #2
0
 private static extern void _IncrementAchievement(string achievementId, float progress, BoolCallbackDelegate callback);
Пример #3
0
 private static extern void _RevealAchievement(string achievementId, BoolCallbackDelegate callback);
Пример #4
0
 /// <summary>
 /// Increments an achievement.
 /// </summary>
 /// <param name="achievementId">The unique identifier for the achievement. Is defined in the developer console.</param>
 /// <param name="progress">The current player progress, as a percentage. 100 unlocks the achievement. 0 reveals a hidden achievement.</param>
 /// <param name="callback">Callback will be <c>true</c> if the achievement is successfully incremented,
 /// <c>false</c> if there was a problem.</param>
 public static void IncrementAchievement(string achievementId, float progress, BoolCallbackDelegate callback)
 {
     _IncrementAchievement(achievementId, progress, callback);
 }
Пример #5
0
 /// <summary>
 /// Reveals a hidden achievement.
 /// </summary>
 /// <param name="achievementId">The unique identifier for the achievement. Is defined in the developer console.</param>
 /// <param name="callback">Callback will be <c>true</c> if the achievement is successfully revealed,
 /// <c>false</c> if there was a problem.</param>
 public static void RevealAchievement(string achievementId, BoolCallbackDelegate callback)
 {
     _RevealAchievement(achievementId, callback);
 }
Пример #6
0
 /// <summary>
 /// Unlocks an achievement.
 /// </summary>
 /// <param name="achievementId">The unique identifier for the achievement. Is defined in the developer console.</param>
 /// <param name="callback">Callback will be <c>true</c> if the achievement is successfully unlocked,
 /// <c>false</c> if there was a problem.</param>
 public static void UnlockAchievement(string achievementId, BoolCallbackDelegate callback)
 {
     _UnlockAchievement(achievementId, callback);
 }
Пример #7
0
 static extern void _gs_isFriend(string userId,
                                 BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                 FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Пример #8
0
 static extern void _gs_isPushNotificationsEnabled(
     BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
     FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);