public OnlineWordWrapper(WordDB word, Action <WordDB> addAction)
 {
     this.Definition = word.Definition;
     this.Id         = word.Id;
     this.OnlineId   = word.OnlineId;
     this.Word       = word.Word;
     _addAction      = addAction;
 }
 public LocalWordWrapper(WordDB word, Action <int> removeAction)
 {
     this.Definition = word.Definition;
     this.Id         = word.Id;
     this.OnlineId   = word.OnlineId;
     this.Word       = word.Word;
     _removeAction   = removeAction;
 }
示例#3
0
 // Update is called once per frame
 void Awake()
 {
     db = new WordDB("ca");
     Debug.Log("We have words!!!");
     Debug.Log("At least we have " + db.dictionary.Count + " word(s)");
     Debug.Log("'OCELL' exists " + db.dictionary.Contains("OCELL") + " word(s)");
     Debug.Log("'CAÇA' exists " + db.dictionary.Contains("CAÇA") + " word(s)");
     Debug.Log("'HUND' does not exist? " + !db.dictionary.Contains("HUND"));
     Debug.Log("There are  " + db.words7.Count + " words of length 7");
     Debug.Log("There are  " + db.words5.Count + " words of length 5");
     //Debug.Log("There are  "+db.words5.Count+" words of length 5");
 }