public override void tick(float totalElapsedTime) { var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration); var vec = GoTweenUtils.unclampedVector3Lerp(_startValue, _diffValue, easedTime); _setter(vec); }
public override void tick(float totalElapsedTime) { var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration); var vec = GoTweenUtils.unclampedVector3Lerp(_startValue, _diffValue, easedTime); if (_useLocalEulers) { _target.localEulerAngles = vec; } else { _target.eulerAngles = vec; } }