public void ShowNativeAchievementsPage(ShowNativeViewDoneCallbackMethod callback)
 {
     guiMode = ReignScores_ClassicGuiModes.LoadingAchievements;
     guiAchievementOffset          = 0;
     guiShowNativeViewDoneCallback = callback;
     plugin.RequestAchievements(guiRequestAchievementsCallback, this);
 }
Example #2
0
 public void ShowNativeAchievementsPage(ShowNativeViewDoneCallbackMethod callback)
 {
     mode = ReignScores_UnityUIModes.LoadingAchievements;
     achievementOffset          = 0;
     showNativeViewDoneCallback = callback;
     plugin.RequestAchievements(requestAchievementsCallback, this);
 }
        /// <summary>
        /// Use to request achievements.
        /// </summary>
        /// <param name="callback">The callback that fires when done.</param>
        public static void RequestAchievements(RequestAchievementsCallbackMethod callback)
        {
            if (waitingForOperation)
            {
                Debug.LogError("Must wait for last Score operation to complete.");
                return;
            }

            waitingForOperation         = true;
            requestAchievementsCallback = callback;
            plugin.RequestAchievements(async_requestAchievementsCallback, ReignServices.Singleton);
        }