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(); 
 | 
        }); 
 | 
    } 
 | 
  
 | 
} 
 |