From c0b373738bee68aab71727de5fbf4df38fe7ae60 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 28 九月 2025 14:44:00 +0800
Subject: [PATCH] 0312 优化觉醒动画

---
 Main/System/HeroUI/HeroAwakeCell.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Main/System/HeroUI/HeroAwakeCell.cs b/Main/System/HeroUI/HeroAwakeCell.cs
index 5fcd1b6..d654718 100644
--- a/Main/System/HeroUI/HeroAwakeCell.cs
+++ b/Main/System/HeroUI/HeroAwakeCell.cs
@@ -1,6 +1,7 @@
 using UnityEngine;
 using UnityEngine.UI;
 using System.Collections.Generic;
+using DG.Tweening;
 
 public class HeroAwakeCell : MonoBehaviour
 {
@@ -29,6 +30,14 @@
             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);
@@ -53,6 +62,12 @@
         }
         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)

--
Gitblit v1.8.0