public override void PopulateList(int nodeCount) { for (int index = 0; index < nodeCount; index++) { GameObject nodeObject = Instantiate(ListNodePrefab, ListNodeParentNode) as GameObject; PlayerListNode node = nodeObject.GetComponent <PlayerListNode>(); m_NodeList.Add(node); node.ShowNode(false); } }
public override void PopulateList(int nodeCount) { for (int index = 0; index < nodeCount; index++) { if (index < (nodeCount / 2)) { GameObject nodeObject = Instantiate(ListNodePrefab, RedTeamListRoot) as GameObject; PlayerListNode node = nodeObject.GetComponent <PlayerListNode>(); m_TeamRedNodeList.Add(node); node.ShowNode(false); } else { GameObject nodeObject = Instantiate(ListNodePrefab, BlueTeamListRoot) as GameObject; PlayerListNode node = nodeObject.GetComponent <PlayerListNode>(); m_TeamBlueNodeList.Add(node); node.ShowNode(false); } } }