/// <summary> /// Reports the player’s progress for given <see cref="VoxelBusters.NativePlugins.Achievement"/> identifier. /// </summary> /// <param name="_achievementID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Achievement"/> specific to current platform.</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 ReportProgressWithID(string _achievementID, int _pointsScored, Achievement.ReportProgressCompletion _onCompletion) { string _achievementGID = GameServicesIDHandler.GetAchievementGID(_achievementID); // Invoke handler ReportProgress(_achievementGID, _achievementID, _pointsScored, _onCompletion); }
/// <summary> /// Creates an instance of <see cref="VoxelBusters.NativePlugins.Achievement"/>. /// </summary> /// <returns>An initialized <see cref="VoxelBusters.NativePlugins.Achievement"/> instance.</returns> /// <param name="_achievementID">A string used to uniquely identify <see cref="VoxelBusters.NativePlugins.Achievement"/> specific to current platform.</param> public Achievement CreateAchievementWithID(string _achievementID) { string _achievementGID = GameServicesIDHandler.GetAchievementGID(_achievementID); return(CreateAchievement(_achievementGID, _achievementID)); }