private void OnReceivingAchievementDescriptions(string _achievementDescriptionsJsonStr)
        {
            IList _achievementDescriptionsJsonList = JSONUtility.FromJSON(_achievementDescriptionsJsonStr) as IList;

            //Parse data here and report callbacks if any.
            AchievementDescription[] _descriptions = AndroidAchievementDescription.ConvertAchievementDescriptionList(_achievementDescriptionsJsonList);

            if (OnLoadAchievementDescriptionsFinished != null)
            {
                OnLoadAchievementDescriptionsFinished(_descriptions);
            }
        }
Ejemplo n.º 2
0
        internal static AchievementDescription[] ConvertAchievementDescriptionList(IList _achievementDescriptionList)
        {
            if (_achievementDescriptionList == null)
            {
                return(null);
            }

            int _count = _achievementDescriptionList.Count;

            AchievementDescription[] _androidAchievementDescriptionList = new AndroidAchievementDescription[_count];

            for (int _iter = 0; _iter < _count; _iter++)
            {
                _androidAchievementDescriptionList[_iter] = new AndroidAchievementDescription(_achievementDescriptionList[_iter] as IDictionary);
            }

            return(_androidAchievementDescriptionList);
        }
		internal static AndroidAchievementDescription[] ConvertAchievementDescriptionList (IList _achievementDescriptionList)
		{
			if (_achievementDescriptionList == null)
				return null;
			
			int 								_count								= _achievementDescriptionList.Count;
			AndroidAchievementDescription[]		_androidAchievementDescriptionList	= new AndroidAchievementDescription[_count];
			
			for (int _iter = 0; _iter < _count; _iter++)
			{
				_androidAchievementDescriptionList[_iter]							= new AndroidAchievementDescription(_achievementDescriptionList[_iter] as IDictionary);
			}
			
			return _androidAchievementDescriptionList;
		}