示例#1
0
        /// <summary>
        /// Reports the local user's achievement progress to game server, using platform specific id.
        /// </summary>
        /// <param name="_achievementID">A string used to identify achievement in the current platform.</param>
        /// <param name="_percentageCompleted">The value indicates how far the player has progressed.</param>
        /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
        public void ReportProgressWithID(string _achievementID, double _percentageCompleted, Achievement.ReportProgressCompletion _onCompletion)
        {
            string _achievementGID = GameServicesUtils.GetAchievementGID(_achievementID);

            // Invoke handler
            ReportProgress(_achievementGID, _achievementID, _percentageCompleted, _onCompletion);
        }
示例#2
0
        public void ReportProgressWithID(string _achievementID, int _pointsScored, Achievement.ReportProgressCompletion _onCompletion)
        {
            string _achievementGID = GameServicesUtils.GetAchievementGID(_achievementID);

            // Invoke handler
            ReportProgress(_achievementGID, _achievementID, _pointsScored, _onCompletion);
        }
示例#3
0
        /// <summary>
        /// Creates a new instance of achievement object, using platform specific id.
        /// </summary>
        /// <param name="_achievementID">A string used to identify achievement in the current platform.</param>
        public Achievement CreateAchievementWithID(string _achievementID)
        {
            string _achievementGID = GameServicesUtils.GetAchievementGID(_achievementID);

            return(CreateAchievement(_achievementGID, _achievementID));
        }