예제 #1
0
 protected internal override void Reset()
 {
     base.Reset();
     target           = null;
     targetClass      = null;
     accessor         = null;
     type             = -1;
     equation         = null;
     path             = null;
     isFrom           = isRelative = false;
     combinedAttrsCnt = waypointsCnt = 0;
     if (accessorBuffer.Length != combinedAttrsLimit)
     {
         accessorBuffer = new float[combinedAttrsLimit];
     }
     if (pathBuffer.Length != (2 + waypointsLimit) * combinedAttrsLimit)
     {
         pathBuffer = new float[(2 + waypointsLimit) * combinedAttrsLimit];
     }
 }
예제 #2
0
 // -------------------------------------------------------------------------
 // Public API
 // -------------------------------------------------------------------------
 /// <summary>Sets the easing equation of the tween.</summary>
 /// <remarks>
 /// Sets the easing equation of the tween. Existing equations are located in
 /// <i>aurelienribon.tweenengine.equations</i> package, but you can of course
 /// implement your owns, see
 /// <see cref="TweenEquation">TweenEquation</see>
 /// . You can also use the
 /// <see cref="TweenEquations">TweenEquations</see>
 /// static instances to quickly access all the
 /// equations. Default equation is Quad.INOUT.
 /// <p/>
 /// <b>Proposed equations are:</b><br/>
 /// - Linear.INOUT,<br/>
 /// - Quad.IN | OUT | INOUT,<br/>
 /// - Cubic.IN | OUT | INOUT,<br/>
 /// - Quart.IN | OUT | INOUT,<br/>
 /// - Quint.IN | OUT | INOUT,<br/>
 /// - Circ.IN | OUT | INOUT,<br/>
 /// - Sine.IN | OUT | INOUT,<br/>
 /// - Expo.IN | OUT | INOUT,<br/>
 /// - Back.IN | OUT | INOUT,<br/>
 /// - Bounce.IN | OUT | INOUT,<br/>
 /// - Elastic.IN | OUT | INOUT
 /// </remarks>
 /// <returns>The current tween, for chaining instructions.</returns>
 /// <seealso cref="TweenEquation">TweenEquation</seealso>
 /// <seealso cref="TweenEquations">TweenEquations</seealso>
 public Tween Ease(TweenEquation easeEquation)
 {
     this.equation = easeEquation;
     return(this);
 }