public void ListItems() { for (int i = 0; i < FileManager.GetSavesName().Count; i++) { string saveName = FileManager.GetSavesName()[i]; GameSave save = new GameSave(); FileManager.LoadGame(ref save, saveName); if (!save.IsCompatible()) { continue; } basePool.TakeObject().GetComponent <SaveListing>().Init(saveName, basePool, mainMenuController); } }