コード例 #1
0
ファイル: OptionManager.cs プロジェクト: ptroon/RunningMan
 // 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);
 }
コード例 #2
0
ファイル: OptionManager.cs プロジェクト: ptroon/RunningMan
 // 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);
 }