hch
1 天以前 df03c997716c6f5fbd4b87c01caef1d2e75165fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
 
 
/// <summary>
/// 武将培养飘字处理
/// </summary>
public class HeroTrainAddAttrCell : MonoBehaviour
{
    [SerializeField] Text[] addPerText;    //增加百分比(飘动) 加入池
    [SerializeField] PositionTween addPerObject;
    
 
    public void Display(int value, Action func)
    {
        addPerObject.SetActive(true);
        for (int i = 0; i < addPerText.Length; i++)
        {
            addPerText[i].text = "+" + PlayerPropertyConfig.GetValueDescription(PlayerPropertyConfig.basePerAttrs[i], value);
        }
        addPerObject.Play(() =>
        {
            func?.Invoke();
        });
    }
 
}