lcy
2025-11-05 3b2a6bb9047cfce9f501593b3669a9c1af6c5df4
Main/System/Battle/BattleField/BattleRootNode.cs
@@ -33,6 +33,12 @@
   public RectTransform battleNodePos1;
   public RectTransform battleNodePos2;
   public RendererAdjuster skillMaskAdjuster;
   public RendererAdjuster battleStartAdjuster;
   public RendererAdjuster backgroundAdjuster;
   void Awake()
   {
      for (int i = 1; i <= TeamConst.MaxTeamSlotCount; i++)
@@ -44,6 +50,10 @@
         _blueTeamNodeList.Add(blueTrans.gameObject);
      }
      DontDestroyOnLoad(gameObject);
      // SetSortingOrder();
   }
   public void SetBackground(Texture texture)
@@ -51,10 +61,18 @@
      if (imgBackground != null)
      {
         imgBackground.texture = texture;
         imgBackground.raycastTarget = false;
         // imgBackground.SetNativeSize();
      }
   }
   public void SetSortingOrder()
   {
      skillMaskAdjuster.SetSortingOrder(BattleConst.BlockerSortingOrder);
      battleStartAdjuster.SetSortingOrder(BattleConst.BattleWinSortingOrder + 1);//最高层
      backgroundAdjuster.SetSortingOrder(BattleConst.BattleBackgroundOrder);//最低层
   }
   public Transform skillBackNode;
   public Transform skillFrontNode;