using System.Collections.Generic; public class main { GameObject obj; List<GameObject> objects = new List<GameObject>(); objects.Add(obj); }