Ejemplo n.º 1
0
        /// <summary>
        /// Fires complete events if needed
        /// </summary>
        /// <param name="source"></param>
        public virtual void TriggerOnComplete(MMF_Player source)
        {
            if (!OnCompleteIsNull && TriggerUnityEvents)
            {
                OnComplete.Invoke();
            }

            if (TriggerMMFeedbacksEvents)
            {
                MMF_PlayerEvent.Trigger(source, MMF_PlayerEvent.EventTypes.Complete);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Fires revert events if needed
        /// </summary>
        /// <param name="source"></param>
        public virtual void TriggerOnRevert(MMF_Player source)
        {
            if (!OnRevertIsNull && TriggerUnityEvents)
            {
                OnRevert.Invoke();
            }

            if (TriggerMMFeedbacksEvents)
            {
                MMF_PlayerEvent.Trigger(source, MMF_PlayerEvent.EventTypes.Revert);
            }
        }