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

            v.x   = e.Calculate(t, from.x, to.x - from.x, d);
            v.y   = e.Calculate(t, from.y, to.y - from.y, d);
            value = v;
        }
Esempio n. 2
0
 protected virtual void Reset()
 {
     duration    = 0f;
     delayTime   = 0f;
     elapsedTime = 0f;
     easing      = null;
     OnComplete  = null;
 }
        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;
        }
Esempio n. 4
0
 protected abstract void UpdateValue(Easings e, float t, float d);
 protected override void UpdateValue(Easings e, float t, float d)
 {
 }
Esempio n. 6
0
 override protected void UpdateValue(Easings e, float t, float d)
 {
     value = e.Calculate(t, from, to - from, d);
 }
Esempio n. 7
0
 protected override void UpdateValue(Easings e, float t, float d)
 {
     Value = e.Calculate(t, FromValue, ToValue - FromValue, d);
 }