Created
June 16, 2019 03:19
-
-
Save dshook/2161ae7db9a48eee3a41e00fa7306789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SetupBorderLine(){ | |
var perim = HexPerimeter.FindPerimeterLoop(selectedCity.influencedCells); | |
var linePositions = HexPerimeter.GetLinePositions(perim); | |
cityBorderLine.positionCount = linePositions.Count; | |
for(var c = 0; c < linePositions.Count; c++){ | |
cityBorderLine.SetPosition(c, linePositions[c]); | |
} | |
cityBorderLine.gameObject.SetActive(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment