Пример #1
0
        /// <summary>
        /// Loads previously submitted achievement progress for the current local user.
        /// </summary>
        /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
        public virtual void LoadAchievements(Achievement.LoadAchievementsCompletion _onCompletion)
        {
            // Cache callback
            LoadAchievementsFinishedEvent = _onCompletion;

            // Verify auth status
            if (!VerifyUser())
            {
                LoadAchievementsFinished(null, Constants.kGameServicesUserAuthMissingError);
                return;
            }
        }
Пример #2
0
        public override void LoadAchievements(Achievement.LoadAchievementsCompletion _onCompletion)
        {
            base.LoadAchievements(_onCompletion);

            // Verify user authentication state before proceeding
            if (!VerifyUser())
            {
                return;
            }

            Plugin.Call(Native.Methods.LOAD_ACHIEVEMENTS);
        }
Пример #3
0
        public override void LoadAchievements(Achievement.LoadAchievementsCompletion _onCompletion)
        {
            base.LoadAchievements(_onCompletion);

            // Verify auth status
            if (!VerifyUser())
            {
                return;
            }

            EditorGameCenter.Instance.LoadAchievements();
        }
Пример #4
0
        public override void LoadAchievements(Achievement.LoadAchievementsCompletion _onCompletion)
        {
            base.LoadAchievements(_onCompletion);

            // Verify auth status
            if (!VerifyUser())
            {
                return;
            }

            // Native method call
            loadAchievements();
        }