protected void SetLocationType(MapHoneycomb honeycomb, MapHoneycomb.LocationTypes locationType) { if (locationType > honeycomb.LocationType) { honeycomb.LocationType = locationType; voidWalls.Add(honeycomb); //Debug.Log(voidWalls.Count); } }
protected void CheckDepth(float distance, MapHoneycomb honeycomb, MapHoneycomb.LocationTypes locationType) { int depth = (int)Mathf.Ceil(distance / Map.StaticMap.HorizontalSpacing); if (depth < honeycomb.GetDepth()) { honeycomb.SetDepth(depth); } if (depth <= locationDepthThreshold) { SetLocationType(honeycomb, locationType); } else { } }