public void OnNextLevelEventHandler() { if (WordGame.S.wordsToAdd.Count > 0) { foreach (string word in WordGame.S.wordsToAdd) { WordList.AddNewWord(word); } } SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }