// Use this for initialization void Start() { gameObjects = new CustomList <GameObject>(); gameObjects[0] = new GameObject(); gameObjects.Add(new GameObject()); }