protected override void UpdateValue(Easings e, float t, float d)
        {
            var v = Vector2.zero;

            v.x   = e.Calculate(t, FromValue.x, ToValue.x - FromValue.x, d);
            v.y   = e.Calculate(t, FromValue.y, ToValue.y - FromValue.y, d);
            Value = v;
        }
 protected virtual void Reset()
 {
     duration    = 0f;
     delayTime   = 0f;
     elapsedTime = 0f;
     easing      = null;
     OnComplete  = null;
 }
Beispiel #3
0
 protected override void UpdateValue(Easings e, float t, float d)
 {
 }
Beispiel #4
0
 protected override void UpdateValue(Easings e, float t, float d)
 {
     Value = e.Calculate(t, FromValue, ToValue - FromValue, d);
 }
 protected abstract void UpdateValue(Easings e, float t, float d);