/////////////////////////////////////////////////////////////////////////// // // Inherited from UIAnimation // /// <summary> /// Sets the start values. /// </summary> public override void SetStartValues(){ canvasGroupAnimator=GetComponent<CanvasGroupAnimator>(); switch(animationType){ case AnimationType.Alpha: canvasGroupAnimator.SetAlphaValue(startValue); break; } }
public override void UpdateAnimation() { currentValue = GetEasedValue(); canvasGroupAnimator.SetAlphaValue(currentValue); }