public void LoadGrid() { if (terrainGrid == null) { terrainGrid = Instantiate(terrainGameObject, Vector3.zero, Quaternion.identity).GetComponent <RegionTerrain>(); } terrainGrid.ReDoDictionary(); LoadVariable(); }
public void InitLevel(Vector3 position, Transform levelParent) { terrainGrid = Instantiate(terrainGameObject, position, Quaternion.identity, levelParent).GetComponent <RegionTerrain>(); terrainGrid.ReDoDictionary(); }