Пример #1
0
        public bool OnMouseUp(Point point)
        {
            if (!isMoveRegime)
            {
                return(false);
            }

            isMoveRegime = false;

            var position = gameView.GetPosition(point);

            if (position == null)
            {
                return(false);
            }

            var updateFlag = gameView.AddTileOnField(position.Value, newTileView);

            return(updateFlag);

            //var position = field.GetPosition(point);
            //if (position == null) return true;

            //tiles.SetNewPositionToSelectedTile(position.Value);
            //tiles.Update();
            //return true;
        }