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