From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/Battle/BattleField/BattleRootNode.cs | 73 +++++++++++++++++++++++++++++++++++-
1 files changed, 71 insertions(+), 2 deletions(-)
diff --git a/Main/System/Battle/BattleField/BattleRootNode.cs b/Main/System/Battle/BattleField/BattleRootNode.cs
index 22d5534..96c2ec1 100644
--- a/Main/System/Battle/BattleField/BattleRootNode.cs
+++ b/Main/System/Battle/BattleField/BattleRootNode.cs
@@ -4,11 +4,80 @@
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;
+
+ 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.BlockerSortingOrder);
+ battleStartAdjuster.SetSortingOrder(BattleConst.BattleWinSortingOrder + 1);//鏈�楂樺眰
+ backgroundAdjuster.SetSortingOrder(BattleConst.BattleBackgroundOrder);//鏈�浣庡眰
+ }
+
+ public Transform skillBackNode;
+
+ public Transform skillFrontNode;
+
+ public GameObject skillMaskNode;
+
+ public GameObject battleStartNode;
}
\ No newline at end of file
--
Gitblit v1.8.0