hch
2025-07-23 2336d5e71a6ed9c00f9a86c29d7aa33b9a1e38d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.UI;
 
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);
    }
 
}