hch
19 小时以前 79ffc1d5383ab88d1c67c03226c9521eb4b445bf
0312 武将培养飘字
1个文件已修改
10 ■■■■ 已修改文件
Main/System/HeroUI/HeroTrainAddAttrCell.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroTrainAddAttrCell.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;
@@ -11,7 +12,7 @@
public class HeroTrainAddAttrCell : MonoBehaviour
{
    [SerializeField] Text[] addPerText;    //增加百分比(飘动) 加入池
    [SerializeField] PositionTween addPerObject;
    [SerializeField] Transform addPerObject;
    
    public void Display(HeroInfo hero, Action func)
@@ -30,10 +31,13 @@
            }
            addPerText[i].text = addString + "+" + PlayerPropertyConfig.GetValueDescription(PlayerPropertyConfig.basePerAttrs[i], value);
        }
        addPerObject.Play(() =>
        addPerObject.localPosition = new Vector3(0, 0, 0);
        addPerObject.DOLocalMove(new Vector3(0, 40, 0), 0.5f).OnComplete(()=>
        {
            func?.Invoke();
        });
        }
        );
    }
}