Пример #1
0
 public AnimationAlpha(AnimationAlpha source) : base(source)
 {
     targetImg  = source.targetImg;
     targetText = source.targetText;
     fromAlpha  = source.fromAlpha;
     toAlpha    = source.toAlpha;
 }
Пример #2
0
    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);
    }