Пример #1
0
        private void setTileValueWithButton(GridTile tile, ButtonTile button)
        {
            if (!dataCount.ContainsKey(button.dataValue))
            {
                dataCount.Add(button.dataValue, 0);
            }

            if (dataCount.ContainsKey(tile.getValue()))
            {
                dataCount [tile.getValue()]--;
            }
            dataCount [button.dataValue]++;
            tile.setDataValue(button.dataValue);
            tile.setSpriteToShow(button.spriteToshow);
        }
Пример #2
0
 private void setCurrentButtonSelected(ButtonTile current)
 {
     currentButtonSelected = current;
     selectedToShow.sprite = current.spriteToshow;
 }
Пример #3
0
 public void OnButtonClick(ButtonTile target)
 {
     setCurrentButtonSelected(target);
 }