From 862aeae51fdc2c8abd8753ac8d72c2ef2f07c03e Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 31 三月 2026 11:39:32 +0800
Subject: [PATCH] 0312 服务器列表查找增加测试组
---
Main/System/Battle/BattleField/BattleRootNode.cs | 77 +++++++++++++++++++++++++++++++++++++-
1 files changed, 75 insertions(+), 2 deletions(-)
diff --git a/Main/System/Battle/BattleField/BattleRootNode.cs b/Main/System/Battle/BattleField/BattleRootNode.cs
index 22d5534..4adf62b 100644
--- a/Main/System/Battle/BattleField/BattleRootNode.cs
+++ b/Main/System/Battle/BattleField/BattleRootNode.cs
@@ -4,11 +4,84 @@
public class BattleRootNode : MonoBehaviour
{
- public List<GameObject> redTeamNodeList = new List<GameObject>();
+ public RectTransform redTeamNode;
+ public List<GameObject> redTeamNodeList
+ {
+ get
+ {
+ return _redTeamNodeList;
+ }
+ }
- public List<GameObject> blueTeamNodeList = new List<GameObject>();
+ private List<GameObject> _redTeamNodeList = new List<GameObject>();
+
+ public RectTransform blueTeamNode;
+ public List<GameObject> blueTeamNodeList
+ {
+ get
+ {
+ return _blueTeamNodeList;
+ }
+ }
+
+ private List<GameObject> _blueTeamNodeList = new List<GameObject>();
public RawImage imgBackground;
+ public RectTransform bgPos1;
+ public RectTransform bgPos2;
+ public RectTransform battleNode;
+ public RectTransform battleNodePos1;
+ public RectTransform battleNodePos2;
+
+ public RendererAdjuster skillMaskAdjuster;
+
+ public RendererAdjuster battleStartAdjuster;
+
+ public RendererAdjuster backgroundAdjuster;
+
+ public RendererAdjuster notFollowTipsAdjuster;
+
+ void Awake()
+ {
+ for (int i = 1; i <= TeamConst.MaxTeamSlotCount; i++)
+ {
+ Transform redTrans = redTeamNode.Find("Pos" + i);
+ _redTeamNodeList.Add(redTrans.gameObject);
+
+ Transform blueTrans = blueTeamNode.Find("Pos" + i);
+ _blueTeamNodeList.Add(blueTrans.gameObject);
+ }
+ DontDestroyOnLoad(gameObject);
+
+ // SetSortingOrder();
+ }
+
+ public void SetBackground(Texture texture)
+ {
+ if (imgBackground != null)
+ {
+ imgBackground.texture = texture;
+ imgBackground.raycastTarget = false;
+ // imgBackground.SetNativeSize();
+ }
+ }
+
+ public void SetSortingOrder()
+ {
+ skillMaskAdjuster.SetSortingOrder(BattleConst.SkillMaskOrder);
+ battleStartAdjuster.SetSortingOrder(BattleConst.BattleStartEffectOrder);//鏈�楂樺眰
+ backgroundAdjuster.SetSortingOrder(BattleConst.BattleBackgroundOrder);//鏈�浣庡眰
+ notFollowTipsAdjuster.SetSortingOrder(BattleConst.NotFolowTipsOrder);
+
+ }
+
+ public Transform skillBackNode;
+
+ public Transform skillFrontNode;
+
+ public GameObject skillMaskNode;
+
+ public GameObject battleStartNode;
}
\ No newline at end of file
--
Gitblit v1.8.0