Skip to content

Commit

Permalink
removed buggy position indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
Liech committed Jul 17, 2022
1 parent b981ea7 commit 54701c6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Project/Assets/Objects/Unit/UnitPositionIndicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ void Start()
// Update is called once per frame
void Update()
{
if (hasOldHighlight)
board.highlightTilemap.SetTile(oldHighlight, null);

Vector3Int cellID = board.GetComponent<Grid>().WorldToCell(transform.position);
cellID.z = 0;
var cell = board.highlightTilemap.GetTile(cellID);
board.highlightTilemap.SetTile(cellID, board.highlightTile);
hasOldHighlight = true;
oldHighlight = cellID;
//if (hasOldHighlight)
// board.highlightTilemap.SetTile(oldHighlight, null);
//
//Vector3Int cellID = board.GetComponent<Grid>().WorldToCell(transform.position);
//cellID.z = 0;
//var cell = board.highlightTilemap.GetTile(cellID);
//board.highlightTilemap.SetTile(cellID, board.highlightTile);
//hasOldHighlight = true;
//oldHighlight = cellID;
}
}

0 comments on commit 54701c6

Please sign in to comment.