/// <summary>
        /// We setup our target with this object
        /// </summary>
        protected override void FillTargets()
        {
            MMF_FeedbackBaseTarget target   = new MMF_FeedbackBaseTarget();
            MMPropertyReceiver     receiver = new MMPropertyReceiver();

            receiver.TargetObject       = Owner.gameObject;
            receiver.TargetComponent    = _proxy;
            receiver.TargetPropertyName = "ThisLevel";
            receiver.RelativeValue      = RelativeValues;
            target.Target         = receiver;
            target.LevelCurve     = Curve;
            target.RemapLevelZero = RemapZero;
            target.RemapLevelOne  = RemapOne;
            target.InstantLevel   = InstantChange;

            _targets.Add(target);
        }
Exemple #2
0
        protected override void FillTargets()
        {
            if (TargetRectTransform == null)
            {
                return;
            }

            MMF_FeedbackBaseTarget targetMin   = new MMF_FeedbackBaseTarget();
            MMPropertyReceiver     receiverMin = new MMPropertyReceiver();

            receiverMin.TargetObject       = TargetRectTransform.gameObject;
            receiverMin.TargetComponent    = TargetRectTransform;
            receiverMin.TargetPropertyName = "offsetMin";
            receiverMin.RelativeValue      = RelativeValues;
            receiverMin.Vector2RemapZero   = OffsetMinRemapZero;
            receiverMin.Vector2RemapOne    = OffsetMinRemapOne;
            receiverMin.ShouldModifyValue  = ModifyOffsetMin;
            targetMin.Target         = receiverMin;
            targetMin.LevelCurve     = OffsetMinCurve;
            targetMin.RemapLevelZero = 0f;
            targetMin.RemapLevelOne  = 1f;
            targetMin.InstantLevel   = 1f;

            _targets.Add(targetMin);

            MMF_FeedbackBaseTarget targetMax   = new MMF_FeedbackBaseTarget();
            MMPropertyReceiver     receiverMax = new MMPropertyReceiver();

            receiverMax.TargetObject       = TargetRectTransform.gameObject;
            receiverMax.TargetComponent    = TargetRectTransform;
            receiverMax.TargetPropertyName = "offsetMax";
            receiverMax.RelativeValue      = RelativeValues;
            receiverMax.Vector2RemapZero   = OffsetMaxRemapZero;
            receiverMax.Vector2RemapOne    = OffsetMaxRemapOne;
            receiverMax.ShouldModifyValue  = ModifyOffsetMax;
            targetMax.Target         = receiverMax;
            targetMax.LevelCurve     = OffsetMaxCurve;
            targetMax.RemapLevelZero = 0f;
            targetMax.RemapLevelOne  = 1f;
            targetMax.InstantLevel   = 1f;

            _targets.Add(targetMax);
        }
        protected override void FillTargets()
        {
            if (TargetTMPText == null)
            {
                return;
            }
            MMF_FeedbackBaseTarget target   = new MMF_FeedbackBaseTarget();
            MMPropertyReceiver     receiver = new MMPropertyReceiver();

            receiver.TargetObject       = TargetTMPText.gameObject;
            receiver.TargetComponent    = TargetTMPText;
            receiver.TargetPropertyName = "wordSpacing";
            receiver.RelativeValue      = RelativeValues;
            target.Target         = receiver;
            target.LevelCurve     = WordSpacingCurve;
            target.RemapLevelZero = RemapZero;
            target.RemapLevelOne  = RemapOne;
            target.InstantLevel   = InstantFontSize;

            _targets.Add(target);
        }
Exemple #4
0
        protected override void FillTargets()
        {
            if (TargetCanvasGroup == null)
            {
                return;
            }

            MMF_FeedbackBaseTarget target   = new MMF_FeedbackBaseTarget();
            MMPropertyReceiver     receiver = new MMPropertyReceiver();

            receiver.TargetObject       = TargetCanvasGroup.gameObject;
            receiver.TargetComponent    = TargetCanvasGroup;
            receiver.TargetPropertyName = "alpha";
            receiver.RelativeValue      = RelativeValues;
            target.Target         = receiver;
            target.LevelCurve     = AlphaCurve;
            target.RemapLevelZero = RemapZero;
            target.RemapLevelOne  = RemapOne;
            target.InstantLevel   = InstantAlpha;

            _targets.Add(target);
        }
        protected override void FillTargets()
        {
            if (TargetRectTransform == null)
            {
                return;
            }

            MMF_FeedbackBaseTarget target   = new MMF_FeedbackBaseTarget();
            MMPropertyReceiver     receiver = new MMPropertyReceiver();

            receiver.TargetObject       = TargetRectTransform.gameObject;
            receiver.TargetComponent    = TargetRectTransform;
            receiver.TargetPropertyName = "sizeDelta";
            receiver.RelativeValue      = RelativeValues;
            receiver.Vector2RemapZero   = RemapZero;
            receiver.Vector2RemapOne    = RemapOne;
            target.Target         = receiver;
            target.LevelCurve     = SpeedCurve;
            target.RemapLevelZero = 0f;
            target.RemapLevelOne  = 1f;
            target.InstantLevel   = 1f;

            _targets.Add(target);
        }