// loads the List from the provided items public void SetDifficulty(int optionValue, string optionName) { game.gameDifficulty.Clear(); // clear the list DDOLGameManager.Choices choices = new DDOLGameManager.Choices(optionValue, optionName); game.gameDifficulty.Add(choices); }
// loads the List from the dropdown currently chosen item public void GetDifficulty() { game.gameDifficulty.Clear(); // clear the list DDOLGameManager.Choices choices = new DDOLGameManager.Choices(tdrop.value, tdrop.options[tdrop.value].text); game.gameDifficulty.Add(choices); }