예제 #1
0
    public override void tick(float totalElapsedTime)
    {
        var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration);
        var vec       = GoTweenUtils.unclampedVector2Lerp(_startValue, _diffValue, easedTime);

        _setter(vec);
    }
    public override void tick(float totalElapsedTime)
    {
        float   value = _easeFunction(totalElapsedTime, 0f, 1f, _ownerTween.duration);
        Vector2 obj   = GoTweenUtils.unclampedVector2Lerp(_startValue, _diffValue, value);

        _setter(obj);
    }
    public override void tick(float totalElapsedTime)
    {
        float   value     = _easeFunction(totalElapsedTime, 0f, 1f, _ownerTween.duration);
        Vector2 anchorMin = GoTweenUtils.unclampedVector2Lerp(_startValue, _diffValue, value);

        _target.anchorMin = anchorMin;
    }
예제 #4
0
    public override void tick(float totalElapsedTime)
    {
        float   value  = _easeFunction(totalElapsedTime, 0f, 1f, _ownerTween.duration);
        Vector2 vector = GoTweenUtils.unclampedVector2Lerp(_startValue, _diffValue, value);

        if (_useMax)
        {
            _target.offsetMax = vector;
        }
        else
        {
            _target.offsetMin = vector;
        }
    }
예제 #5
0
 static public int unclampedVector2Lerp_s(IntPtr l)
 {
     try {
         UnityEngine.Vector2 a1;
         checkType(l, 1, out a1);
         UnityEngine.Vector2 a2;
         checkType(l, 2, out a2);
         System.Single a3;
         checkType(l, 3, out a3);
         var ret = GoTweenUtils.unclampedVector2Lerp(a1, a2, a3);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }