|
|
@ -168,8 +168,18 @@ public class MapManager : ScriptableObject |
|
|
|
|
|
|
|
updateCriteria(); //We update the section selection criteria for the current gamestate
|
|
|
|
|
|
|
|
Debug.Log("Sections length:" + sections.Count); |
|
|
|
int count = -1; |
|
|
|
|
|
|
|
foreach (MapSection section in sections) |
|
|
|
{ |
|
|
|
count++; |
|
|
|
if (section == null) |
|
|
|
{ |
|
|
|
Debug.Log("Section is empty [" + count + "]"); |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
if (section.weight > 0 && checkSegments(section)) |
|
|
|
{ |
|
|
|
//If a segment is a valid continuation of the current most-recent segment, add it to the list
|
|
|
|