From 8c279427332ae2abf33df0e403736634c48258df Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 04 六月 2026 18:05:06 +0800
Subject: [PATCH] 绑定战场点位特效支持
---
Main/System/Battle/BattleField/BattleRootNode.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/BattleField/BattleRootNode.cs b/Main/System/Battle/BattleField/BattleRootNode.cs
index 4adf62b..9120664 100644
--- a/Main/System/Battle/BattleField/BattleRootNode.cs
+++ b/Main/System/Battle/BattleField/BattleRootNode.cs
@@ -84,4 +84,14 @@
public GameObject skillMaskNode;
public GameObject battleStartNode;
+
+ public GameObject GetRootNode(BattleCamp battleCamp, int pos)
+ {
+ if (pos <= 0 || pos > 7)
+ {
+ pos = 2;
+ }
+ var rootNodeList = battleCamp == BattleCamp.Red ? redTeamNodeList : blueTeamNodeList;
+ return rootNodeList[pos - 1];
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0