Exemplo n.º 1
0
 /// <summary>
 /// 自定义曲线
 /// </summary>
 /// <param name="time"></param>
 /// <param name="duration"></param>
 /// <param name="overshootOrAmplitude"></param>
 /// <param name="period"></param>
 /// <returns></returns>
 private float DoEaseFunction(float time, float duration, float overshootOrAmplitude, float period)
 {
     if (mEaseCurve == null)
     {
         mEaseCurve = new EaseCurve(mActionCurve);
     }
     return(mEaseCurve.Evaluate(time, duration, overshootOrAmplitude, period));
 }
Exemplo n.º 2
0
 public virtual void Dispose()
 {
     mActive       = false;
     mKill         = true;
     mOnBeginPlay  = mOnComplete = mOnKill = mOnLoopComplete = null;
     mEaseFunction = null;
     mEaseCurve    = null;
 }