yyl
2025-07-21 5bc2cc9a3e007b96a0de96e70e87f25bc5a254a2
Main/System/Battle/BattleField/BattleRootNode.cs
@@ -4,11 +4,26 @@
public class BattleRootNode : MonoBehaviour
{
   public RectTransform redTeamNode;
   public List<GameObject> redTeamNodeList = new List<GameObject>();
   public RectTransform blueTeamNode;
   public List<GameObject> blueTeamNodeList = new List<GameObject>();
   public RawImage imgBackground;
   void Awake()
   {
      if (redTeamNodeList.Count != TeamConst.MaxTeamSlotCount)
      {
         Debug.LogError("redTeamNodeList count is not equal to MaxTeamSlotCount: " + redTeamNodeList.Count);
      }
      if (blueTeamNodeList.Count != TeamConst.MaxTeamSlotCount)
      {
         Debug.LogError("blueTeamNodeList count is not equal to MaxTeamSlotCount: " + blueTeamNodeList.Count);
      }
      DontDestroyOnLoad(gameObject);
   }
}