void Start() { MapData data = MapDataParser.ParseMapData(MapFolderName); var mapParent = GameObject.Instantiate(MapPrefab); heightRenderer.RenderMap(data, mapParent); surfaceRenderer.RenderMap(data, mapParent, BasingMatPrefab, TerrainTextureMatPrefab, WaterMatPrefab); doodadRenderer.RenderMap(data, mapParent); }
// PUBLIC #endregion #region UNITY METHODE void Awake() { mapData = gameObject.GetComponent <MapDataParser>(); }
// PUBLIC #endregion #region UNITY METHODE void Awake() { mapData = Camera.main.GetComponent <MapDataParser>(); clickInfo = Camera.main.GetComponent <ClickInformation>(); aStar_Pathfinding = Camera.main.GetComponent <AStar_Pathfinding>(); }