using UnityEngine; using System.Collections.Generic; using UnityEngine.UI; public class BattleRootNode : MonoBehaviour { public RectTransform redTeamNode; public List redTeamNodeList = new List(); public RectTransform blueTeamNode; public List blueTeamNodeList = new List(); 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); } }