예제 #1
0
 public void Set(string word)
 {
     if (word == null)
     {
         throw new System.ArgumentNullException("word");
     }
     questionText.text = NatoDictionary.ProvideSentence(word);
 }
 public static string ProvideSentence(string word)
 {
     if (word == null)
     {
         throw new System.ArgumentNullException("word");
     }
     string returnString = "";
     for (int i = 0; i < word.Length; i++)
     {
         if (i > 0)
         {
             returnString += " ";
         }
         returnString += NatoDictionary.ProvideWord(word[i]);
     }
     return returnString;
 }