public AnimationAlpha(AnimationAlpha source) : base(source) { targetImg = source.targetImg; targetText = source.targetText; fromAlpha = source.fromAlpha; toAlpha = source.toAlpha; }
protected override void Load() { if (targetImg == null) { targetImg = aniTarget.GetComponent <UnityEngine.UI.Image>(); } if (targetText == null) { targetText = aniTarget.GetComponent <UnityEngine.UI.Text>(); } uiAnimation = new AnimationAlpha(aniTarget, aniLength, aniCurve, fromAlpha, toAlpha); }