public float Update(float dt)
        {
            if (duration < time)
            {
                duration = Mathf.Min(duration + dt, time);

                float d = duration / time;

                value = Easing.Ease(easeType, start, end, d);
                return(value);
            }
            else
            {
                value = end;
                return(value);
            }
        }
 protected override Quaternion InternalEase(float d)
 {
     return(Easing.Ease(easeType, start, end, d));
 }
Exemplo n.º 3
0
 protected override float CalcEase()
 {
     return(Easing.Ease(type, startParam, endParam, now / time));
 }
Exemplo n.º 4
0
 protected override Quaternion CalcEase()
 {
     return(Easing.Ease(type, startParam, endParam, now / time));
 }