From 937a33b38a18620000c3e6afc4eeb4c6c5fbb3f4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 29 九月 2025 21:13:14 +0800
Subject: [PATCH] 0312 战锤区增加开光表现;点击锤子增加预存攻击等待到下一次可释放(优化玩家不好掌控点击时机);区分主战场和其他战场的加速倍率

---
 Main/System/Main/MainWin.cs |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/Main/System/Main/MainWin.cs b/Main/System/Main/MainWin.cs
index 8cacbdf..06de8d3 100644
--- a/Main/System/Main/MainWin.cs
+++ b/Main/System/Main/MainWin.cs
@@ -24,9 +24,10 @@
     [SerializeField] Image fightHeroImg; //鎴樻枟鏄剧ず鑻遍泟
     [SerializeField] ScaleTween fightHeroScale; //鎴樻枟鏄剧ず鑻遍泟缂╂斁
     [SerializeField] UIEffectPlayer fightEffect;
+    [SerializeField] UIEffectPlayer openCloseAnim;
     [SerializeField] FillTween cdTween;
 
-
+    public bool isFirstOpen = true; //棣栨鎵撳紑
     public Text hammerText;
 
     protected override void InitComponent()
@@ -77,6 +78,7 @@
             return;
         }
 
+        ClickAnimation(index);
         // 鏇存柊褰撳墠閫変腑鐨勬爣绛剧储寮�
         functionOrder = index;
 
@@ -87,6 +89,27 @@
         OpenSubUIByTabIndex();
     }
 
+    void ClickAnimation(int index)
+    {
+        if (isFirstOpen || (functionOrder != 0 && index == 0))
+        {
+            openCloseAnim.onComplete = () =>
+            {
+                openCloseAnim.SetEnabled(true);
+            };
+            openCloseAnim.PlayByArrIndex(1);
+            isFirstOpen = false;
+
+        }
+        else if (functionOrder == 0 && index != 0)
+        {
+            openCloseAnim.onComplete = () =>
+            {
+                openCloseAnim.SetEnabled(true);
+            };
+            openCloseAnim.PlayByArrIndex(0);
+        }
+    }
 
 
     /// <summary>
@@ -224,6 +247,7 @@
         {
             //涓诲煄鐣岄潰
             fightOtherWinBG.SetActive(false);
+            fightOtherWinWarnImg.SetActive(false);
             fightBG.SetActive(true);
 
 
@@ -259,6 +283,7 @@
     }
 
 
+
     void RefreshFightIng(bool isfighting = false)
     {
         if (isfighting)

--
Gitblit v1.8.0