using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameTeamList : MonoBehaviour { [System.SerializableAttribute] public class TeamList { public List<GameObject> Member = new List<GameObject>(); public TeamList(List<GameObject> list) { Member = list; } } //Inspectorに表示される //[SerializeField] //private List<TeamList> teamList = new List<TeamList>(); /* // Use this for initialization void Start () { } // Update is called once per frame void Update () { } */ }