Skip to content

Instantly share code, notes, and snippets.

@dshook
Created June 16, 2019 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dshook/2161ae7db9a48eee3a41e00fa7306789 to your computer and use it in GitHub Desktop.
Save dshook/2161ae7db9a48eee3a41e00fa7306789 to your computer and use it in GitHub Desktop.
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