Esempio n. 1
0
    public void HighlightNeighbouringTiles(Vector3 mousePosition)
    {
        var clickedObject = FindClickedObject(mousePosition);

        if (clickedObject is null)
        {
            return;
        }

        var tile = clickedObject.GetComponent <Tile>();

        foreach (var item in tile.NeighbouringTiles)
        {
            highlighter.HighlightGameObject(item.gameObject);
        }
    }