|
@@ -20,6 +20,7 @@ namespace KairoEngine.TerrainEngine
|
|
public Material material;
|
|
public Material material;
|
|
public GameObject parent;
|
|
public GameObject parent;
|
|
[Layer] public int terrainLayer;
|
|
[Layer] public int terrainLayer;
|
|
|
|
+ [Tag] public string terrainTag;
|
|
|
|
|
|
|
|
|
|
private MeshFilter meshFilter;
|
|
private MeshFilter meshFilter;
|
|
@@ -139,6 +140,7 @@ namespace KairoEngine.TerrainEngine
|
|
meshFilter.mesh = mesh;
|
|
meshFilter.mesh = mesh;
|
|
meshCollider.sharedMesh = mesh;
|
|
meshCollider.sharedMesh = mesh;
|
|
target.layer = terrainLayer;
|
|
target.layer = terrainLayer;
|
|
|
|
+ target.tag = terrainTag;
|
|
}
|
|
}
|
|
|
|
|
|
private void ScheduleJob(Vector3 initialPosition)
|
|
private void ScheduleJob(Vector3 initialPosition)
|