| | |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using System.Collections.Generic; |
| | | using DG.Tweening; |
| | | |
| | | public class HeroAwakeCell : MonoBehaviour |
| | | { |
| | |
| | | selectImg.SetActive(false); |
| | | } |
| | | |
| | | //特殊显示火特效的情况 |
| | | if (hero.talentAwakeRandomIDList.Count != 0 || |
| | | (hero.awakeLevel != 0 && hero.awakeLevel % 6 == 0 && UIManager.Instance.IsOpened<HeroAwakeSuccessWin>())) |
| | | { |
| | | fireEffect.Play(); |
| | | } |
| | | |
| | | |
| | | //1 天赋 2技能 3属性 |
| | | int type = config.UnlockTalentSlot != 0 ? 1 : config.SkillID != 0 ? 2 : 3; |
| | | attrTypeImg.SetSprite("heroattrtype" + type); |
| | |
| | | } |
| | | awakeLVText.text = awakeLV.ToString(); |
| | | lineImg.SetActive(hero.awakeLevel >= awakeLV); |
| | | if (hero.awakeLevel == awakeLV) |
| | | { |
| | | //lineImg.fillAmount逐渐从0到1 |
| | | lineImg.fillAmount = 0; |
| | | lineImg.DOFillAmount(1, 0.5f).SetEase(Ease.InQuad); |
| | | } |
| | | } |
| | | |
| | | public void ShowActiveEffect(HeroInfo hero, int awakeLV) |