/// <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); }
/// <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); }
public override void tick(float totalElapsedTime) { var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration); _target.localScale = GoTweenUtils.unclampedVector3Lerp(_startValue, _diffValue, easedTime); }