예제 #1
0
        public override void ReportProgress(Action <bool> _onCompletion)
        {
            base.ReportProgress(_onCompletion);

            if (Description == null)
            {
                return;
            }

            AndroidAchievementsManager _achievementManager = ((GameServicesAndroid)(NPBinding.GameServices)).AchievementsManager;

            _achievementManager.ReportProgress(this, OnReportProgressFinished);
        }
예제 #2
0
        internal static AndroidAchievement Create(string _achievementId)
        {
            AndroidAchievementsManager _achievementManager = ((GameServicesAndroid)(NPBinding.GameServices)).AchievementsManager;
            IDictionary _achievementData = _achievementManager.GetAchievementData(_achievementId);

            if (_achievementData != null)
            {
                return(new AndroidAchievement(_achievementData));
            }
            else
            {
                return(new AndroidAchievement(_achievementId));
            }
        }