|
@ -20,7 +20,8 @@ public class MapManager : ScriptableObject |
|
|
|
|
|
|
|
|
public List<MapSection> activeSections; //The list of sections that have been placed on the map (and not removed)
|
|
|
public List<MapSection> activeSections; //The list of sections that have been placed on the map (and not removed)
|
|
|
MapSection lastSection; //Which map-section was most recently added?
|
|
|
MapSection lastSection; //Which map-section was most recently added?
|
|
|
float startX = -16.0f; //The x-position of the current start of the track
|
|
|
|
|
|
|
|
|
float startX; //The x-position of the current start of the track
|
|
|
|
|
|
float startXinit = -16.0f; |
|
|
float endX; //The x-position of the current end of the track
|
|
|
float endX; //The x-position of the current end of the track
|
|
|
int totalSections; //How many sections have been added? Including ones that have been deleted
|
|
|
int totalSections; //How many sections have been added? Including ones that have been deleted
|
|
|
|
|
|
|
|
@ -44,6 +45,7 @@ public class MapManager : ScriptableObject |
|
|
public void init() |
|
|
public void init() |
|
|
{ |
|
|
{ |
|
|
sections = new List<MapSection>(); |
|
|
sections = new List<MapSection>(); |
|
|
|
|
|
startX = startXinit; |
|
|
endX = startX; |
|
|
endX = startX; |
|
|
totalSections = 0; |
|
|
totalSections = 0; |
|
|
|
|
|
|
|
|