コード例 #1
0
        public override void tick(float totalElapsedTime)
        {
            var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration);
            var vec       = GoTweenUtils.unclampedVector3Lerp(_startValue, _diffValue, easedTime);

            _setter(vec);
        }
コード例 #2
0
        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;
            }
        }