public override void update (float t)
{
float newT = 0;
if (FloatUtils.EQ(t , 0) || FloatUtils.EQ( t , 1))
newT = t;
else {
t = t * 2;
if(! FloatUtils.EQ(_period , 0) )
_period = 0.3f * 1.5f;
float s = _period / 4;
t = t -1;
if( FloatUtils.Small(t , 0) )
newT = -0.5f * Mathf.Pow(2, 10 * t) * Mathf.Sin((t - s) * (Mathf.PI * 2) / _period);
else
newT = Mathf.Pow(2, -10 * t) * Mathf.Sin((t - s) * (Mathf.PI * 2) / _period) * 0.5f + 1;
}
_inner.update(newT);
}
protected override CCAction reverseImpl ()