Exemplo n.º 1
0
    protected override void OnNewInstanceCreated()
    {
        TerrainMinimap minimap = TerrainLoader.Instance.LoadedScene.GetRootGameObjects()[0].GetComponent <TerrainMinimap>();

        topX    = minimap.MapMax[0];
        topZ    = minimap.MapMax[1];
        buttomX = minimap.MapMin[0];
        buttomZ = minimap.MapMin[1];
    }
Exemplo n.º 2
0
 //Constructor
 public RoadSegment()
 {
     TopSideMesh     = new Mesh();
     ColliderMesh    = new Mesh();
     terrainMesh     = new Mesh();
     UndersideMesh   = new Mesh();
     _TerrainMinimap = new TerrainMinimap();
     Rd = Road.Instance;
 }