From 5f728e2633e8e20ebafc4e534fe7e7362362c839 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 04 十二月 2025 11:58:07 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/HeroUI/HeroScenePosCell.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Main/System/HeroUI/HeroScenePosCell.cs b/Main/System/HeroUI/HeroScenePosCell.cs
index 0758b5b..79090b5 100644
--- a/Main/System/HeroUI/HeroScenePosCell.cs
+++ b/Main/System/HeroUI/HeroScenePosCell.cs
@@ -21,7 +21,7 @@
     [SerializeField] Transform objForfly;  //鐐瑰嚮椋炲叆鐨勬椂鍊欑殑鏄鹃殣鎺у埗
 
 
-    public void Display(string guid, int index, bool isFly = false)
+    public void Display(string guid, int index, bool isFly = false, bool showSuggest = false)
     {
         var hero = HeroManager.Instance.GetHero(guid);
         this.transform.localScale = Vector3.one;
@@ -35,8 +35,9 @@
         posCircleImg.SetSprite("heroposcircle" + heroConfig.Quality);
 
         //涓嶆槸鎺ㄨ崘浣嶅垯鎻愮ず
-        if (heroConfig.Position == 1 && TeamConst.TeamPos2Array.Contains(index) ||
-            heroConfig.Position == 2 && TeamConst.TeamPos1Array.Contains(index))
+        //  if (heroConfig.Position == 1 && TeamConst.TeamPos2Array.Contains(index) ||
+        //     heroConfig.Position == 2 && TeamConst.TeamPos1Array.Contains(index))
+        if (showSuggest)
         {
             suggestForm.SetActive(true);
             jobTip.text = HeroUIManager.Instance.GetJobName(heroConfig.Class);
@@ -82,17 +83,17 @@
         {
             //涓嬮樀
             team.RemoveHero(pos1);
-            HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -1, Vector3.zero);
+            HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -2, Vector3.zero);
         }
         else if (pos1 == pos2)
         { 
-            HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -1, Vector3.zero);
+            HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -2, Vector3.zero);
         }
         else
         {
             //閫氱煡鍒锋柊
             team.SwapPosition(pos1, pos2);
-            HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1, pos2 }, -1, Vector3.zero);
+            HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1, pos2 }, -2, Vector3.zero);
         }
     }
 

--
Gitblit v1.8.0