/// <summary> /// Sample the specified _factor and _isFinished. /// </summary> /// <param name="_factor">_factor.</param> /// <param name="_isFinished">If set to <c>true</c> _is finished.</param> public void Sample(float _factor, bool _isFinished) { float val = Mathf.Clamp01(_factor); val = (easeType == EaseType.none) ? animationCurve.Evaluate(val): EaseManager.EasingFromType(0, 1, val, easeType); OnUpdate(val, _isFinished); }
// Token: 0x06002AF1 RID: 10993 RVA: 0x00470538 File Offset: 0x0046E738 public void Sample(float _factor, bool _isFinished) { float num = Mathf.Clamp01(_factor); num = ((this.easeType != EaseType.none) ? EaseManager.EasingFromType(0f, 1f, num, this.easeType) : this.animationCurve.Evaluate(num)); this.OnUpdate(num, _isFinished); }
/// <summary> /// Sample the tween at the specified factor. /// </summary> public void Sample(float factor, bool isFinished) { // Calculate the sampling value float val = Mathf.Clamp01(factor); val = (method == EaseType.none) ? animationCurve.Evaluate(val) : EaseManager.EasingFromType(0, 1, val, method); // Call the virtual update OnUpdate((animationCurve != null) ? animationCurve.Evaluate(val) : val, isFinished); }
// Token: 0x06002B01 RID: 11009 RVA: 0x00470A0C File Offset: 0x0046EC0C public void Sample(float _factor, bool _isFinished) { float num = Mathf.Clamp01(_factor); if (this.mAmountPerDelta >= 0f) { num = ((this.easeType1 != EaseType.none) ? EaseManager.EasingFromType(0f, 1f, num, this.easeType1) : this.animationCurve1.Evaluate(num)); } else { num = ((this.easeType2 != EaseType.none) ? EaseManager.EasingFromType(0f, 1f, num, this.easeType2) : this.animationCurve2.Evaluate(num)); } this.OnUpdate(num, _isFinished); }