public override void tick(float totalElapsedTime)
    {
        var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration);
        var color     = GoTweenUtils.unclampedColorLerp(_startValue, _diffValue, easedTime);

        _target.SetColor(_materialColorName, color);
    }
Esempio n. 2
0
    public override void tick(float totalElapsedTime)
    {
        var easedTime = _easeFunction(totalElapsedTime, 0, 1, _ownerTween.duration);
        var newColor  = GoTweenUtils.unclampedColorLerp(_startValue, _diffValue, easedTime);

        _setter(newColor);
    }
Esempio n. 3
0
    public override void tick(float totalElapsedTime)
    {
        float value  = _easeFunction(totalElapsedTime, 0f, 1f, _ownerTween.duration);
        Color value2 = GoTweenUtils.unclampedColorLerp(_startValue, _diffValue, value);

        _target.SetColor(_materialColorName, value2);
    }
    public override void tick(float totalElapsedTime)
    {
        float value = _easeFunction(totalElapsedTime, 0f, 1f, _ownerTween.duration);
        Color obj   = GoTweenUtils.unclampedColorLerp(_startValue, _diffValue, value);

        _setter(obj);
    }
Esempio n. 5
0
 static public int unclampedColorLerp_s(IntPtr l)
 {
     try {
         UnityEngine.Color a1;
         checkType(l, 1, out a1);
         UnityEngine.Color a2;
         checkType(l, 2, out a2);
         System.Single a3;
         checkType(l, 3, out a3);
         var ret = GoTweenUtils.unclampedColorLerp(a1, a2, a3);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }