Пример #1
0
 private void TileViewClickHandler(TileView tileView)
 {
     if (currentTileView == null)
     {
         currentTileView = tileView;
         tileView.HighlightAsCurrent(true);
     }
     else if (tileView == currentTileView)
     {
         currentTileView = null;
         tileView.HighlightAsCurrent(false);
     }
     else
     {
         OnPairPicked?.Invoke(tiles[currentTileView], tiles[tileView]);
     }
 }
Пример #2
0
 private void DeselectTile()
 {
     currentTileView.HighlightAsCurrent(false);
     currentTileView = null;
 }