示例#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>();
 }