/////////////////////////////////////////////////////////////////////////// // // Inherited from UIAnimation // /// <summary> /// Sets the start values. /// </summary> public override void SetStartValues() { switch (animationType) { case AnimationType.Color: materialAnimator.SetColorValue(colorData.startColor, colorData.propertyName); break; case AnimationType.Float: materialAnimator.SetFloatValue(floatData.startValue, floatData.propertyName); break; } }
public override void UpdateAnimation() { newColor = GetEasedValue(); materialAnimator.SetColorValue(newColor, propertyID); }