Exemplo n.º 1
0
        public override void ReportProgress(ReportProgressCompletion _onCompletion)
        {
            base.ReportProgress(_onCompletion);

            // Make call for reporting
            EditorGameCenter.Instance.ReportProgress(this);
        }
Exemplo n.º 2
0
        public override void ReportProgress(ReportProgressCompletion _onCompletion)
        {
            base.ReportProgress(_onCompletion);

            // Native method call
            reportProgress(GetAchievementInfoJSONObject().ToJSON(), PercentageCompleted);
        }
		public override void ReportProgress (ReportProgressCompletion _onCompletion)
		{
			base.ReportProgress (_onCompletion);
			
			if (Description == null)
				return;
			
			EditorGameCenter.Instance.ReportProgress(this);
		}
Exemplo n.º 4
0
        public override void ReportProgress(ReportProgressCompletion _onCompletion)
        {
            base.ReportProgress(_onCompletion);

            if (Description == null)
            {
                return;
            }

            EditorGameCenter.Instance.ReportProgress(this);
        }
Exemplo n.º 5
0
        public override void ReportProgress(ReportProgressCompletion _onCompletion)
        {
            base.ReportProgress(_onCompletion);

            if (Description == null)
            {
                return;
            }

            // Native method call
            reportProgress(GetAchievementInfoJSONObject().ToJSON(), m_percentComplete);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Reports the player’s progress of this <see cref="VoxelBusters.NativePlugins.Achievement"/>.
        /// </summary>
        /// <param name="_onCompletion">Callback to be called when operation is completed.</param>
        public virtual void ReportProgress(ReportProgressCompletion _onCompletion)
        {
            // Cache callback
            ReportProgressFinishedEvent = _onCompletion;

            // Check if its valid request
            if (Description == null)
            {
                DebugPRO.Console.LogError(Constants.kDebugTag, string.Format("[GameServices] Report progress failed. Achievement description with id={0} couldnt be found.", Identifier));
                ReportProgressFinished(false, "The requested operation could not be completed because description for this achievement was not found.");
                return;
            }
        }
Exemplo n.º 7
0
 /// <summary>
 /// Reports the progress of this achievement.
 /// </summary>
 /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
 public virtual void ReportProgress(ReportProgressCompletion _onCompletion)
 {
     // Cache callback
     ReportProgressFinishedEvent = _onCompletion;
 }
		/// <summary>
		/// Reports the player’s progress of this <see cref="VoxelBusters.NativePlugins.Achievement"/>.
		/// </summary>
		/// <param name="_onCompletion">Callback to be called when operation is completed.</param>
		public virtual void ReportProgress (ReportProgressCompletion _onCompletion)
		{
			// Cache callback
			ReportProgressFinishedEvent	= _onCompletion;

			// Check if its valid request
			if (Description == null)
			{
				DebugPRO.Console.LogError(Constants.kDebugTag, string.Format("[GameServices] Report progress failed. Achievement description with id={0} couldnt be found.", Identifier)); 
				ReportProgressFinished(false, "The requested operation could not be completed because description for this achievement was not found.");
				return;
			}
		}
		public override void ReportProgress (ReportProgressCompletion _onCompletion)
		{
			base.ReportProgress (_onCompletion);

			if (Description == null)
				return;

			// Native method call 
			reportProgress(GetAchievementInfoJSONObject().ToJSON(), m_percentComplete);
		}