Exemplo n.º 1
0
 public void Activate()
 {
     if (_book.Contains(_text.text.ToLower()))
     {
         foreach (TableCell cell in _selectedCells)
         {
             cell.Activate();
         }
     }
     else
     {
         foreach (TableCell cell in _selectedCells)
         {
             cell.Unselect();
         }
     }
     Clear();
 }
Exemplo n.º 2
0
 public void Activate()
 {
     if (_book.Contains(_text.text.ToLower()))
     {
         foreach (TableCell cell in _selectedCells)
         {
             cell.Activate();
         }
         _boardGame.CallWordActivationCallback(_text.text, new List <Thaum>());
     }
     else
     {
         foreach (TableCell cell in _selectedCells)
         {
             cell.Unselect();
         }
     }
     Clear();
 }