コード例 #1
0
        /// <summary>
        /// Fires complete events if needed
        /// </summary>
        /// <param name="source"></param>
        public virtual void TriggerOnComplete(MMFeedbacks source)
        {
            if (!OnCompleteIsNull && TriggerUnityEvents)
            {
                OnComplete.Invoke();
            }

            if (TriggerMMFeedbacksEvents)
            {
                MMFeedbacksEvent.Trigger(source, MMFeedbacksEvent.EventTypes.Complete);
            }
        }
コード例 #2
0
        /// <summary>
        /// Fires Play events if needed
        /// </summary>
        /// <param name="source"></param>
        public virtual void TriggerOnPlay(MMFeedbacks source)
        {
            if (!OnPlayIsNull && TriggerUnityEvents)
            {
                OnPlay.Invoke();
            }

            if (TriggerMMFeedbacksEvents)
            {
                MMFeedbacksEvent.Trigger(source, MMFeedbacksEvent.EventTypes.Play);
            }
        }
コード例 #3
0
        /// <summary>
        /// Fires revert events if needed
        /// </summary>
        /// <param name="source"></param>
        public virtual void TriggerOnRevert(MMFeedbacks source)
        {
            if (!OnRevertIsNull && TriggerUnityEvents)
            {
                OnRevert.Invoke();
            }

            if (TriggerMMFeedbacksEvents)
            {
                MMFeedbacksEvent.Trigger(source, MMFeedbacksEvent.EventTypes.Revert);
            }
        }
コード例 #4
0
        /// <summary>
        /// Fires skip events if needed
        /// </summary>
        /// <param name="source"></param>
        public virtual void TriggerOnSkip(MMFeedbacks source)
        {
            if (!OnPauseIsNull && TriggerUnityEvents)
            {
                OnPause.Invoke();
            }

            if (TriggerMMFeedbacksEvents)
            {
                MMFeedbacksEvent.Trigger(source, MMFeedbacksEvent.EventTypes.Skip);
            }
        }