예제 #1
0
    // Perform a mouse selection
    public void TileSelect(PointController clickedTile)
    {
        if (selectedTile != null)
        {
            selectedTile.NormalVoisin();
            selectedTile.Deselect();
        }

        if (selectedTile != null && clickedTile.positionN == selectedTile.positionN)
        {
            selectedTile = null;
        }
        else
        {
            selectedTile = clickedTile;
            selectedTile.Select();

            if (TurnManager.mushroomActionPointsAmount != 0)
            {
                selectedTile.HighlightVoisin();
            }
        }
    }