Beispiel #1
0
 //delete word from dictionary when press on Delete button
 public void DeleteWord()
 {
     if (myDictionary.MyDictionary.Keys.Contains(key.text))
     {
         myDictionary.DeleteElement(key.text);
         ShowWords();
         myDictionary.Save();
         ClearFields();
         consoleText.text = "Word successfully deleted ^_^";
     }
     else
     {
         consoleText.text = "The word doensn`t exists in dictionary";
         Debug.Log("The word doensn`t exists in dictionary");
     }
 }