private bool ProcessFloat(out Exception exception) { if (CurrentTime <= 0) { exception = CallFloatCallback(Start); return(false); } if (CurrentTime >= Duration) { exception = CallFloatCallback(End); return(true); } exception = CallFloatCallback(EaseCalculator.Calculate(Ease, Start, End, CurrentTime, Duration)); return(false); }
private bool ProcessVector3(out Exception exception) { if (CurrentTime <= 0) { exception = CallVector3Callback(StartVector3); return(false); } if (CurrentTime >= Duration) { exception = CallVector3Callback(EndVector3); return(true); } float value = EaseCalculator.Calculate(Ease, Start, End, CurrentTime, Duration); exception = CallVector3Callback(StartVector3 + (EndVector3 - StartVector3) * value); return(false); }