lzx 3 週間 前
コミット
6c8caa5353

+ 1 - 0
Assets/Scripts/GameUI/EventManager/EventSystemManager.cs

@@ -785,6 +785,7 @@ public class EventSystemManager : Singleton<EventSystemManager>
                 CombatDrive.Instance.CombatController.ChangeState(CombatController.update);
                 onCompleteCallback?.Invoke();
                 onCompleteCallback = null;
+                EventManager.Instance.Dispatch(CustomEventType.CompleteUpdate, null);
             }
 
             cTask.SetResult();

+ 18 - 0
Assets/Scripts/GameUI/UI/MainPanel/MainPanel.cs

@@ -107,11 +107,17 @@ namespace Fort23.Mono
             PlayEventCompletedEfx();
         }
 
+        TimerEntity _timerEntity = null;
+
         private void CompleteEvent(IEventData e)
         {
+            _timerEntity?.Dispose();
+            _timerEntity = null;
             PlayEventCompletedEfx();
             fx_ui_renwu_chuxian.gameObject.SetActive(true);
             fx_ui_renwu_chuxian.Play();
+            _timerEntity =
+                TimerComponent.Instance.AddTimer(400, () => { fx_ui_renwu_chuxian.gameObject.SetActive(false); });
         }
 
         public void UpdateDaoYouCoun()
@@ -324,8 +330,20 @@ namespace Fort23.Mono
                         fx_ui_renwu_wancheng_loop.gameObject.SetActive(true);
                         fx_ui_renwu_wancheng_loop.Play();
                     }
+                    else
+                    {
+                        fx_ui_renwu_wancheng_loop.gameObject.SetActive(false);
+                    }
+                }
+                else
+                {
+                    fx_ui_renwu_wancheng_loop.gameObject.SetActive(false);
                 }
             }
+            else
+            {
+                fx_ui_renwu_wancheng_loop.gameObject.SetActive(false);
+            }
         }