private void DrawPixelListInTilemap(ref Tilemap tilemap, List <Point> points, TilePainter tileData, CountDownRoot root) { tileData.Init(tilemap); foreach (Point point in points) { //tileData.Paint(new Vector3Int(point.x, -point.y, 0), root); } ////if (tileData == null) ////{ //// Debug.Log("tile data not set in specified map"); ////} //else //{ // //new Vector3Int((int)xOffset + point.x, (int)(yOffset - point.y * hRatio), 0); // //Init the object with the tilemap, if it is a rule tile it uses it to be attached to // //if it is a worlf object it uses it to set it's location. //} }
private void DrawPixelListInTilemap(ref Tilemap tilemap, List <Point> points, TilePainter tileData) { //Debug.unityLogger.Log(TAG, "DrawPixelListInTilemap()"); tileData.Init(tilemap); foreach (Point point in points) { tileData.Paint(new Vector3Int(point.x, point.y, 0)); } }