Exemple #1
0
    private void SelectTile(Tile tile)
    {
        if (selectedTile)
        {
            selectedTile.SetIsSelected(false);
            SetUIUnitInformation(null);
        }

        if (!tile.unit.isMoving)
        {
            selectedTile = tile;
            selectedTile.SetIsSelected(true);

            pathfinding.CalculatePathsAndSetStates(selectedTile);
            SetUIUnitInformation(tile.unit);
        }
    }