|
@ -157,7 +157,11 @@ public class MapManager : ScriptableObject |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//Having generated our list, we choose a random segment from it
|
|
|
//Having generated our list, we choose a random segment from it
|
|
|
MapSection nextSection = validSections[(int)Random.Range(0.0f, (float)validSections.Count)]; |
|
|
|
|
|
|
|
|
int selectedIndex = Random.Range(0, validSections.Count); |
|
|
|
|
|
Debug.Log("<b>Validmap sections: </b>" + validSections.Count); |
|
|
|
|
|
Debug.Log("<b>Selected section: </b>" + selectedIndex); |
|
|
|
|
|
|
|
|
|
|
|
MapSection nextSection = validSections[selectedIndex]; |
|
|
addSection(nextSection); |
|
|
addSection(nextSection); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|