public void Load() { ThreadedDataRequester.RequestData(() => DataMapGenerator.GenerateDataMap(MeshSettings, HeightMapSettings, BiomeMapSettings, ResourceMapSettings, this), OnMapDataReceived); }
public void RequestMesh(HeightMap heightMap, MeshSettings meshSettings) { HasRequestedMesh = true; ThreadedDataRequester.RequestData(() => MeshGenerator.GenerateTerrainMesh(heightMap.Values, meshSettings, lod), OnMeshDataReceived); }
private void Awake() { instance = FindObjectOfType <ThreadedDataRequester>(); }