public void AddBuildingPiece(Spot spot) { if (spot != null) { if (editorParams.TileBuildingLegit(spot)) { if (editorParams.samplePiece != null) { pieceMap[spot.x, spot.y] = editorParams.samplePiece.pieceId; } } } }
public void UpdateHighlight(Spot spot) { highlight.visible = false; if (spot != null) { if (editorParams.TileBuildingLegit(spot)) { highlight.SetNewSpot(spot); highlight.visible = true; } if (editorParams.TileShadowLegit(spot)) { highlight.SetNewSpot(spot); highlight.visible = true; } } }