private void NewGen() { for (int i = 0; i < creator.gamesToCreate; i++) { AbstractGameInstance game = creator.GetGame(i); var player = game.GetComponent <ReplayPlayer>(); player.LoadReplay(replays[i]); } }