Пример #1
0
        /// <summary>
        /// Reports the player’s progress for given <see cref="VoxelBusters.NativePlugins.Achievement"/> identifier.
        /// </summary>
        /// <param name="_achievementGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Achievement"/> across all supported platforms.</param>
        /// <param name="_pointsScored">Value indicates how far the player has progressed.</param>
        /// <param name="_onCompletion">Callback to be called when operation is completed.</param>
        public void ReportProgressWithGlobalID(string _achievementGID, int _pointsScored, Achievement.ReportProgressCompletion _onCompletion)
        {
            string _achievementID = GameServicesIDHandler.GetAchievementID(_achievementGID);

            // Invoke handler
            ReportProgress(_achievementGID, _achievementID, _pointsScored, _onCompletion);
        }
Пример #2
0
        /// <summary>
        /// Creates an instance of <see cref="VoxelBusters.NativePlugins.Achievement"/>.
        /// </summary>
        /// <returns>An initialized <see cref="VoxelBusters.NativePlugins.Achievement"/> instance.</returns>
        /// <param name="_achievementGID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Achievement"/> across all supported platforms.</param>
        public Achievement CreateAchievementWithGlobalID(string _achievementGID)
        {
            string _achievementID = GameServicesIDHandler.GetAchievementID(_achievementGID);

            return(CreateAchievement(_achievementGID, _achievementID));
        }