Exemplo n.º 1
0
    private void DrawRingCell(Vector2Int Point)
    {
        List <Vector2Int> vector2Ints = new List <Vector2Int>();
        List <Vector2Int> openList    = new List <Vector2Int>();

        HexCoords.GetHexCellByRadius(Point, GetSelectedEntity().GetControllRemote().GetOrUpdateRuntimeData(null).eyeSight, ref vector2Ints);
        //if (HexCoords.GetHexCellByRadius(Point, 3, ref vector2Ints, ref openList))
        {
            foreach (Vector2Int v in vector2Ints)
            {
                CellView cell = GameCore.GetRegistServices <MapController>().GetCellView(v);
                if (cell != null)
                {
                    cell.SetCellViewStatus(CellViewStatus.EyeSight);
                }
            }
        }
    }