private void ProcessGameEnds(GameEndsType gameEnds) { if (gameEnds == null) { return; } foreach (GameEndsTypeGameEnd gameEnd in gameEnds.GameEnd) { GEGameEnd newGameEnd = new GEGameEnd(gameEnd.id); OnReferenceProcessing += delegate(object o, EventArgs e) { newGameEnd.EndText = elementManager.GetTextElement(gameEnd.textId); newGameEnd.GameOverText = elementManager.GetTextElement(gameEnd.gameOverTextId); }; elementManager.AddGameEnd(newGameEnd); } }
public void AddGameEnd(GEGameEnd gameEnd) { AddToDic(gameEnds, gameEnd); }