Esempio n. 1
0
 /// <summary>
 /// validation checks to make sure the target has a valid property with an accessible setter
 /// </summary>
 public override bool validateTarget(object target)
 {
     // cache the setter
     _setter = GoTweenUtils.setterForProperty <Action <Color> >(target, propertyName);
     return(_setter != null);
 }
Esempio n. 2
0
 /// <summary>
 /// sets the ease type for this tween property
 /// technically, this should be an internal method
 /// </summary>
 public void setEaseType(GoEaseType easeType)
 {
     _easeFunction = GoTweenUtils.easeFunctionForType(easeType);
 }
Esempio n. 3
0
        public override void tick(float totalElapsedTime)
        {
            var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration);

            _target.localScale = GoTweenUtils.unclampedVector3Lerp(_startValue, _diffValue, easedTime);
        }