public Word Push_Word(WordOwner owner) { int randIndex = (int)(UnityEngine.Random.Range(0, curDic.Count)); Word word = new Word(curDic[randIndex], owner); curDic.Remove(curDic[randIndex]); return(word); }
public void Add_wordOwner(WordOwner owner) { if (wOwners.Contains(owner) == false) { wOwners.Add(owner); owner.Request_word(); owner.Request_word(); owner.Display_word(); } }
public Word(string _text, WordOwner _wordOwner) { text = _text; wordOwner = _wordOwner; curIndex = 0; }
public void Remove_wordOwner(WordOwner owner) { wOwners.Remove(owner); }