Exemplo n.º 1
0
 public void RequestMesh(HeightMap heightMap, MeshSettings meshSettings)
 {
     HasRequestedMesh = true;
     ThreadedDataRequester.RequestData(() => MeshGenerator.GenerateTerrainMesh(heightMap.Values, meshSettings, _lod),
                                       OnMeshDataReceived);
 }
 private void Awake()
 {
     _instance = FindObjectOfType <ThreadedDataRequester>();
 }