Exemplo 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;
        }
Exemplo 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;
        }
Exemplo n.º 4
0
 protected abstract void UpdateValue(Easings e, float t, float d);
 protected override void UpdateValue(Easings e, float t, float d)
 {
 }
Exemplo n.º 6
0
 override protected void UpdateValue(Easings e, float t, float d)
 {
     value = e.Calculate(t, from, to - from, d);
 }
Exemplo n.º 7
0
 protected override void UpdateValue(Easings e, float t, float d)
 {
     Value = e.Calculate(t, FromValue, ToValue - FromValue, d);
 }