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);
|
}
|
|
}
|